Call wakeup() with the lock held to avoid missed wakeup races.
Submitted by: luiz Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
5dedd2517d
commit
35547df5c7
@ -2078,8 +2078,8 @@ sdhci_generic_release_host(device_t brdev __unused, device_t reqdev)
|
||||
/* Deactivate led. */
|
||||
WR1(slot, SDHCI_HOST_CONTROL, slot->hostctrl &= ~SDHCI_CTRL_LED);
|
||||
slot->bus_busy--;
|
||||
SDHCI_UNLOCK(slot);
|
||||
wakeup(slot);
|
||||
SDHCI_UNLOCK(slot);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user