diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-09 12:09:47 -0800 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-09 12:09:47 -0800 | 
| commit | 55b81e6f2795484ea8edf5805c95c007cacfa736 (patch) | |
| tree | c3724975107857fcc03b5dd649c462e4f72397be /drivers/usb/host/ohci.h | |
| parent | 5983faf942f260023e547f3c5f38c1033c35cc9b (diff) | |
| parent | 08e87d0d773dc9ca5faf4c3306e238ed0ea129b0 (diff) | |
| download | olio-linux-3.10-55b81e6f2795484ea8edf5805c95c007cacfa736.tar.xz olio-linux-3.10-55b81e6f2795484ea8edf5805c95c007cacfa736.zip  | |
Merge branch 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
* 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (232 commits)
  USB: Add USB-ID for Multiplex RC serial adapter to cp210x.c
  xhci: Clean up 32-bit build warnings.
  USB: update documentation for usbmon
  usb: usb-storage doesn't support dynamic id currently, the patch disables the feature to fix an oops
  drivers/usb/class/cdc-acm.c: clear dangling pointer
  drivers/usb/dwc3/dwc3-pci.c: introduce missing kfree
  drivers/usb/host/isp1760-if.c: introduce missing kfree
  usb: option: add ZD Incorporated HSPA modem
  usb: ch9: fix up MaxStreams helper
  USB: usb-skeleton.c: cleanup open_count
  USB: usb-skeleton.c: fix open/disconnect race
  xhci: Properly handle COMP_2ND_BW_ERR
  USB: remove dead code from suspend/resume path
  USB: add quirk for another camera
  drivers: usb: wusbcore: Fix dependency for USB_WUSB
  xhci: Better debugging for critical host errors.
  xhci: Be less verbose during URB cancellation.
  xhci: Remove debugging about ring structure allocation.
  xhci: Remove debugging about toggling cycle bits.
  xhci: Remove debugging for individual transfers.
  ...
Diffstat (limited to 'drivers/usb/host/ohci.h')
| -rw-r--r-- | drivers/usb/host/ohci.h | 14 | 
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/usb/host/ohci.h b/drivers/usb/host/ohci.h index 0795b934d00..8ff6f7ea96f 100644 --- a/drivers/usb/host/ohci.h +++ b/drivers/usb/host/ohci.h @@ -344,6 +344,12 @@ typedef struct urb_priv {   * a subset of what the full implementation needs. (Linus)   */ +enum ohci_rh_state { +	OHCI_RH_HALTED, +	OHCI_RH_SUSPENDED, +	OHCI_RH_RUNNING +}; +  struct ohci_hcd {  	spinlock_t		lock; @@ -384,6 +390,7 @@ struct ohci_hcd {  	/*  	 * driver state  	 */ +	enum ohci_rh_state	rh_state;  	int			num_ports;  	int			load [NUM_INTS];  	u32			hc_control;	/* copy of hc control reg */ @@ -679,11 +686,6 @@ static inline u16 ohci_hwPSW(const struct ohci_hcd *ohci,  /*-------------------------------------------------------------------------*/ -static inline void disable (struct ohci_hcd *ohci) -{ -	ohci_to_hcd(ohci)->state = HC_STATE_HALT; -} -  #define	FI			0x2edf		/* 12000 bits per frame (-1) */  #define	FSMP(fi)		(0x7fff & ((6 * ((fi) - 210)) / 7))  #define	FIT			(1 << 31) @@ -707,7 +709,7 @@ static inline void periodic_reinit (struct ohci_hcd *ohci)  #define read_roothub(hc, register, mask) ({ \  	u32 temp = ohci_readl (hc, &hc->regs->roothub.register); \  	if (temp == -1) \ -		disable (hc); \ +		hc->rh_state = OHCI_RH_HALTED; \  	else if (hc->flags & OHCI_QUIRK_AMD756) \  		while (temp & mask) \  			temp = ohci_readl (hc, &hc->regs->roothub.register); \  |