From: linux@roeck-us.net (Guenter Roeck) Date: Thu, 7 Jan 2016 06:49:12 -0800 Subject: [PATCH -next] gpio: xilinx: Do not use gpiochip_get_data() in xgpio_save_regs() In-Reply-To: References: <1452126010-1111-1-git-send-email-linux@roeck-us.net> Message-ID: <568E7AE8.3060207@roeck-us.net> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 01/07/2016 01:07 AM, Linus Walleij wrote: > On Thu, Jan 7, 2016 at 1:20 AM, Guenter Roeck wrote: > >> Commit 097d88e94c44 ("gpio: xilinx: use gpiochip data pointer") replaces >> the use of container_of() with gpiochip_get_data(). Unfortunately, the >> data pointer is not yet set by the time xgpio_save_regs() is called, >> causing a system hang. >> >> Fixes: 097d88e94c44 ("gpio: xilinx: use gpiochip data pointer") >> Signed-off-by: Guenter Roeck >> --- >> It might make sense to merge this patch with the patch introducing the problem. > > Patch applied, thanks for finding and fixing this so quick! > Code inspection shows that there are two more - I'll send patches today. Guenter