summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2018-12-07 16:07:55 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-29 15:37:56 +0300
commit85ac860a5fdfd57f90d3a1163ebfa7906dbdf2c0 (patch)
treeaa12991c72c8cd6956afd6b169e748e278851990 /kernel
parent0867cfaabcf7a05568fc9e75bd3e134d517e6a05 (diff)
downloadlinux-85ac860a5fdfd57f90d3a1163ebfa7906dbdf2c0.tar.xz
gpio: max7301: fix driver for use with CONFIG_VMAP_STACK
commit abf221d2f51b8ce7b9959a8953f880a8b0a1400d upstream. spi_read() and spi_write() require DMA-safe memory. When CONFIG_VMAP_STACK is selected, those functions cannot be used with buffers on stack. This patch replaces calls to spi_read() and spi_write() by spi_write_then_read() which doesn't require DMA-safe buffers. Fixes: 0c36ec314735 ("gpio: gpio driver for max7301 SPI GPIO expander") Cc: <stable@vger.kernel.org> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions