Skip to content

Commit be18ce1

Browse files
dabros-janwsakernel
authored andcommitted
i2c: designware: Modify timing parameters for amdpsp mailbox
Adjust retry period and timeout values for x86-PSP mailbox based on the typical I2C traffic generated by PSP. In order to limit the possibility of timeouts, x86 should reduce the interval between retries as well as increase overall time after which it gives up. Signed-off-by: Jan Dabros <jsd@semihalf.com> Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
1 parent 1621fe0 commit be18ce1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/i2c/busses/i2c-designware-amdpsp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
#define PSP_CMD_TIMEOUT_US (500 * USEC_PER_MSEC)
1717

1818
#define PSP_I2C_REQ_BUS_CMD 0x64
19-
#define PSP_I2C_REQ_RETRY_CNT 10
20-
#define PSP_I2C_REQ_RETRY_DELAY_US (50 * USEC_PER_MSEC)
19+
#define PSP_I2C_REQ_RETRY_CNT 400
20+
#define PSP_I2C_REQ_RETRY_DELAY_US (25 * USEC_PER_MSEC)
2121
#define PSP_I2C_REQ_STS_OK 0x0
2222
#define PSP_I2C_REQ_STS_BUS_BUSY 0x1
2323
#define PSP_I2C_REQ_STS_INV_PARAM 0x3

0 commit comments

Comments
 (0)