diff options
Diffstat (limited to '9003-brcmfmac-properly-align-buffers-on-certain-platform-swith-64-bit-DMA.patch')
-rw-r--r-- | 9003-brcmfmac-properly-align-buffers-on-certain-platform-swith-64-bit-DMA.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/9003-brcmfmac-properly-align-buffers-on-certain-platform-swith-64-bit-DMA.patch b/9003-brcmfmac-properly-align-buffers-on-certain-platform-swith-64-bit-DMA.patch new file mode 100644 index 000000000000..9ceb06cf597e --- /dev/null +++ b/9003-brcmfmac-properly-align-buffers-on-certain-platform-swith-64-bit-DMA.patch @@ -0,0 +1,16 @@ +diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +index a999f95062c7d..fc64b8913aa6a 100644 +--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c ++++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +@@ -540,7 +540,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, |