diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2012-07-11 11:21:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-16 16:50:14 -0700 |
commit | c0c53dbc32ea05a1e1dd9dba4772327da9a11750 (patch) | |
tree | c292857a1d2c6e1c4b16bb08649df71fd92178e2 /drivers/usb/host/ehci.h | |
parent | 2f5bb665ba7a14c5842fa2e1cde2be039843a2a2 (diff) | |
download | linux-c0c53dbc32ea05a1e1dd9dba4772327da9a11750.tar.gz linux-c0c53dbc32ea05a1e1dd9dba4772327da9a11750.tar.bz2 linux-c0c53dbc32ea05a1e1dd9dba4772327da9a11750.zip |
USB: EHCI: add new root-hub state: STOPPING
This patch (as1571) adds a new state for ehci-hcd's root hubs:
EHCI_RH_STOPPING. This value is used at times when the root hub is
being stopped and we don't know whether or not the hardware has
finished all its DMA yet.
Although the purpose may not be apparent, this distinction will come
in useful later on. Future patches will avoid actions that depend on
the root hub being operational (like turning on the async or periodic
schedules) when they see the state is EHCI_RH_STOPPING.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r-- | drivers/usb/host/ehci.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index 475f23e10bbf..9e8e82ecce58 100644 --- a/drivers/usb/host/ehci.h +++ b/drivers/usb/host/ehci.h @@ -62,10 +62,15 @@ struct ehci_stats { #define EHCI_MAX_ROOT_PORTS 15 /* see HCS_N_PORTS */ +/* + * ehci_rh_state values of EHCI_RH_RUNNING or above mean that the + * controller may be doing DMA. Lower values mean there's no DMA. + */ enum ehci_rh_state { EHCI_RH_HALTED, EHCI_RH_SUSPENDED, - EHCI_RH_RUNNING + EHCI_RH_RUNNING, + EHCI_RH_STOPPING }; struct ehci_hcd { /* one per controller */ |