All of lore.kernel.org
 help / color / mirror / Atom feed
From: Axel Haslam <ahaslam@baylibre.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] ARM: shmobile: r8a7790: skip set_wake for gic irq.
Date: Mon, 04 May 2015 12:54:22 +0000	[thread overview]
Message-ID: <CAKXjFTM5SQqR7i10SJ2qhriVYBh6WE2ZdJs272_asewZoQdG7w@mail.gmail.com> (raw)
In-Reply-To: <1430737448-29223-1-git-send-email-ahaslam@baylibre.com>

Hi Geert,

On Mon, May 4, 2015 at 2:30 PM, Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> Hi Axel,
>
> On Mon, May 4, 2015 at 1:04 PM,  <ahaslam@baylibre.com> wrote:
>> From: Axel Haslam <ahaslam+renesas@baylibre.com>
>>
>> when doing a suspend to ram with r8a7790 a warning starts appearing
>> since: commit ab82fa7da4dc ("gpio: rcar: Prevent module clock disable
>> when wake-up is enabled")
>>
>> the call trace that ends up in the waring is:
>>         gpio_rcar_irq_set_wake()
>>                 irq_set_irq_wake(p->irq_parent, on);
>>                         gic_set_wake()
>>
>> but since gic_arch_extn.irq_set_wake is not set, this returns
>> an error and  desc->wake_depth is set to 0, which generates warnings
>> on trying to disable the wake upon resume.
>>
>> To avoid this warning set the IRQCHIP_SKIP_SET_WAKE flag for the gic
>> irq's. With this flag set_irq_wake_real will avoid returning
>> errors and the calls will be balanced.
>
> I tried to handle this in the GIC driver:
> http://lists.infradead.org/pipermail/linux-arm-kernel/2015-March/331763.html
> but that was rejected by Marc Zyngier:
> http://lists.infradead.org/pipermail/linux-arm-kernel/2015-March/331813.html
>
> I wrote a patch to fix this in gpio-rcar, but forgot to send it.
> Sorry for that, will do later today.
>
>> @@ -27,6 +30,12 @@ static const char * const r8a7790_boards_compat_dt[] __initconst = {
>>         NULL,
>>  };
>>
>> +void __init r8a7790_init_irq(void)
>> +{
>> +       gic_arch_extn.flags = IRQCHIP_SKIP_SET_WAKE;
>> +       irqchip_init();
>> +}
>
> Please note that gic_arch_extn is cheduled for removal, cfr. "[PATCH] irqchip:
> gic: Drop support for gic_arch_extn"
> (http://www.spinics.net/lists/arm-kernel/msg413684.html)


I  missed your thread with Marc,
sorry for the noise.

Regards,
Axel

>
> Gr{oetje,eeting}s,
>
>                         Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                 -- Linus Torvalds

      parent reply	other threads:[~2015-05-04 12:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-04 11:04 [PATCH] ARM: shmobile: r8a7790: skip set_wake for gic irq ahaslam
2015-05-04 12:30 ` Geert Uytterhoeven
2015-05-04 12:54 ` Axel Haslam [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKXjFTM5SQqR7i10SJ2qhriVYBh6WE2ZdJs272_asewZoQdG7w@mail.gmail.com \
    --to=ahaslam@baylibre.com \
    --cc=linux-sh@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.