Files
linux/drivers/tty/serial
Hugo Villeneuve b35f8dbbce serial: max310x: prevent infinite while() loop in port startup
If there is a problem after resetting a port, the do/while() loop that
checks the default value of DIVLSB register may run forever and spam the
I2C bus.

Add a delay before each read of DIVLSB, and a maximum number of tries to
prevent that situation from happening.

Also fail probe if port reset is unsuccessful.

Fixes: 10d8b34a42 ("serial: max310x: Driver rework")
Cc: [email protected]
Signed-off-by: Hugo Villeneuve <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2024-01-27 19:09:10 -08:00
..
2023-09-18 11:18:08 +02:00
…
2023-09-18 11:18:11 +02:00
…
2023-09-18 11:18:11 +02:00
…
2023-09-18 11:18:13 +02:00
2023-09-18 11:18:13 +02:00
…
…
2023-07-25 19:21:04 +02:00
…