mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
macintosh/via-macii: Synchronous bus reset
Make the reset operation synchronous, like the other ADB drivers. The reset request is static data but callers may not know that. This way the struct is not in use when the reset method returns. Tested-by: Stan Johnson <[email protected]> Signed-off-by: Finn Thain <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
This commit is contained in:
parent
2341629ead
commit
b52dce8738
1 changed files with 2 additions and 1 deletions
|
|
@ -331,7 +331,8 @@ static int macii_reset_bus(void)
|
|||
return 0;
|
||||
|
||||
/* Command = 0, Address = ignored */
|
||||
adb_request(&req, NULL, 0, 1, ADB_BUSRESET);
|
||||
adb_request(&req, NULL, ADBREQ_NOSEND, 1, ADB_BUSRESET);
|
||||
macii_send_request(&req, 1);
|
||||
|
||||
/* Don't want any more requests during the Global Reset low time. */
|
||||
udelay(3000);
|
||||
|
|
|
|||
Loading…
Reference in a new issue