Christophe JAILLET
de87b603b0
i2c: mediatek: Fix an error handling path in mtk_i2c_probe()
...
The clsk are prepared, enabled, then disabled. So if an error occurs after
the disable step, they are still prepared.
Add an error handling path to unprepare the clks in such a case, as already
done in the .remove function.
Fixes: 8b4fc246c3ff ("i2c: mediatek: Optimize master_xfer() and avoid circular locking")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Qii Wang <qii.wang@mediatek.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
2022-06-14 22:11:54 +02:00
..
2019-06-19 17:09:55 +02:00
2020-07-04 08:25:13 +02:00
2021-07-02 09:14:46 +02:00
2021-05-27 21:29:26 +02:00
2021-06-03 22:25:24 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2021-04-15 22:24:11 +02:00
2022-02-07 15:32:14 +01:00
2021-11-07 14:57:41 +01:00
2021-02-01 23:01:50 +01:00
2021-12-16 22:27:16 +01:00
2021-08-11 15:54:01 +02:00
2022-05-14 15:41:16 +02:00
2019-03-24 22:41:51 +01:00
2020-11-03 21:34:40 +01:00
2019-05-30 11:26:37 -07:00
2020-04-18 23:42:14 +02:00
2022-02-23 14:14:15 +01:00
2021-08-10 22:40:55 +02:00
2021-09-29 23:05:05 +02:00
2022-02-18 10:37:33 +01:00
2022-05-14 15:58:56 +02:00
2021-11-29 09:52:10 +01:00
2022-02-15 10:04:53 +01:00
2022-02-15 10:04:53 +01:00
2022-03-26 12:46:08 -07:00
2021-06-20 23:13:34 +02:00
2020-09-27 15:14:16 +02:00
2022-03-11 21:54:21 +01:00
2022-05-04 22:40:35 +02:00
2022-05-04 21:54:11 +02:00
2022-02-11 15:38:23 +01:00
2022-06-13 16:50:27 +02:00
2022-03-01 16:31:39 +01:00
2022-03-01 16:31:39 +01:00
2022-03-01 16:31:39 +01:00
2022-06-13 16:50:27 +02:00
2020-11-06 16:02:00 +01:00
2021-02-12 08:21:57 +01:00
2020-03-24 22:36:59 +01:00
2019-06-05 17:37:10 +02:00
2021-05-27 21:33:10 +02:00
2021-02-22 09:02:24 -08:00
2021-04-14 10:20:00 +02:00
2021-12-16 22:21:27 +01:00
2020-07-24 21:31:33 +02:00
2021-01-05 17:30:45 +01:00
2021-08-03 22:48:39 +02:00
2021-04-10 21:54:05 +02:00
2021-08-19 19:18:24 +02:00
2019-05-30 11:26:37 -07:00
2022-03-11 21:33:08 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-05-25 21:21:32 +02:00
2021-04-14 09:49:06 +02:00
2021-04-14 09:49:09 +02:00
2022-04-15 23:13:52 +02:00
2021-08-19 19:18:17 +02:00
2019-07-15 21:10:39 -07:00
2019-05-30 11:26:41 -07:00
2022-06-02 08:40:56 -07:00
2021-04-30 13:01:02 -07:00
2021-09-29 23:07:02 +02:00
2020-04-18 23:42:14 +02:00
2022-05-21 13:33:25 +02:00
2021-04-14 10:20:45 +02:00
2021-10-11 12:32:00 +02:00
2022-01-14 16:19:38 +01:00
2022-06-14 22:11:54 +02:00
2022-05-31 14:34:00 -07:00
2021-04-15 22:13:19 +02:00
2021-08-11 15:16:01 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2021-05-27 21:27:48 +02:00
2022-06-08 22:15:37 +02:00
2022-02-15 10:05:02 +01:00
2021-05-27 21:33:41 +02:00
2021-01-17 12:26:55 +01:00
2018-03-02 11:11:15 +01:00
2020-04-15 12:09:09 +02:00
2021-04-14 09:49:17 +02:00
2020-08-23 17:36:59 -05:00
2020-12-09 21:23:21 +01:00
2021-08-10 23:07:37 +02:00
2022-04-15 23:12:02 +02:00
2021-10-11 11:45:56 +02:00
2022-02-15 10:28:34 +01:00
2021-10-11 11:45:48 +02:00
2021-01-26 07:42:27 +01:00
2020-12-02 21:29:31 +01:00
2022-02-11 15:38:23 +01:00
2021-05-27 21:34:08 +02:00
2022-05-04 22:32:45 +02:00
2019-06-19 17:09:10 +02:00
2021-10-02 09:32:06 +02:00
2022-02-23 14:14:15 +01:00
2022-05-31 14:34:00 -07:00
2021-10-29 21:57:33 +02:00
2022-05-21 12:55:32 +02:00
2022-03-01 16:05:01 +01:00
2022-01-14 16:19:38 +01:00
2021-06-24 22:08:00 +02:00
2021-08-19 19:18:24 +02:00
2021-03-18 12:11:45 +01:00
2021-04-17 22:00:58 +02:00
2022-01-11 21:11:24 +01:00
2020-07-04 08:25:13 +02:00
2019-06-19 17:09:07 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2021-04-14 09:49:20 +02:00
2021-05-27 21:39:35 +02:00
2020-09-21 11:45:43 +02:00
2019-08-14 14:56:54 +02:00
2021-05-27 21:39:57 +02:00
2022-01-14 16:19:38 +01:00
2021-08-17 21:37:40 +02:00
2021-08-17 21:41:32 +02:00
2020-01-15 20:39:41 +01:00
2021-06-03 22:31:42 +02:00
2022-03-01 20:34:00 +01:00
2022-05-21 13:41:28 +02:00
2020-01-06 15:40:43 +01:00
2020-04-18 23:42:14 +02:00
2020-04-18 23:42:14 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:37 -07:00
2020-07-23 22:04:08 +02:00
2019-05-30 11:26:32 -07:00
2022-01-14 18:50:52 -05:00
2020-03-24 22:36:59 +01:00
2021-11-06 22:09:37 +01:00
2022-05-21 08:18:20 +02:00
2021-11-23 10:00:12 +01:00
2022-02-23 14:14:15 +01:00
2022-02-15 10:04:53 +01:00
2020-07-23 22:04:08 +02:00