Skip to content

Commit

Permalink
hwmon: (pmbus/ltc2978) Fix PMBus polling of MFR_COMMON definitions.
Browse files Browse the repository at this point in the history
commit cf2b012 upstream.

Change 21537dc driver PMBus polling of MFR_COMMON from bits 5/4 to
bits 6/5. This fixs a LTC297X family bug where polling always returns
not busy even when the part is busy. This fixes a LTC388X and
LTM467X bug where polling used PEND and NOT_IN_TRANS, and BUSY was
not polled, which can lead to NACKing of commands. LTC388X and
LTM467X modules now poll BUSY and PEND, increasing reliability by
eliminating NACKing of commands.

Signed-off-by: Mike Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Fixes: e04d1ce ("hwmon: (ltc2978) Add polling for chips requiring it")
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
adimike authored and gregkh committed Feb 19, 2020
1 parent 6f1e32c commit aa90c2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/hwmon/pmbus/ltc2978.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ enum chips { ltc2974, ltc2975, ltc2977, ltc2978, ltc2980, ltc3880, ltc3882,

#define LTC_POLL_TIMEOUT 100 /* in milli-seconds */

#define LTC_NOT_BUSY BIT(5)
#define LTC_NOT_PENDING BIT(4)
#define LTC_NOT_BUSY BIT(6)
#define LTC_NOT_PENDING BIT(5)

/*
* LTC2978 clears peak data whenever the CLEAR_FAULTS command is executed, which
Expand Down

0 comments on commit aa90c2c

Please sign in to comment.