Skip to content

Commit 2a811f3

Browse files
Guenter Roeckgregkh
authored andcommitted
hwmon: (zl6100) Enable interval between chip accesses for all chips
commit fecfb64 upstream. Intersil reports that all chips supported by the zl6100 driver require an interval between chip accesses, even ZL2004 and ZL6105 which were thought to be safe. Reported-by: Vivek Gani <vgani@intersil.com> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b527fd1 commit 2a811f3

2 files changed

Lines changed: 9 additions & 16 deletions

File tree

‎Documentation/hwmon/zl6100‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,12 @@ Module parameters
7373
delay
7474
-----
7575

76-
Some Intersil/Zilker Labs DC-DC controllers require a minimum interval between
77-
I2C bus accesses. According to Intersil, the minimum interval is 2 ms, though
78-
1 ms appears to be sufficient and has not caused any problems in testing.
79-
The problem is known to affect ZL6100, ZL2105, and ZL2008. It is known not to
80-
affect ZL2004 and ZL6105. The driver automatically sets the interval to 1 ms
81-
except for ZL2004 and ZL6105. To enable manual override, the driver provides a
82-
writeable module parameter, 'delay', which can be used to set the interval to
83-
a value between 0 and 65,535 microseconds.
76+
Intersil/Zilker Labs DC-DC controllers require a minimum interval between I2C
77+
bus accesses. According to Intersil, the minimum interval is 2 ms, though 1 ms
78+
appears to be sufficient and has not caused any problems in testing. The problem
79+
is known to affect all currently supported chips. For manual override, the
80+
driver provides a writeable module parameter, 'delay', which can be used to set
81+
the interval to a value between 0 and 65,535 microseconds.
8482

8583

8684
Sysfs entries

‎drivers/hwmon/pmbus/zl6100.c‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,11 @@ static int zl6100_probe(struct i2c_client *client,
178178
data->id = mid->driver_data;
179179

180180
/*
181-
* ZL2008, ZL2105, and ZL6100 are known to require a wait time
182-
* between I2C accesses. ZL2004 and ZL6105 are known to be safe.
183-
*
184-
* Only clear the wait time for chips known to be safe. The wait time
185-
* can be cleared later for additional chips if tests show that it
186-
* is not needed (in other words, better be safe than sorry).
181+
* According to information from the chip vendor, all currently
182+
* supported chips are known to require a wait time between I2C
183+
* accesses.
187184
*/
188185
data->delay = delay;
189-
if (data->id == zl2004 || data->id == zl6105)
190-
data->delay = 0;
191186

192187
/*
193188
* Since there was a direct I2C device access above, wait before

0 commit comments

Comments
 (0)