forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/…
…kernel/git/wsa/linux Pull i2c fixes from Wolfram Sang: "Some bugfixes from I2C: - fix a uevent triggered boot problem by removing a useless debug print - fix sysfs-attributes of the new i2c-demux-pinctrl driver to follow standard kernel behaviour - fix a potential division-by-zero error (needed two takes)" * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: i2c: jz4780: really prevent potential division by zero Revert "i2c: jz4780: prevent potential division by zero" i2c: jz4780: prevent potential division by zero i2c: mux: demux-pinctrl: Update docs to new sysfs-attributes i2c: mux: demux-pinctrl: Clean up sysfs attributes i2c: prevent endless uevent loop with CONFIG_I2C_DEBUG_CORE
- Loading branch information
Showing
4 changed files
with
49 additions
and
36 deletions.
There are no files selected for viewing
29 changes: 12 additions & 17 deletions
29
Documentation/ABI/testing/sysfs-platform-i2c-demux-pinctrl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters