Asmaa Mnebhi
0fa11239c4
i2c: mlxbf: Fix frequency calculation
...
[ Upstream commit 37f071ec327b04c83d47637c5e5c2199b39899ca ]
The i2c-mlxbf.c driver is currently broken because there is a bug
in the calculation of the frequency. core_f, core_r and core_od
are components read from hardware registers and are used to
compute the frequency used to compute different timing parameters.
The shifting mechanism used to get core_f, core_r and core_od is
wrong. Use FIELD_GET to mask and shift the bitfields properly.
Fixes: b5b5b32081cd206b (i2c: mlxbf: I2C SMBus driver for Mellanox BlueField SoC)
Reviewed-by: Khalil Blaiech <kblaiech@nvidia.com>
Signed-off-by: Asmaa Mnebhi <asmaa@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-09-28 11:10:40 +02:00
..
2019-06-19 17:09:55 +02:00
2020-07-04 08:25:13 +02:00
2020-07-04 08:25:13 +02:00
2019-06-05 17:37:16 +02:00
2020-05-20 15:28:03 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2020-07-23 22:04:08 +02:00
2020-04-30 16:11:41 +02:00
2020-09-21 11:45:43 +02:00
2019-03-25 15:21:17 +01:00
2020-09-14 08:55:44 +02:00
2020-05-05 16:37:21 +02:00
2022-06-09 10:21:19 +02:00
2019-03-24 22:41:51 +01:00
2020-08-05 11:52:27 +02:00
2019-05-30 11:26:37 -07:00
2020-04-18 23:42:14 +02:00
2022-03-08 19:09:29 +01:00
2021-03-04 11:37:53 +01:00
2020-04-18 23:42:14 +02:00
2022-02-23 12:01:08 +01:00
2022-08-21 15:15:49 +02:00
2021-12-08 09:03:23 +01:00
2020-04-18 23:42:14 +02:00
2020-09-27 15:14:16 +02:00
2020-01-31 09:01:25 +01:00
2020-04-15 12:09:09 +02:00
2020-03-21 19:53:08 +01:00
2022-06-22 14:13:18 +02:00
2020-06-23 21:24:33 +02:00
2021-04-14 08:42:11 +02:00
2022-01-27 10:54:23 +01:00
2022-06-22 14:13:18 +02:00
2020-11-06 16:02:00 +01:00
2020-07-23 22:04:08 +02:00
2020-03-24 22:36:59 +01:00
2019-06-05 17:37:10 +02:00
2020-09-29 21:37:46 +02:00
2020-08-10 15:47:38 +02:00
2019-05-30 11:26:37 -07:00
2021-05-14 09:50:37 +02:00
2021-03-04 11:38:20 +01:00
2020-07-24 21:31:33 +02:00
2020-03-10 12:31:55 +01:00
2021-09-15 09:50:36 +02:00
2021-09-15 09:50:42 +02:00
2019-05-30 11:26:37 -07:00
2022-01-27 10:54:21 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2020-06-07 20:45:24 +02:00
2021-05-14 09:50:36 +02:00
2021-05-14 09:50:36 +02:00
2022-09-28 11:10:40 +02:00
2021-09-15 09:50:42 +02:00
2019-07-15 21:10:39 -07:00
2019-05-30 11:26:41 -07:00
2022-06-06 08:42:40 +02:00
2021-05-14 09:50:37 +02:00
2019-06-05 17:36:38 +02:00
2020-04-18 23:42:14 +02:00
2022-04-08 14:40:22 +02:00
2022-09-28 11:10:40 +02:00
2020-07-04 08:20:38 +02:00
2022-01-27 10:54:21 +01:00
2021-11-18 14:04:22 +01:00
2022-05-25 09:18:01 +02:00
2020-09-29 21:40:03 +02:00
2020-09-18 23:11:44 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2022-04-08 14:40:02 +02:00
2022-08-21 15:15:39 +02:00
2020-09-21 12:05:40 +02:00
2020-01-15 20:39:26 +01:00
2021-01-27 11:55:09 +01:00
2020-04-15 12:09:09 +02:00
2021-05-14 09:50:37 +02:00
2020-08-23 17:36:59 -05:00
2020-10-21 10:54:05 -07:00
2020-03-10 12:19:52 +01:00
2022-04-20 09:23:30 +02:00
2019-05-30 11:26:37 -07:00
2020-04-15 12:12:52 +02:00
2020-07-04 08:25:13 +02:00
2020-02-07 12:54:13 -08:00
2020-07-04 08:25:13 +02:00
2020-04-30 16:18:30 +02:00
2019-06-19 17:09:10 +02:00
2020-06-03 22:37:37 +02:00
2022-02-23 12:01:07 +01:00
2021-06-10 13:39:29 +02:00
2020-12-02 16:42:09 +01:00
2022-06-09 10:21:20 +02:00
2020-03-24 22:36:59 +01:00
2021-12-17 10:14:40 +01:00
2021-06-30 08:47:25 -04:00
2021-09-15 09:50:42 +02:00
2019-06-05 17:37:10 +02:00
2021-05-14 09:50:39 +02:00
2021-06-03 09:00:39 +02:00
2020-07-04 08:25:13 +02:00
2019-06-19 17:09:07 +02:00
2020-07-04 08:25:13 +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-05-14 09:50:37 +02:00
2020-04-02 15:54:13 -07:00
2020-09-21 11:45:43 +02:00
2019-08-14 14:56:54 +02:00
2020-09-21 11:45:43 +02:00
2021-12-08 09:03:23 +01:00
2020-04-15 12:09:09 +02:00
2020-04-18 23:42:14 +02:00
2021-09-15 09:50:41 +02:00
2020-01-15 20:39:41 +01:00
2021-01-27 11:54:50 +01:00
2021-02-07 15:37:15 +01:00
2022-06-06 08:42:40 +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
2020-03-24 22:36:59 +01:00
2019-05-21 11:28:45 +02:00
2022-04-08 14:40:19 +02:00
2021-09-15 09:50:44 +02:00
2021-11-18 14:04:25 +01:00
2020-04-15 12:09:09 +02:00
2022-03-08 19:09:30 +01:00
2020-09-27 19:58:38 +02:00
2020-07-23 22:04:08 +02:00