Re: [PATCH v1 1/5] gpio: max77620: Initialize interrupts state

2020-07-08 Thread Dmitry Osipenko
08.07.2020 11:51, Andy Shevchenko пишет: > On Wed, Jul 8, 2020 at 11:29 AM Dmitry Osipenko wrote: >> >> I noticed on Nexus 7 that after rebooting from downstream kernel to >> upstream, the GPIO interrupt is triggering non-stop despite of interrupts >> being disabled for all of GPIOs. This happens

Re: [PATCH v1 1/5] gpio: max77620: Initialize interrupts state

2020-07-08 Thread Dmitry Osipenko
08.07.2020 11:53, Andy Shevchenko пишет: > On Wed, Jul 8, 2020 at 11:51 AM Andy Shevchenko > wrote: >> On Wed, Jul 8, 2020 at 11:29 AM Dmitry Osipenko wrote: > > ... > >>> + max77620_gpio_initialize(mgpio); >> >> I guess we have special callback for that, i.e. >> https://elixir.bootlin.co

Re: [PATCH v1 1/5] gpio: max77620: Initialize interrupts state

2020-07-08 Thread Andy Shevchenko
On Wed, Jul 8, 2020 at 11:51 AM Andy Shevchenko wrote: > On Wed, Jul 8, 2020 at 11:29 AM Dmitry Osipenko wrote: ... > > + max77620_gpio_initialize(mgpio); > > I guess we have special callback for that, i.e. > https://elixir.bootlin.com/linux/v5.8-rc3/C/ident/init_hw. Sorry, here is corre

Re: [PATCH v1 1/5] gpio: max77620: Initialize interrupts state

2020-07-08 Thread Andy Shevchenko
On Wed, Jul 8, 2020 at 11:29 AM Dmitry Osipenko wrote: > > I noticed on Nexus 7 that after rebooting from downstream kernel to > upstream, the GPIO interrupt is triggering non-stop despite of interrupts > being disabled for all of GPIOs. This happens because Nexus 7 uses a > soft-reboot, meaning t

[PATCH v1 1/5] gpio: max77620: Initialize interrupts state

2020-07-08 Thread Dmitry Osipenko
I noticed on Nexus 7 that after rebooting from downstream kernel to upstream, the GPIO interrupt is triggering non-stop despite of interrupts being disabled for all of GPIOs. This happens because Nexus 7 uses a soft-reboot, meaning that bootloader should take care of resetting hardware, but bootloa