From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH] gpio: max7301: fix driver for use with CONFIG_VMAP_STACK Date: Sun, 16 Dec 2018 01:14:55 +0100 Message-ID: References: <3f9179c9a1c8e2486cdd15d28530cd2e381a8830.1544152023.git.christophe.leroy@c-s.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <3f9179c9a1c8e2486cdd15d28530cd2e381a8830.1544152023.git.christophe.leroy@c-s.fr> Sender: linux-kernel-owner@vger.kernel.org To: Christophe Leroy Cc: Bartosz Golaszewski , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org list" , "open list:GPIO SUBSYSTEM" , stable List-Id: linux-gpio@vger.kernel.org On Fri, Dec 7, 2018 at 2:07 PM Christophe Leroy wrote: > 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: > Signed-off-by: Christophe Leroy Patch applied for fixes. Yours, Linus Walleij