Files
i2som-imx-linux/drivers/net
Arnd Bergmann 5d3c2a5fa4 wlcore: fix 64K page support
commit 4a4274bf2d upstream.

In the stable linux-3.16 branch, I ran into a warning in the
wlcore driver:

drivers/net/wireless/ti/wlcore/spi.c: In function 'wl12xx_spi_raw_write':
drivers/net/wireless/ti/wlcore/spi.c:315:1: error: the frame size of 12848 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]

Newer kernels no longer show the warning, but the bug is still there,
as the allocation is based on the CPU page size rather than the
actual capabilities of the hardware.

This replaces the PAGE_SIZE macro with the SZ_4K macro, i.e. 4096 bytes
per buffer.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
[bwh: Backported to 3.2:
 - Open-code SZ_4K as it is only defined on some architectures here(!)
 - Adjust filename, context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2017-10-12 15:27:09 +01:00
..
2013-09-10 01:57:06 +01:00
2012-08-19 18:15:23 +01:00
2017-10-12 15:27:09 +01:00
2013-09-10 01:57:03 +01:00
2017-03-16 02:18:57 +00:00
2016-05-01 00:05:20 +02:00
2017-03-16 02:18:57 +00:00
2015-10-13 03:46:11 +01:00