Mark Cave-Ayland 2006904938 mac_via: workaround NetBSD ADB bus enumeration issue
NetBSD assumes it can send its first ADB command after sending the ADB_BUSRESET
command in ADB_STATE_NEW without changing the state back to ADB_STATE_IDLE
first as detailed in the ADB protocol.

Add a workaround to detect this condition at the start of ADB enumeration
and send the next command written to SR after a ADB_BUSRESET onto the bus
regardless, even if we don't detect a state transition to ADB_STATE_NEW.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-ID: <20231004083806.757242-16-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2023-10-06 10:33:43 +02:00
..
2023-07-25 17:13:53 +03:00
2023-10-06 10:33:43 +02:00
2023-03-07 12:38:40 +01:00
2023-07-25 17:13:53 +03:00
2023-03-02 13:57:50 +01:00
2023-09-21 11:31:16 +03:00
2023-08-31 09:45:17 +01:00
2023-10-06 10:33:43 +02:00
2023-10-06 10:33:43 +02:00
2023-04-20 11:17:35 +02:00
2023-10-06 10:33:43 +02:00
2021-03-12 12:48:56 +00:00
2023-09-21 11:31:16 +03:00
2020-12-08 13:48:57 -05:00
2021-02-08 15:15:32 +01:00
2021-11-09 10:11:27 +01:00
2023-09-21 11:31:16 +03:00