Linux LED subsystem development
 help / color / mirror / Atom feed
From: Sakari Ailus <sakari.ailus@iki.fi>
To: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Cc: Bryan Wu <cooloney@gmail.com>, Richard Purdie <rpurdie@rpsys.net>,
	Linux LED Subsystem <linux-leds@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	j.anaszewski@samsung.com
Subject: Re: [PATCH v3] led/led-class: Handle LEDs with the same name
Date: Wed, 25 Mar 2015 15:02:43 +0200	[thread overview]
Message-ID: <20150325130243.GL18321@valkosipuli.retiisi.org.uk> (raw)
In-Reply-To: <CAPybu_0ho2FhPXjhcWw7L=7o5OivRbOgrzFcB9-iKLfy9OpONQ@mail.gmail.com>

Hi Ricardo,

On Wed, Mar 25, 2015 at 10:20:59AM +0100, Ricardo Ribalda Delgado wrote:
> Hi Sakari
> 
> On Wed, Mar 25, 2015 at 1:54 AM, Sakari Ailus <sakari.ailus@iki.fi> wrote:
> > I'd use dev_warn() or even WARN_ON(ret). This is a rather serious issue as
> > now the probe order defines the name of the device. There might be something
> > better such as the I2C bus/address.
> 
> I have no problem in sending a dev_warn, WARN_ON looks too much to me.
> 
> In my example (dt overlays), it is perfectly ok to have duplicated names.
> 
> >
> > If the registration order for some reason changes, that'd revert the device
> > names. In Media controller this is part of the user space API.
> 
> Would it be possible for media controller leds to have a name based on
> their address?

It's included where there's a stable address. That's not true for GPIO
controlled devices though, it's a GPIO controller plus a number. Ramming
lots of information to the media entity's name field is not possible since
it's just 32 bytes; for this reason we're looking to implement a better way
to recognise devices in MC. But for now, we got to cope with what we have.

> Regarding s/dev_info/dev_warn : Do you want to send the patch or I should do it?

Is this one merged already? If yes, sure I can. Otherwise a new version
would be nice.

-- 
Cheers,

Sakari Ailus
e-mail: sakari.ailus@iki.fi	XMPP: sailus@retiisi.org.uk

  reply	other threads:[~2015-03-25 13:03 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-13 23:05 [PATCH v3] led/led-class: Handle LEDs with the same name Ricardo Ribalda Delgado
2015-03-25  0:54 ` Sakari Ailus
2015-03-25  9:20   ` Ricardo Ribalda Delgado
2015-03-25 13:02     ` Sakari Ailus [this message]
2015-03-25 13:22       ` Ricardo Ribalda Delgado
2015-03-25 13:53         ` Sakari Ailus
2015-03-25 18:33           ` Bryan Wu
2015-03-26 23:30 ` Sakari Ailus
2015-03-27  8:09   ` Ricardo Ribalda Delgado
2015-03-27 17:24     ` Bryan Wu
2015-03-28  1:07       ` Fengguang Wu
2015-06-08 22:55         ` Kees Cook
2015-06-26  9:19           ` Geert Uytterhoeven
2015-06-26 17:47             ` Kees Cook
2015-03-30  7:59 ` Geert Uytterhoeven
2015-03-30  8:35   ` Ricardo Ribalda Delgado
2015-03-30  8:43 ` Geert Uytterhoeven

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=20150325130243.GL18321@valkosipuli.retiisi.org.uk \
    --to=sakari.ailus@iki.fi \
    --cc=cooloney@gmail.com \
    --cc=j.anaszewski@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=ricardo.ribalda@gmail.com \
    --cc=rpurdie@rpsys.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox