-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hw-mgmt: patches; Add WA patch for kernel v6.1
Add WA patch to avoid errors for read block command. Fix to be removed after CPLD fix for read block. Reviewed-by: Felix Radensky <[email protected]> Signed-off-by: Vadim Pasternak <[email protected]>
- Loading branch information
1 parent
b65c320
commit 8497385
Showing
2 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...es-kernel/linux/linux-6.1/0085-i2c-mlxcpld-Downstream-WA-to-avoid-error-for-SMBUS-r.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From 63d8c9838b10472bd5e3c6e5a41596d6d44dd1c8 Mon Sep 17 00:00:00 2001 | ||
From: Vadim Pasternak <[email protected]> | ||
Date: Thu, 10 Aug 2023 12:03:31 +0000 | ||
Subject: [PATCH backport 6.1.42 1/1] i2c: mlxcpld: Downstream WA to avoid | ||
error for SMBUS read block command | ||
|
||
Due to hardware bug in I2C controller skip handling SMBUS_READ_BLOCK | ||
command. | ||
Remove this patch after bug in I2C controller is fixed. | ||
|
||
Signed-off-by: Vadim Pasternak <[email protected]> | ||
--- | ||
drivers/i2c/busses/i2c-mlxcpld.c | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/drivers/i2c/busses/i2c-mlxcpld.c b/drivers/i2c/busses/i2c-mlxcpld.c | ||
index 2ce2c324ea4f..fd9def469132 100644 | ||
--- a/drivers/i2c/busses/i2c-mlxcpld.c | ||
+++ b/drivers/i2c/busses/i2c-mlxcpld.c | ||
@@ -398,6 +398,7 @@ static int mlxcpld_i2c_wait_for_tc(struct mlxcpld_i2c_priv *priv) | ||
mlxcpld_i2c_read_comm(priv, MLXCPLD_LPCI2C_NUM_ADDR_REG, &val, | ||
1); | ||
if (priv->smbus_block && (val & MLXCPLD_I2C_SMBUS_BLK_BIT)) { | ||
+ return 0; | ||
mlxcpld_i2c_read_comm(priv, MLXCPLD_LPCI2C_NUM_DAT_REG, | ||
&datalen, 1); | ||
if (unlikely(datalen > I2C_SMBUS_BLOCK_MAX)) { | ||
-- | ||
2.20.1 | ||
|