diff options
author | Asmaa Mnebhi <asmaa@nvidia.com> | 2022-09-20 20:47:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-09-28 12:10:40 +0300 |
commit | 0fa11239c4d332e9b1db5b23e297bf19419bb7cc (patch) | |
tree | 0f04488a6d21357406a3f2b986d536eba90b1173 /fs/configfs/mount.c | |
parent | 48ee0a864d1af02eea98fc825cc230d61517a71e (diff) | |
download | linux-0fa11239c4d332e9b1db5b23e297bf19419bb7cc.tar.xz |
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>
Diffstat (limited to 'fs/configfs/mount.c')
0 files changed, 0 insertions, 0 deletions