linux/drivers/net/mctp
Jeremy Kerr 338a93cf4a net: mctp-i2c: invalidate flows immediately on TX errors
If we encounter an error on i2c packet transmit, we won't have a valid
flow anymore; since we didn't transmit a valid packet sequence, we'll
have to wait for the key to timeout instead of dropping it on the reply.

This causes the i2c lock to be held for longer than necessary.

Instead, invalidate the flow on TX error, and release the i2c lock
immediately.

Cc: Bonnie Lo <Bonnie_Lo@wiwynn.com>
Tested-by: Jerry C Chen <Jerry_C_Chen@wiwynn.com>
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-07-12 13:37:31 +01:00
..
Kconfig mctp i3c: MCTP I3C driver 2023-10-17 12:45:03 +02:00
Makefile mctp i3c: MCTP I3C driver 2023-10-17 12:45:03 +02:00
mctp-i2c.c net: mctp-i2c: invalidate flows immediately on TX errors 2024-07-12 13:37:31 +01:00
mctp-i3c.c mctp i3c: MCTP I3C driver 2023-10-17 12:45:03 +02:00
mctp-serial.c tty: use u8 for flags 2023-08-11 21:12:45 +02:00