diff options
author | David Mosberger-Tang <davidm@egauge.net> | 2014-05-28 22:40:00 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-29 11:19:30 -0700 |
commit | 05dfa5c9bc37933181b619e42ec0eeb41ef31362 (patch) | |
tree | ebfb9688445978d2e69b9638d0308dd7692fd320 /drivers/usb/misc/cypress_cy7c63.c | |
parent | 00c5aa178a5ba217a4143f8a5f70630550a87600 (diff) |
usb: host: max3421-hcd: fix "spi_rd8" uses dynamic stack allocation warning
kmalloc the SPI rx and tx data buffers. This appears to be the only
portable way to guarantee that the buffers are DMA-safe (e.g., in
separate DMA cache-lines). This patch makes the spi_rdX()/spi_wrX()
non-reentrant, but that's OK because calls to them are guaranteed to
be serialized by the per-HCD SPI-thread.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: David Mosberger <davidm@egauge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/cypress_cy7c63.c')
0 files changed, 0 insertions, 0 deletions