linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i2c: mux: demux-pinctrl: Update docs to new sysfs-attributes
@ 2016-04-03 14:42 Wolfram Sang
  2016-04-03 22:13 ` Peter Rosin
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfram Sang @ 2016-04-03 14:42 UTC (permalink / raw)
  To: linux-i2c; +Cc: linux-renesas-soc, Wolfram Sang, Ben Hutchings

From: Wolfram Sang <wsa+renesas@sang-engineering.com>

Update the docs according to the recent code changes, too.

Fixes: c0c508a418f9da ("i2c: mux: demux-pinctrl: Clean up sysfs attributes")
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 .../ABI/testing/sysfs-platform-i2c-demux-pinctrl   | 29 +++++++++-------------
 1 file changed, 12 insertions(+), 17 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-platform-i2c-demux-pinctrl b/Documentation/ABI/testing/sysfs-platform-i2c-demux-pinctrl
index 7ac7d7262bb718..3c3514815cd53b 100644
--- a/Documentation/ABI/testing/sysfs-platform-i2c-demux-pinctrl
+++ b/Documentation/ABI/testing/sysfs-platform-i2c-demux-pinctrl
@@ -1,23 +1,18 @@
-What:		/sys/devices/platform/<i2c-demux-name>/cur_master
+What:		/sys/devices/platform/<i2c-demux-name>/available_masters
 Date:		January 2016
 KernelVersion:	4.6
 Contact:	Wolfram Sang <wsa@the-dreams.de>
 Description:
+		Reading the file will give you a list of masters which can be
+		selected for a demultiplexed bus. The format is
+		"<index>:<name>". Example from a Renesas Lager board:
 
-This file selects the active I2C master for a demultiplexed bus.
+		0:/i2c@e6500000 1:/i2c@e6508000
 
-Write 0 there for the first master, 1 for the second etc. Reading the file will
-give you a list with the active master marked. Example from a Renesas Lager
-board:
-
-root@Lager:~# cat /sys/devices/platform/i2c@8/cur_master
-* 0 - /i2c@9
-  1 - /i2c@e6520000
-  2 - /i2c@e6530000
-
-root@Lager:~# echo 2 > /sys/devices/platform/i2c@8/cur_master
-
-root@Lager:~# cat /sys/devices/platform/i2c@8/cur_master
-  0 - /i2c@9
-  1 - /i2c@e6520000
-* 2 - /i2c@e6530000
+What:		/sys/devices/platform/<i2c-demux-name>/current_master
+Date:		January 2016
+KernelVersion:	4.6
+Contact:	Wolfram Sang <wsa@the-dreams.de>
+Description:
+		This file selects/shows the active I2C master for a demultiplexed
+		bus. It uses the <index> value from the file 'available_masters'.
-- 
2.7.0

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

* RE: [PATCH] i2c: mux: demux-pinctrl: Update docs to new sysfs-attributes
  2016-04-03 14:42 [PATCH] i2c: mux: demux-pinctrl: Update docs to new sysfs-attributes Wolfram Sang
@ 2016-04-03 22:13 ` Peter Rosin
  2016-04-04 10:46   ` Wolfram Sang
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Rosin @ 2016-04-03 22:13 UTC (permalink / raw)
  To: Wolfram Sang, linux-i2c@vger.kernel.org
  Cc: linux-renesas-soc@vger.kernel.org, Wolfram Sang, Ben Hutchings

Wolfram Sang wrote:
> Update the docs according to the recent code changes, too.
> 
> Fixes: c0c508a418f9da ("i2c: mux: demux-pinctrl: Clean up sysfs attributes")
> Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Wolfram, in case it wasn't obvious, I just wanted to clarify that I'm
perfectly happy with you handling everything about demux-pinctrl.
If that suits you?

Cheers,
Peter

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

* Re: [PATCH] i2c: mux: demux-pinctrl: Update docs to new sysfs-attributes
  2016-04-03 22:13 ` Peter Rosin
@ 2016-04-04 10:46   ` Wolfram Sang
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfram Sang @ 2016-04-04 10:46 UTC (permalink / raw)
  To: Peter Rosin
  Cc: linux-i2c@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
	Wolfram Sang, Ben Hutchings

[-- Attachment #1: Type: text/plain, Size: 583 bytes --]

On Sun, Apr 03, 2016 at 10:13:57PM +0000, Peter Rosin wrote:
> Wolfram Sang wrote:
> > Update the docs according to the recent code changes, too.
> > 
> > Fixes: c0c508a418f9da ("i2c: mux: demux-pinctrl: Clean up sysfs attributes")
> > Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
> > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> 
> Wolfram, in case it wasn't obvious, I just wanted to clarify that I'm
> perfectly happy with you handling everything about demux-pinctrl.
> If that suits you?

Sure, I don't expect there much to happen anyhow.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

end of thread, other threads:[~2016-04-04 10:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-03 14:42 [PATCH] i2c: mux: demux-pinctrl: Update docs to new sysfs-attributes Wolfram Sang
2016-04-03 22:13 ` Peter Rosin
2016-04-04 10:46   ` Wolfram Sang

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).