linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>
To: Pantelis Antoniou
	<pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
Cc: "Matt Porter" <mporter-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>,
	"Koen Kooi"
	<koen-QLwJDigV5abLmq1fohREcCpxlwaOVQ5f@public.gmane.org>,
	"Robert Nelson"
	<robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	"Rob Herring"
	<robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	"Grant Likely"
	<grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>,
	"Jonathan Corbet" <corbet-T1hC0tSOHrs@public.gmane.org>,
	"Srinivas Kandagatla"
	<srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	"Guenter Roeck" <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>,
	"Geert Uytterhoeven"
	<geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>,
	"Benoît Cousso"
	<bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>,
	linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	devicetree <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 4/5] doc: ABI: bone_capemgr sysfs API
Date: Wed, 13 May 2015 05:08:54 -0700	[thread overview]
Message-ID: <20150513120854.GA1516@kroah.com> (raw)
In-Reply-To: <28C3D47C-8D31-4DD9-8751-F72A7F09DF6F-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>

On Wed, May 13, 2015 at 02:56:49PM +0300, Pantelis Antoniou wrote:
> Hi Greg,
> 
> > On May 13, 2015, at 14:52 , Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote:
> > 
> > On Wed, May 13, 2015 at 10:59:44AM +0300, Pantelis Antoniou wrote:
> >> Document the beaglebone's capemgr sysfs API
> >> 
> >> Signed-off-by: Pantelis Antoniou <pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
> >> ---
> >> .../testing/sysfs-devices-platform-bone_capemgr    | 63 ++++++++++++++++++++++
> >> 1 file changed, 63 insertions(+)
> >> create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-bone_capemgr
> >> 
> >> diff --git a/Documentation/ABI/testing/sysfs-devices-platform-bone_capemgr b/Documentation/ABI/testing/sysfs-devices-platform-bone_capemgr
> >> new file mode 100644
> >> index 0000000..e2df613
> >> --- /dev/null
> >> +++ b/Documentation/ABI/testing/sysfs-devices-platform-bone_capemgr
> >> @@ -0,0 +1,63 @@
> >> +What:		/sys/devices/platform/bone_capemgr/slots
> >> +Date:		May 2015
> >> +KernelVersion:	4.0
> > 
> > I don't think that version is correct :)
> > 
> 
> Bah, ++
> 
> >> +Contact:	Pantelis Antoniou <pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
> >> +Description:
> >> +		READ:
> >> +		  Describe the state of all the slots of the beaglebone capemgr.
> >> +		  Each line of the output describes a slot:
> > 
> > sysfs files are "one value per file", so a sysfs file that displays
> > multiple lines like this is not allowed at all, sorry.
> > 
> > Please either make it a debugfs file (if this is only for debugging, or
> > split it out into individual files, one per slot (hint, one per slot is
> > probably best.)
> > 
> 
> Well, it’s a status file. And it’s been used as is for a couple of years
> so it was worth a shot for backward compatibility.

There is not "backwards compatiblity" for when you do things wrong in
the first place, you can't claim that here, sorry.

And don't "try" to introduce things you know is wrong, that just makes
maintainers _very_ suspicious of everything else you are doing here...

> >> +		  The slot format is as following:
> >> +		  <slot-id>: [P-][F-][O-][l-][L-][D-] \
> >> +			  <overlay-id> <board-name>,<version>,
> >> +			  <manufacturer>,<part-number>
> >> +
> >> +		Where the flags are:
> >> +		P: Slot has been probed
> >> +		F: Slot has failed probing (i.e. no EEPROM detected)
> >> +		O: Slot has been overridden by the user
> >> +		l: Slot is current loading
> >> +		L: Slot has completed loading and is ready
> >> +		D: Slot has been disabled
> >> +
> >> +		Example:
> >> +		0: P---L-  -1 BeagleBone RS232 CAPE,00A1,Beagleboardtoys,BB-BONE-SERL-03
> >> +		1: PF----  -1
> >> +		2: PF----  -1
> >> +		3: PF----  -1
> >> +
> >> +		WRITE:
> >> +		  Writing a string of the form <part-number>[:version] issues a request to
> >> +		  load a firmware blob containing an overlay. The name of the firmware blob
> >> +		  is <part-number>-[version|00A0].dtbo. This act is defined as a slot override.
> >> +
> >> +		  Writing a negative slot id removes the slot if it was an overridden one, or
> >> +		  unloads a slot that was probed.
> >> +
> >> +What:		/sys/devices/platform/bone_capemgr/baseboard/<eeprom-field>
> >> +Date:		May 2015
> >> +KernelVersion:	4.0
> >> +Contact:	Pantelis Antoniou <pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
> >> +Description:	Contains the probed base board EEPROM field; one of:
> >> +		board-name		- board-name as stored in cape EEPROM
> >> +		dc-supplied		- whether the cape draws or supplies DC
> >> +		eeprom-format-revision	- EEPROM format rev, only 00A0 supported
> >> +		header			- header; should be 'aa 55 33 ee'
> > 
> > If it's always this value, why have the file?
> > 
> 
> These are the contents of the EEPROM. If the format of the EEPROM changes then the
> header information will change.

Then don't say "should be", because what happens in the future if it is
not.

> >> +		manufacturer		- manufacturer string
> >> +		part-number		- part-number of the cape
> >> +		serial-number		- serial number of the cape
> >> +		version			- version of the cape, i.e. 00A0
> >> +		number-of-pins		- displayed but ignored
> >> +		pin-usage		- displayed but ignored
> >> +		sys-5v			- displayed but ignored
> >> +		vdd-3v3exp		- displayed but ignored
> >> +		vdd-5v			- displayed but ignored
> > 
> > Are these all individual different files?
> > 
> 
> Yes

Then write out the individual files please as different entries.

Also, the "displayed but ignored" doesn't make sense, please fix that
up.

greg k-h

  parent reply	other threads:[~2015-05-13 12:08 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-13  7:59 [PATCH 0/5] The Beaglebone capemanager Pantelis Antoniou
2015-05-13  7:59 ` [PATCH 1/5] misc: " Pantelis Antoniou
2015-05-13 11:55   ` Greg Kroah-Hartman
2015-05-13 12:10     ` Pantelis Antoniou
     [not found]       ` <67B17BCF-0489-4FD6-88F0-57B6187BEFEB-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
2015-05-13 15:36         ` Greg Kroah-Hartman
2015-05-13 15:51           ` Pantelis Antoniou
     [not found]   ` <1431503985-31853-2-git-send-email-pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
2015-05-13 14:47     ` Geert Uytterhoeven
2015-05-13  7:59 ` [PATCH 2/5] doc: misc: Beaglebone capemanager documentation Pantelis Antoniou
2015-05-13  7:59 ` [PATCH 3/5] doc: dt: beaglebone cape manager bindings Pantelis Antoniou
2015-05-13  7:59 ` [PATCH 4/5] doc: ABI: bone_capemgr sysfs API Pantelis Antoniou
     [not found]   ` <1431503985-31853-5-git-send-email-pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
2015-05-13 11:52     ` Greg Kroah-Hartman
     [not found]       ` <20150513115259.GA1021-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2015-05-13 11:56         ` Pantelis Antoniou
     [not found]           ` <28C3D47C-8D31-4DD9-8751-F72A7F09DF6F-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
2015-05-13 12:08             ` Greg Kroah-Hartman [this message]
     [not found]               ` <20150513120854.GA1516-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2015-05-13 12:42                 ` Pantelis Antoniou
     [not found] ` <1431503985-31853-1-git-send-email-pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
2015-05-13  7:59   ` [PATCH 5/5] MAINTAINERS: Beaglebone capemanager maintainer Pantelis Antoniou

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=20150513120854.GA1516@kroah.com \
    --to=gregkh-hqyy1w1ycw8ekmwlsbkhg0b+6bgklq7r@public.gmane.org \
    --cc=bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org \
    --cc=corbet-T1hC0tSOHrs@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org \
    --cc=grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org \
    --cc=koen-QLwJDigV5abLmq1fohREcCpxlwaOVQ5f@public.gmane.org \
    --cc=linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org \
    --cc=linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mporter-OWPKS81ov/FWk0Htik3J/w@public.gmane.org \
    --cc=pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org \
    --cc=robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A@public.gmane.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 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).