power: supply: ab8500_fg: Request all IRQs as threaded
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 12 Dec 2020 10:57:11 +0000 (11:57 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 12 Dec 2020 21:08:27 +0000 (22:08 +0100)
commit807042539d8ed11299c9278e55d2cb6df8d04a39
tree48f35b4f65878844ba35060a0972851ee4ef150d
parent532b623f3c86d5166a8bb8acaa94fc3629d8ba97
power: supply: ab8500_fg: Request all IRQs as threaded

Since these IRQs are cascaded from a nested IRQ, the
generic IRQ system detects this and refuse to deliver
a fastpath IRQ in response to request_irq():

  nested = irq_settings_is_nested_thread(desc);
  if (nested) {
          if (!new->thread_fn) {
                  ret = -EINVAL;
                  goto out_mput;
          }
   (...)

Threaded IRQs work just as well so let's just request
threaded IRQs. One of the IRQs are alread requested
as threaded anyways.

Cc: Marcus Cooper <codekipper@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ab8500_fg.c