linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Aishwarya Pant <aishpant@gmail.com>
To: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Jani Nikula <jani.nikula@linux.intel.com>,
	Milo Kim <milo.kim@ti.com>,
	linux-fbdev@vger.kernel.org,
	Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
	Jingoo Han <jingoohan1@gmail.com>,
	Jonathan Corbet <corbet@lwn.net>,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	Julia Lawall <julia.lawall@lip6.fr>,
	Greg KH <gregkh@linuxfoundation.org>,
	Lee Jones <lee.jones@linaro.org>
Subject: Re: [PATCH 1/5] backlight: lp8788: document sysfs attributes
Date: Mon, 05 Feb 2018 07:37:50 +0000	[thread overview]
Message-ID: <20180205072550.GA9376@mordor.localdomain> (raw)
In-Reply-To: <20180201113604.kcue6auuivud52qz@oak.lan>

On Thu, Feb 01, 2018 at 11:36:04AM +0000, Daniel Thompson wrote:
> On Wed, Jan 31, 2018 at 01:51:21PM +0200, Jani Nikula wrote:
> > On Wed, 31 Jan 2018, Daniel Thompson <daniel.thompson@linaro.org> wrote:
> > > On Fri, Jan 26, 2018 at 08:20:08PM +0530, Aishwarya Pant wrote:
> > >> Add documentation for sysfs interfaces of lp8788 backlight driver by
> > >> looking through the code and the git commit history.
> > >> 
> > >> Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
> > >> ---
> > >>  Documentation/ABI/testing/sysfs-class-backlight-lp8788 | 10 ++++++++++
> > >>  1 file changed, 10 insertions(+)
> > >>  create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lp8788
> > >> 
> > >> diff --git a/Documentation/ABI/testing/sysfs-class-backlight-lp8788 b/Documentation/ABI/testing/sysfs-class-backlight-lp8788
> > >> new file mode 100644
> > >> index 000000000000..c0e565c8d63d
> > >> --- /dev/null
> > >> +++ b/Documentation/ABI/testing/sysfs-class-backlight-lp8788
> > >> @@ -0,0 +1,10 @@
> > >> +sysfs interface for Texas Instruments lp8788 mfd backlight driver
> > >> +-----------------------------------------------------------------
> > >> +
> > >> +What:		/sys/class/backlight/<backlight>/bl_ctl_mode
> > >> +Date:		Feb, 2013
> > >> +KernelVersion:	v3.10
> > >> +Contact:	Milo Kim <milo.kim@ti.com>
> > >> +Description:
> > >> +		(RO) Displays whether the brightness is controlled by the PWM
> > >> +		input("PWM based") or the I2C register("Register based").
> > >
> > > I rather dislike drivers with this type of "bonus" sysfs controls. I'm
> > > struggling to come up with any reason why the userspace would want to
> > > read this control (and I think bl_ctl_mode gets the fewest hits after
> > > searching with google hits of any search I've tried) . It looks to me 
> > > like this is debug information that should never have gone into sysfs 
> > > at all.
> > 
> > Agreed. I think the same holds for the other extra sysfs attributes. At
> > worst, having these prevents the backlight class from adding the names
> > later on, which is just backwards.
> 
> The problem is that they do exist...
> 
> For controls which appear to be misplaced debug attributes I think I am
> happy to nuke the values entirely. It is extremely improbable that any
> userspace will notice.
> 
> Unfortunately some of the controls look like they could be poked by an
> custom userspace so I'm quite so confident about nuking these ones...and if we
> don't nuke we should document (so thanks Aishwarya!). 
> 

Hi

Thanks for reviewing. Should I take it to assume that we would like to keep the
debug-like attributes in documentation for now?

Aishwarya

> 
> Daniel.

  reply	other threads:[~2018-02-05  7:37 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-26 14:48 [PATCH 0/5] backlight: document sysfs interfaces Aishwarya Pant
2018-01-26 14:50 ` [PATCH 1/5] backlight: lp8788: document sysfs attributes Aishwarya Pant
2018-01-31 11:07   ` Daniel Thompson
2018-01-31 11:51     ` Jani Nikula
2018-02-01 11:36       ` Daniel Thompson
2018-02-05  7:37         ` Aishwarya Pant [this message]
2018-02-05 14:39           ` Daniel Thompson
2018-01-26 14:53 ` [PATCH 2/5] backlight: lp855x: " Aishwarya Pant
2018-02-01 11:06   ` Daniel Thompson
2018-02-01 15:58     ` Aishwarya Pant
2018-01-26 14:54 ` [PATCH 3/5] backlight: lm3639: " Aishwarya Pant
2018-01-31 11:34   ` Daniel Thompson
2018-01-26 14:55 ` [PATCH 4/5] backlight: adp5520: " Aishwarya Pant
2018-02-01 16:28   ` Michael Hennerich
2018-01-26 14:55 ` [PATCH 5/5] backlight: adp8860: " Aishwarya Pant
2018-02-01 16:28   ` Michael Hennerich

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=20180205072550.GA9376@mordor.localdomain \
    --to=aishpant@gmail.com \
    --cc=b.zolnierkie@samsung.com \
    --cc=corbet@lwn.net \
    --cc=daniel.thompson@linaro.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=jingoohan1@gmail.com \
    --cc=julia.lawall@lip6.fr \
    --cc=lee.jones@linaro.org \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=milo.kim@ti.com \
    /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;
as well as URLs for NNTP newsgroup(s).