diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2019-07-22 10:45:38 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2019-07-22 14:15:17 +0200 |
commit | a63907b3bbb07724d6526b20ae18ad90f351e954 (patch) | |
tree | 8fc98251910be8d12cfbbd387c35ce307cff7acc /package/kernel/mac80211/patches/319-v4.12-0030-brcmfmac-properly-align-buffers-on-certain-platforms.patch | |
parent | 1592815b2c852da83a8dcc62ffae967b6d7ea9d9 (diff) | |
download | upstream-a63907b3bbb07724d6526b20ae18ad90f351e954.tar.gz upstream-a63907b3bbb07724d6526b20ae18ad90f351e954.tar.bz2 upstream-a63907b3bbb07724d6526b20ae18ad90f351e954.zip |
mac80211: brcmfmac: rename v4.12 patches to allow more backports
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'package/kernel/mac80211/patches/319-v4.12-0030-brcmfmac-properly-align-buffers-on-certain-platforms.patch')
-rw-r--r-- | package/kernel/mac80211/patches/319-v4.12-0030-brcmfmac-properly-align-buffers-on-certain-platforms.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/319-v4.12-0030-brcmfmac-properly-align-buffers-on-certain-platforms.patch b/package/kernel/mac80211/patches/319-v4.12-0030-brcmfmac-properly-align-buffers-on-certain-platforms.patch new file mode 100644 index 0000000000..c5dc922ec9 --- /dev/null +++ b/package/kernel/mac80211/patches/319-v4.12-0030-brcmfmac-properly-align-buffers-on-certain-platforms.patch @@ -0,0 +1,36 @@ +From 6e84ab604bdedaa16239bd1c6e5fcb5660309f02 Mon Sep 17 00:00:00 2001 +From: Heiner Kallweit <hkallweit1@gmail.com> +Date: Wed, 5 Apr 2017 20:33:26 +0200 +Subject: [PATCH] brcmfmac: properly align buffers on certain platforms with 64 + bit DMA + +Systems with 64 bit DMA at least partially require buffers to be used +for DMA to be 8-byte-aligned. One example is Amlogic Meson GX. +Switching the MMC/SDIO driver for this platform to SG DMA mode +resulted in problems due to unaligned buffers. + +Fortunately the brcmfmac driver has a global define for the alignment. +Changing it to 8 fixed the issues with Meson GX. + +Suggested-by: Helmut Klein <hgkr.klein@gmail.com> +Tested-by: Helmut Klein <hgkr.klein@gmail.com> +Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> +Signed-off-by: Kalle Valo <kvalo@codeaurora.org> +--- + drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 4 ++++ + 1 file changed, 4 insertions(+) + +--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c ++++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +@@ -539,7 +539,11 @@ static int qcount[NUMPRIO]; + /* Limit on rounding up frames */ + static const uint max_roundup = 512; + ++#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT ++#define ALIGNMENT 8 ++#else + #define ALIGNMENT 4 ++#endif + + enum brcmf_sdio_frmtype { + BRCMF_SDIO_FT_NORMAL, |