]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: add broken scatter-gather DMA support
authorFranky Lin <frankyl@broadcom.com>
Wed, 26 Jun 2013 12:20:18 +0000 (14:20 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 27 Jun 2013 17:42:18 +0000 (13:42 -0400)
commit29ebbd42b426b25686d68dba4c1ba545fc800247
tree8272324d8c51da6b79ffaf57911ba4d973716f2e
parent26dc409d83217818a2a4a6f62fba202f257021f0
brcmfmac: add broken scatter-gather DMA support

DMA engine of some old SDIO host controllers require block size alignment for
data length of each scatterlist item. This patch introduces an intermediate
buffer list to support this kind of platform. It decreases the throughput
because of an extra memcpy in critical data path. So don't turn this on unless
it's necessary.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c
include/linux/platform_data/brcmfmac-sdio.h