[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdbU=87WNn1jksJitVouOQuXJsukUqCXggnD6kUjyr7Zwg@mail.gmail.com>
Date: Wed, 29 Aug 2018 13:57:08 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Robert Jarzmik <robert.jarzmik@...e.fr>
Cc: "open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] gpio: pxa: handle corner case of unprobed device
On Sat, Aug 25, 2018 at 10:44 AM Robert Jarzmik <robert.jarzmik@...e.fr> wrote:
> In the corner case where the gpio driver probe fails, for whatever
> reason, the suspend and resume handlers will still be called as they
> have to be registered as syscore operations. This applies as well when
> no probe was called while the driver has been built in the kernel.
>
> Nicolas tracked this in :
> https://bugzilla.kernel.org/show_bug.cgi?id=200905
>
> Therefore, add a failsafe in these function, and test if a proper probe
> succeeded and the driver is functional.
>
> Signed-off-by: Robert Jarzmik <robert.jarzmik@...e.fr>
> Reported-by: Nicolas Chauvet <kwizart@...il.com>
Patch applied.
Yours,
Linus Walleij
Powered by blists - more mailing lists