Guenter Roeck
4ce6e8a859
hwmon: Add PEC attribute support to hardware monitoring core
...
Several hardware monitoring chips optionally support Packet Error Checking
(PEC). For some chips, PEC support can be enabled simply by setting
I2C_CLIENT_PEC in the i2c client data structure. Others require chip
specific code to enable or disable PEC support.
Introduce hwmon_chip_pec and HWMON_C_PEC to simplify adding configurable
PEC support for hardware monitoring drivers. A driver can set HWMON_C_PEC
in its chip information data to indicate PEC support. If a chip requires
chip specific code to enable or disable PEC support, the driver only needs
to implement support for the hwmon_chip_pec attribute to its write
function.
Packet Error Checking is only supported for SMBus devices. HWMON_C_PEC
must therefore only be set by a driver if the parent device is an I2C
device. Attempts to set HWMON_C_PEC on any other device type is not
supported and rejected.
The code calls i2c_check_functionality() to check if PEC is supported
by the I2C/SMBus controller. This function is only available if CONFIG_I2C
is enabled and reachable. For this reason, the added code needs to depend
on reachability of CONFIG_I2C.
Cc: Radu Sabau <radu.sabau@analog.com >
Acked-by: Nuno Sa <nuno.sa@analog.com >
Signed-off-by: Guenter Roeck <linux@roeck-us.net >
2024-06-03 20:25:28 -07:00
..
2024-04-18 12:09:14 +01:00
2024-04-05 16:49:14 +02:00
2024-03-07 21:52:03 +00:00
2024-03-19 16:11:42 +01:00
2024-04-25 14:41:18 +05:30
2024-05-15 10:02:36 -07:00
2024-04-23 15:37:20 +08:00
2024-03-27 10:25:54 +00:00
2024-05-14 15:07:07 -07:00
2024-05-03 11:48:56 +01:00
2024-04-15 08:10:26 -06:00
2024-03-25 17:38:29 +01:00
2024-05-22 12:26:46 -07:00
2024-05-14 10:53:19 -07:00
2024-05-16 08:56:49 -07:00
2024-03-21 15:09:29 -07:00
2024-04-24 11:06:26 -07:00
2024-04-25 20:55:49 -07:00
2024-04-26 13:13:16 +05:30
2024-03-29 00:30:16 +05:30
2024-05-22 12:26:46 -07:00
2024-04-01 12:29:44 +02:00
2024-04-18 18:27:39 -07:00
2024-04-02 10:47:43 +08:00
2024-05-23 13:39:42 -07:00
2024-04-30 10:44:53 -06:00
2024-05-23 12:04:36 -07:00
2024-04-23 12:16:55 +02:00
2024-05-04 18:26:50 +05:30
2024-05-03 11:11:33 +09:00
2024-03-12 17:33:41 +02:00
2024-05-06 09:07:22 -04:00
2024-05-10 10:36:31 +01:00
2024-04-26 12:07:23 +02:00
2024-05-14 15:07:07 -07:00
2024-03-08 15:26:46 -06:00
2024-05-26 14:40:39 -07:00
2024-04-26 19:35:38 +02:00
2024-04-26 10:33:05 +02:00
2024-04-24 12:08:01 +02:00
2024-04-18 18:29:50 +01:00
2024-05-02 20:35:57 +02:00
2024-05-10 15:43:31 +01:00
2024-05-07 07:29:42 -06:00
2024-04-01 10:49:28 +01:00
2024-05-21 15:29:01 -07:00
2024-05-21 13:02:56 -07:00
2024-04-17 08:44:03 -06:00
2024-05-21 13:02:56 -07:00
2024-04-14 22:00:43 +09:00
2024-04-24 16:01:10 -07:00
2024-03-11 15:37:23 -07:00
2024-04-24 09:47:49 -07:00
2024-05-19 09:21:03 -07:00
2024-04-25 20:55:59 -07:00
2024-04-11 21:37:48 -04:00
2024-04-29 16:28:07 -07:00
2024-05-21 09:51:42 -07:00
2024-04-04 10:40:27 +02:00
2024-04-16 12:10:42 -10:00
2024-03-28 15:35:38 -07:00
2024-05-08 17:29:22 -04:00
2024-04-09 22:06:00 -07:00
2024-04-25 20:55:57 -07:00
2024-05-09 09:25:08 -07:00
2024-05-22 14:13:22 -07:00
2024-05-22 14:12:11 -07:00
2024-03-11 19:53:15 -07:00
2024-04-12 15:07:53 +08:00
2024-05-08 09:53:00 -07:00
2024-04-24 14:22:41 +01:00
2024-04-23 09:03:37 +09:00
2024-04-25 15:47:39 +02:00
2024-04-24 12:07:58 +02:00
2024-03-25 17:38:28 +01:00
2024-05-22 09:56:00 -07:00
2024-04-08 07:39:16 -10:00
2024-04-23 14:59:01 +10:00
2024-05-02 12:12:08 -07:00
2024-05-05 17:53:55 -07:00
2024-03-11 09:38:17 -07:00
2024-03-19 16:11:42 +01:00
2024-04-11 09:39:48 -04:00
2024-05-22 12:13:40 -07:00
2024-05-14 11:43:40 +02:00
2024-03-07 20:37:04 +00:00
2024-04-15 13:56:32 -03:00
2024-04-26 12:07:24 +02:00
2024-04-25 20:55:59 -07:00
2024-05-06 13:28:59 -07:00
2024-05-20 10:23:39 -07:00
2024-05-09 19:00:29 +02:00
2024-04-26 11:57:36 +02:00
2024-03-07 10:29:36 -08:00
2024-03-19 16:11:42 +01:00
2024-04-15 11:19:53 -07:00
2024-04-13 10:33:02 +02:00
2024-03-12 23:08:29 -07:00
2024-04-15 11:02:51 -07:00
2024-04-08 16:05:14 +02:00
2024-04-25 12:41:37 -07:00
2024-04-05 22:24:09 -07:00
2024-04-09 17:14:57 -04:00
2024-05-14 00:31:43 -07:00
2024-05-11 00:41:15 +00:00
2024-05-22 10:45:12 -07:00
2024-04-15 16:03:24 -04:00
2024-05-09 13:02:39 +02:00
2024-05-13 16:41:10 -07:00
2024-05-21 15:29:01 -07:00
2024-05-06 11:06:04 +09:00
2024-03-07 22:02:12 +00:00
2024-03-16 08:29:48 +01:00
2024-05-24 11:55:05 -07:00
2024-05-01 23:18:47 +09:00
2024-05-19 14:36:17 -07:00
2024-03-26 09:01:18 +01:00
2024-05-21 13:11:44 -07:00
2024-04-29 15:01:42 +01:00
2024-04-17 15:06:50 +02:00
2024-04-04 16:24:16 +02:00
2024-05-22 16:12:48 -07:00
2024-03-13 00:03:21 -07:00
2024-03-07 22:10:01 +00:00
2024-03-13 21:22:26 -04:00
2024-04-01 21:44:34 -07:00
2024-04-25 20:55:51 -07:00
2024-05-19 14:40:44 -07:00
2024-04-17 22:46:44 +02:00
2024-03-07 21:42:38 +00:00
2024-05-19 09:21:03 -07:00
2024-05-07 15:38:36 +02:00
2024-05-05 17:53:53 -07:00
2024-05-19 09:21:03 -07:00
2024-06-03 20:25:28 -07:00
2024-04-23 13:16:03 +02:00
2024-05-13 16:13:19 +02:00
2024-03-07 09:36:08 +01:00
2024-04-19 10:16:32 +02:00
2024-03-10 14:38:04 -07:00
2024-04-25 21:07:02 -07:00
2024-04-09 17:14:57 -04:00
2024-04-30 21:10:37 +02:00
2024-04-29 13:01:08 +02:00
2024-03-25 23:45:21 +01:00
2024-04-22 11:26:01 -06:00
2024-04-15 08:10:26 -06:00
2024-05-19 09:21:03 -07:00
2024-05-13 14:06:54 +02:00
2024-05-07 13:29:45 +02:00
2024-04-11 12:29:40 +02:00
2024-04-12 17:08:05 +02:00
2024-05-15 17:02:08 -05:00
2024-04-08 16:34:18 +02:00
2024-05-21 09:51:42 -07:00
2024-03-22 11:18:16 +01:00
2024-04-12 17:08:05 +02:00
2024-03-18 10:33:06 -04:00
2024-05-19 14:02:03 -07:00
2024-05-22 11:53:02 -07:00
2024-04-25 21:07:02 -07:00
2024-05-16 07:23:30 +09:00
2024-05-05 17:53:47 -07:00
2024-05-12 03:16:47 -04:00
2024-04-19 12:15:18 -04:00
2024-05-03 10:44:42 +01:00
2024-03-07 08:48:03 +00:00
2024-03-07 08:48:03 +00:00
2024-03-07 08:45:31 +00:00
2024-03-28 10:40:24 +00:00
2024-05-14 18:25:53 -07:00
2024-04-01 10:49:27 +01:00
2024-05-09 15:48:01 +02:00
2024-05-08 13:19:20 -05:00
2024-04-09 17:14:57 -04:00
2024-05-07 15:17:52 -07:00
2024-04-08 15:03:07 +02:00
2024-05-07 10:37:00 -07:00
2024-05-05 17:53:25 -07:00
2024-03-16 10:04:12 -07:00
2024-04-25 20:55:48 -07:00
2024-04-25 20:55:56 -07:00
2024-04-25 20:16:43 +05:30
2024-05-05 17:53:42 -07:00
2024-05-05 17:53:49 -07:00
2024-03-26 11:07:22 -07:00
2024-04-25 20:56:24 -07:00
2024-03-06 13:04:18 -08:00
2024-04-12 04:40:27 -04:00
2024-04-15 14:31:48 +02:00
2024-05-22 11:31:10 +02:00
2024-05-14 00:35:06 -07:00
2024-05-14 00:31:43 -07:00
2024-05-15 17:02:08 -05:00
2024-05-21 10:09:28 -07:00
2024-04-11 17:34:41 +01:00
2024-04-13 11:33:58 +02:00
2024-05-13 18:19:09 -06:00
2024-05-13 18:35:02 -07:00
2024-05-21 11:14:55 -05:00
2024-05-06 09:07:17 -04:00
2024-05-20 11:09:20 -04:00
2024-03-09 09:14:50 -05:00
2024-05-08 08:41:29 -07:00
2024-03-12 12:34:11 -07:00
2024-05-07 13:47:15 +02:00
2024-03-11 11:43:44 -07:00
2024-05-03 07:26:38 +02:00
2024-05-01 23:18:48 +09:00
2024-05-03 07:49:13 -05:00
2024-03-19 11:57:26 -07:00
2024-04-12 15:07:52 +08:00
2024-05-19 22:29:43 -05:00
2024-03-22 16:25:31 -07:00
2024-03-06 13:04:17 -08:00
2024-04-25 20:56:14 -07:00
2024-04-25 20:56:35 -07:00
2024-05-05 17:53:49 -07:00
2024-05-05 17:53:50 -07:00
2024-04-25 20:56:04 -07:00
2024-04-25 20:56:44 -07:00
2024-05-19 09:21:03 -07:00
2024-03-26 11:07:20 -07:00
2024-04-25 12:37:12 -07:00
2024-05-02 17:48:09 -04:00
2024-05-21 10:09:28 -07:00
2024-04-10 17:52:42 +00:00
2024-05-16 18:14:14 -05:00
2024-04-11 17:06:06 +02:00
2024-04-25 20:55:59 -07:00
2024-04-14 22:26:32 +02:00
2024-04-25 20:56:14 -07:00
2024-05-05 17:53:42 -07:00
2024-05-13 18:35:02 -07:00
2024-03-28 19:21:33 -07:00
2024-03-13 12:53:53 -07:00
2024-03-13 12:53:53 -07:00
2024-04-15 15:46:56 +02:00
2024-05-17 12:22:46 +02:00
2024-04-08 16:05:14 +02:00
2024-04-03 16:51:37 +02:00
2024-04-17 13:14:30 +02:00
2024-05-22 11:53:02 -07:00
2024-04-27 11:17:48 -07:00
2024-03-25 19:50:09 +00:00
2024-04-25 20:55:59 -07:00
2024-03-28 10:09:02 +00:00
2024-04-30 18:57:07 +02:00
2024-03-26 19:34:12 +00:00
2024-04-03 14:45:03 -07:00
2024-04-09 15:11:49 +02:00
2024-04-15 19:43:48 +02:00
2024-05-07 10:31:42 +09:00
2024-04-25 20:55:57 -07:00
2024-04-02 18:03:32 -07:00
2024-05-13 18:09:56 -04:00
2024-05-05 17:53:45 -07:00
2024-03-08 12:05:10 +01:00
2024-04-03 09:59:38 +01:00
2024-04-08 16:39:16 +02:00
2024-04-08 16:39:16 +02:00
2024-05-19 09:21:03 -07:00
2024-04-19 15:17:37 +01:00
2024-04-25 20:56:13 -07:00
2024-04-09 17:14:57 -04:00
2024-05-02 16:28:15 +02:00
2024-04-09 15:28:03 +02:00
2024-05-13 18:35:02 -07:00
2024-04-09 10:53:44 +02:00
2024-04-16 15:39:51 -07:00
2024-04-25 20:55:59 -07:00
2024-05-03 16:05:53 -07:00
2024-05-19 09:21:03 -07:00
2024-05-19 09:21:03 -07:00
2024-05-19 09:21:03 -07:00
2024-03-07 20:21:39 +00:00
2024-03-11 19:37:56 -07:00
2024-05-13 18:19:19 -06:00
2024-04-25 20:55:59 -07:00
2024-04-15 11:29:48 +02:00
2024-04-05 11:21:31 -07:00
2024-03-26 09:01:18 +01:00
2024-05-04 18:57:21 +02:00
2024-05-13 18:33:10 -07:00
2024-05-19 09:21:03 -07:00
2024-05-21 08:34:51 -07:00
2024-04-16 15:39:50 -07:00
2024-05-07 13:29:28 +02:00
2024-05-23 19:40:26 -07:00
2024-05-17 17:31:24 -07:00
2024-04-11 16:02:25 +02:00
2024-04-08 11:49:02 +01:00
2024-04-03 13:58:20 +02:00
2024-04-03 09:19:31 +02:00
2024-04-08 16:01:50 +02:00
2024-05-06 17:39:09 +02:00
2024-04-19 07:52:45 +03:00
2024-03-11 19:53:15 -07:00
2024-04-01 10:36:34 +02:00
2024-04-01 10:36:34 +02:00
2024-04-01 10:36:35 +02:00
2024-04-22 16:13:06 +02:00
2024-05-09 22:30:52 +03:00
2024-03-27 07:52:34 -07:00
2024-05-01 23:18:48 +09:00
2024-03-06 13:27:00 -05:00
2024-05-04 04:25:37 -04:00
2024-03-18 10:33:06 -04:00
2024-05-04 18:45:11 +02:00
2024-05-06 12:05:00 +02:00
2024-04-05 22:31:37 -07:00
2024-05-15 12:34:46 -07:00
2024-03-07 21:52:59 +00:00
2024-04-07 02:42:36 -04:00
2024-05-04 18:23:03 +02:00
2024-03-19 02:45:51 -04:00
2024-03-11 13:08:52 -06:00
2024-04-26 13:26:53 +02:00
2024-04-25 20:55:57 -07:00
2024-04-25 20:56:04 -07:00
2024-04-17 13:37:23 +02:00
2024-03-12 12:47:35 +02:00
2024-05-19 16:12:38 -07:00
2024-04-22 10:08:04 -10:00
2024-05-05 17:53:51 -07:00
2024-05-19 09:21:03 -07:00
2024-04-25 20:55:48 -07:00
2024-04-25 20:55:47 -07:00