public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [regression] next-20170307: led trigger deferral breaks sdhci
@ 2017-03-08 21:17 Jon Hunter
       [not found] ` <20246b21-4c00-e22e-232d-49596f5f275e-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
  2017-03-09 20:30 ` Jacek Anaszewski
  0 siblings, 2 replies; 3+ messages in thread
From: Jon Hunter @ 2017-03-08 21:17 UTC (permalink / raw)
  To: Richard Purdie, Jacek Anaszewski, Pavel Machek, Adrian Hunter,
	Heiner Kallweit
  Cc: linux-leds-u79uwXL29TY76Z2rM5mHXA,
	linux-mmc-u79uwXL29TY76Z2rM5mHXA,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Hello!

I noticed that sdhci is broken for me on yesterday's and today's -next
and the bisect is pointing to commit 3f1318e01bb4 ('leds: core: use
deferred probing if default trigger isn't available yet').

At first I thought that ok, the problem is that sdhci driver is first
registering the led and then the trigger. However, then I looked at the
led_trigger_register() function and it appears to allow you to register
the led first and the trigger sometime later and populate the default
trigger later on. So then I am not sure why the above commit is needed?

It is not clear to me from the commit message for the above commit what
actual problem was caused by not registering the trigger first.

Cheers
Jon

-- 
nvpublic

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [regression] next-20170307: led trigger deferral breaks sdhci
       [not found] ` <20246b21-4c00-e22e-232d-49596f5f275e-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
@ 2017-03-09  6:50   ` Ludovic Desroches
  0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Desroches @ 2017-03-09  6:50 UTC (permalink / raw)
  To: Jon Hunter, Richard Purdie, Jacek Anaszewski, Pavel Machek,
	Adrian Hunter, Heiner Kallweit
  Cc: linux-leds-u79uwXL29TY76Z2rM5mHXA,
	linux-mmc-u79uwXL29TY76Z2rM5mHXA,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Hi,

On 03/08/2017 10:17 PM, Jon Hunter wrote:
> Hello!
>
> I noticed that sdhci is broken for me on yesterday's and today's -next
> and the bisect is pointing to commit 3f1318e01bb4 ('leds: core: use
> deferred probing if default trigger isn't available yet').

I have noticed it yesterday, I was going to perform a bisect but thanks 
to you I won't have to do it.

Ludovic

>
> At first I thought that ok, the problem is that sdhci driver is first
> registering the led and then the trigger. However, then I looked at the
> led_trigger_register() function and it appears to allow you to register
> the led first and the trigger sometime later and populate the default
> trigger later on. So then I am not sure why the above commit is needed?
>
> It is not clear to me from the commit message for the above commit what
> actual problem was caused by not registering the trigger first.
>
> Cheers
> Jon
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [regression] next-20170307: led trigger deferral breaks sdhci
  2017-03-08 21:17 [regression] next-20170307: led trigger deferral breaks sdhci Jon Hunter
       [not found] ` <20246b21-4c00-e22e-232d-49596f5f275e-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
@ 2017-03-09 20:30 ` Jacek Anaszewski
  1 sibling, 0 replies; 3+ messages in thread
From: Jacek Anaszewski @ 2017-03-09 20:30 UTC (permalink / raw)
  To: Jon Hunter, Richard Purdie, Pavel Machek, Adrian Hunter,
	Heiner Kallweit
  Cc: linux-leds, linux-mmc, linux-tegra@vger.kernel.org

Hi Joe,

On 03/08/2017 10:17 PM, Jon Hunter wrote:
> Hello!
> 
> I noticed that sdhci is broken for me on yesterday's and today's -next
> and the bisect is pointing to commit 3f1318e01bb4 ('leds: core: use
> deferred probing if default trigger isn't available yet').
> 
> At first I thought that ok, the problem is that sdhci driver is first
> registering the led and then the trigger. However, then I looked at the
> led_trigger_register() function and it appears to allow you to register
> the led first and the trigger sometime later and populate the default
> trigger later on. So then I am not sure why the above commit is needed?
> 
> It is not clear to me from the commit message for the above commit what
> actual problem was caused by not registering the trigger first.

The problem was the case when the trigger that has been defined as
"default-trigger" in DT is not registered at the moment of LED class
driver probing. It is silently ignored by LED core.

It turned out that we accepted the commit too hastily, and in fact
that case seems not to be critical to the extent justifying preventing
LED class device registration.

Probably dev_warn() should be enough in this case. I've already dropped
the commit. Sorry for making confusion.

-- 
Best regards,
Jacek Anaszewski

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-09 20:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-08 21:17 [regression] next-20170307: led trigger deferral breaks sdhci Jon Hunter
     [not found] ` <20246b21-4c00-e22e-232d-49596f5f275e-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2017-03-09  6:50   ` Ludovic Desroches
2017-03-09 20:30 ` Jacek Anaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox