]> 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)
commited79422bf752e031fe07a4a0f6e2d0dbd0068d6e
tree8272324d8c51da6b79ffaf57911ba4d973716f2e
parent1c15c0f8c91cfbdd3a00fd6f82b2485fefc1ef27
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