Eddie James 7b4ab4abce iio: pressure: dps310: Reset chip after timeout
The DPS310 chip has been observed to get "stuck" such that pressure
and temperature measurements are never indicated as "ready" in the
MEAS_CFG register. The only solution is to reset the device and try
again. In order to avoid continual failures, use a boolean flag to
only try the reset after timeout once if errors persist.

Fixes: ba6ec48e76bc ("iio: Add driver for Infineon DPS310")
Cc: <stable@vger.kernel.org>
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220915195719.136812-3-eajames@linux.ibm.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-09-21 18:42:55 +01:00
..
2022-09-03 13:23:11 -07:00
2022-08-04 12:12:54 -07:00
2022-09-21 15:43:35 +02:00
2022-07-17 17:14:30 -07:00
2022-08-04 19:30:35 -07:00
2022-08-06 16:38:17 -07:00
2022-08-31 09:54:14 -07:00
2022-09-03 13:09:46 -07:00
2022-09-21 16:16:03 +02:00
2022-08-18 17:37:22 +02:00
2022-08-26 11:05:54 -07:00
2022-08-04 19:41:09 -07:00
2022-08-06 10:25:16 -07:00
2022-09-02 15:03:12 -07:00
2022-08-05 14:13:45 -07:00
2022-09-02 10:55:23 -07:00
2022-08-12 09:50:34 -07:00
2022-09-02 16:44:30 -07:00
2022-08-04 12:12:54 -07:00
2022-08-03 17:49:38 +02:00
2022-09-02 10:32:30 -07:00
2022-08-04 19:30:35 -07:00
2022-09-02 10:35:51 -07:00
2022-08-04 12:12:54 -07:00
2022-08-04 12:12:54 -07:00
2022-08-16 11:36:38 -07:00
2022-08-05 10:02:33 -07:00
2022-08-09 00:56:41 +02:00
2022-08-20 11:29:01 -07:00
2022-08-16 11:40:15 -07:00
2022-08-13 13:41:48 -07:00
2022-08-12 09:50:34 -07:00
2022-08-08 15:04:04 -07:00
2022-09-03 13:23:11 -07:00