Re: [PATCH] powerpc: sysdev: cpm: fix gpio save_regs functions

2016-08-11 Thread Linus Walleij
On Thu, Aug 11, 2016 at 10:50 AM, Christophe Leroy wrote: > of_mm_gpiochip_add_data() calls mm_gc->save_regs() before > setting the data. Therefore ->save_regs() cannot use > gpiochip_get_data() > > [0.275940] Unable to handle kernel paging request for data at address > 0x0130 > [0.2

[PATCH] powerpc: sysdev: cpm: fix gpio save_regs functions

2016-08-11 Thread Christophe Leroy
of_mm_gpiochip_add_data() calls mm_gc->save_regs() before setting the data. Therefore ->save_regs() cannot use gpiochip_get_data() [0.275940] Unable to handle kernel paging request for data at address 0x0130 [0.283120] Faulting instruction address: 0xc01b44cc [0.288175] Oops: Kern