]> git.karo-electronics.de Git - linux-beck.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)
commit3b81a6809480f3fc7d9d06562704c8df18ecec00
tree8272324d8c51da6b79ffaf57911ba4d973716f2e
parent356bae6fb77b9ed74989bab4d919afd598f921a8
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