Brandon Wyman
90fea7ff7e
hwmon: (pmbus) Add Vin unit off handling
...
[ Upstream commit a5436af598 ]
If there is an input undervoltage fault, reported in STATUS_INPUT
command response, there is quite likely a "Unit Off For Insufficient
Input Voltage" condition as well.
Add a constant for bit 3 of STATUS_INPUT. Update the Vin limit
attributes to include both bits in the mask for clearing faults.
If an input undervoltage fault occurs, causing a unit off for
insufficient input voltage, but the unit is off bit is not cleared, the
STATUS_WORD will not be updated to clear the input fault condition.
Including the unit is off bit (bit 3) allows for the input fault
condition to completely clear.
Signed-off-by: Brandon Wyman <bjwyman@gmail.com >
Link: https://lore.kernel.org/r/20220317232123.2103592-1-bjwyman@gmail.com
Fixes: b4ce237b7f ("hwmon: (pmbus) Introduce infrastructure to detect sensors and limit registers")
[groeck: Dropped unnecessary ()]
Signed-off-by: Guenter Roeck <linux@roeck-us.net >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-06-29 09:26:01 +09:00
..
2023-06-29 09:26:01 +09:00
2014-10-03 08:19:02 -07:00
2014-10-20 16:20:36 +02:00
2014-10-20 16:20:36 +02:00
2015-10-14 07:57:14 -07:00
2013-04-16 18:27:52 -07:00
2023-05-16 08:29:23 +09:00
2016-06-27 18:58:03 -07:00
2014-08-04 07:01:35 -07:00
2014-08-04 07:01:35 -07:00
2015-01-25 21:24:00 -08:00
2015-10-28 10:30:17 +09:00
2014-08-04 07:01:36 -07:00
2014-08-05 19:44:36 -07:00
2014-08-05 19:44:36 -07:00
2014-08-04 07:01:35 -07:00
2014-08-04 07:01:37 -07:00
2016-10-17 10:16:20 -07:00
2016-02-18 19:14:04 -08:00
2016-04-19 06:30:28 -07:00
2016-06-27 18:58:03 -07:00
2013-04-07 21:16:38 -07:00
2013-04-07 21:16:38 -07:00
2015-10-28 10:30:17 +09:00
2013-04-07 21:16:38 -07:00
2016-09-08 21:34:14 -07:00
2023-05-15 17:03:16 +09:00
2016-09-18 10:10:26 -07:00
2023-05-15 16:47:40 +09:00
2017-01-12 11:39:25 +01:00
2023-05-16 09:04:09 +09:00
2014-08-05 19:44:36 -07:00
2014-08-04 07:01:38 -07:00
2017-12-25 14:23:40 +01:00
2015-05-31 22:58:36 -07:00
2018-02-22 15:43:55 +01:00
2014-10-20 16:20:36 +02:00
2014-10-20 16:20:36 +02:00
2023-05-16 12:42:27 +09:00
2014-10-20 16:20:36 +02:00
2017-01-12 11:39:25 +01:00
2014-08-28 11:18:47 -07:00
2016-06-27 18:58:03 -07:00
2014-08-04 07:01:35 -07:00
2023-05-16 08:31:03 +09:00
2023-05-15 13:35:01 +09:00
2015-08-09 13:44:26 -07:00
2013-10-13 16:16:27 -07:00
2016-06-07 20:11:10 -07:00
2013-04-07 21:16:40 -07:00
2016-09-08 21:34:16 -07:00
2014-08-04 07:01:37 -07:00
2017-01-12 11:39:26 +01:00
2014-08-04 07:01:36 -07:00
2017-10-08 10:26:04 +02:00
2016-02-19 17:14:25 -08:00
2014-08-05 19:40:27 -07:00
2018-02-22 15:43:55 +01:00
2023-05-16 12:14:46 +09:00
2014-10-20 16:20:36 +02:00
2015-01-24 14:16:22 +01:00
2016-01-04 08:56:22 -08:00
2015-03-09 09:59:35 -07:00
2023-05-15 09:51:27 +09:00
2016-09-08 21:34:17 -07:00
2023-05-15 10:31:06 +09:00
2013-10-18 09:11:57 -07:00
2023-05-15 15:12:48 +09:00
2017-05-14 14:00:13 +02:00
2023-05-15 17:24:21 +09:00
2016-06-27 18:58:03 -07:00
2018-02-22 15:43:55 +01:00
2018-02-22 15:43:55 +01:00
2016-09-13 07:27:34 -07:00
2014-08-04 07:01:37 -07:00
2014-08-04 07:01:36 -07:00
2015-10-28 10:30:17 +09:00
2013-10-13 16:16:28 -07:00
2023-05-15 16:46:29 +09:00
2013-03-18 21:19:49 +01:00
2014-07-31 09:41:46 -07:00
2014-10-20 16:20:36 +02:00
2023-05-16 11:05:34 +09:00
2014-05-21 16:02:26 -07:00
2015-04-17 09:03:55 -04:00
2014-08-05 19:44:42 -07:00
2023-05-16 12:35:06 +09:00
2014-08-05 17:48:52 -07:00
2014-08-04 07:01:36 -07:00
2014-12-02 06:11:53 -08:00
2016-09-13 07:28:01 -07:00
2016-09-08 21:34:18 -07:00
2014-08-04 07:01:35 -07:00
2016-03-05 06:25:34 -08:00
2016-09-08 21:34:16 -07:00
2014-03-03 08:01:05 -08:00
2014-08-04 07:01:35 -07:00
2016-09-08 21:34:18 -07:00
2014-08-04 07:01:35 -07:00
2013-10-18 09:12:00 -07:00
2016-09-08 21:34:16 -07:00
2015-05-31 22:58:36 -07:00
2016-03-27 10:37:48 -07:00
2014-05-21 16:02:25 -07:00
2014-08-04 07:01:39 -07:00
2014-08-04 07:01:39 -07:00
2014-01-29 20:40:08 +01:00
2016-09-08 21:34:17 -07:00
2023-05-16 08:29:21 +09:00
2014-08-04 07:01:38 -07:00
2023-05-16 11:23:48 +09:00
2023-05-16 11:23:49 +09:00
2014-10-20 16:20:36 +02:00
2015-07-01 13:56:27 -07:00
2014-11-03 19:53:56 -08:00
2016-01-09 07:31:58 -08:00
2023-05-15 14:16:59 +09:00
2023-05-15 16:48:01 +09:00
2016-09-08 21:34:18 -07:00
2016-03-08 18:40:49 -08:00
2016-09-08 21:34:15 -07:00
2014-10-20 16:20:36 +02:00
2023-05-15 13:34:59 +09:00
2014-01-29 20:40:08 +01:00
2014-08-04 07:01:33 -07:00
2023-05-15 15:12:43 +09:00
2014-10-20 16:20:36 +02:00
2023-06-29 09:26:01 +09:00
2014-10-20 16:20:36 +02:00
2016-04-25 07:26:29 -07:00
2017-01-12 11:39:25 +01:00
2016-07-31 14:56:36 -07:00
2015-08-10 23:00:10 -07:00
2014-08-04 07:01:38 -07:00
2023-05-15 16:46:41 +09:00
2014-10-20 16:20:36 +02:00
2014-08-04 07:01:37 -07:00
2023-05-15 13:34:57 +09:00
2023-05-15 13:34:56 +09:00
2014-08-04 07:01:39 -07:00
2015-06-21 22:54:53 -07:00
2014-08-04 07:01:39 -07:00
2016-09-08 21:34:17 -07:00
2014-09-22 11:11:48 -07:00
2016-06-27 18:58:03 -07:00
2023-05-16 11:53:47 +09:00
2014-10-20 16:20:36 +02:00
2014-10-20 16:20:36 +02:00
2016-03-05 06:25:33 -08:00
2014-10-20 16:20:36 +02:00
2014-10-20 16:20:36 +02:00
2023-05-15 13:34:54 +09:00
2014-10-20 16:20:36 +02:00
2014-04-04 18:01:34 +02:00
2014-08-04 07:01:34 -07:00
2015-07-03 14:39:06 +02:00
2023-05-15 16:44:51 +09:00
2014-10-20 16:20:36 +02:00
2014-08-05 19:44:42 -07:00
2015-07-03 14:39:05 +02:00
2014-08-05 19:44:42 -07:00
2023-05-15 10:31:09 +09:00
2014-10-20 16:20:36 +02:00
2014-10-20 16:20:36 +02:00
2016-09-09 14:54:53 -07:00