Skip to content

Commit

Permalink
USB: ohci-pxa27x: Reconfigure power settings on resume
Browse files Browse the repository at this point in the history
On resume, the power-related bits in UHCRHDA were not being set, so
they would default to the reset state.  For PXA3xx devices, OCPM must
be cleared, but it was remaining set from resume reset.

Signed-off-by: Aric D. Blumer <aric@sdgsystems.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
  • Loading branch information
Aric D. Blumer authored and Eric Miao committed Sep 10, 2009
1 parent 85c6102 commit a75d048
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/usb/host/ohci-pxa27x.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ static int ohci_hcd_pxa27x_drv_resume(struct device *dev)
{
struct usb_hcd *hcd = dev_get_drvdata(dev);
struct pxa27x_ohci *ohci = to_pxa27x_ohci(hcd);
struct pxaohci_platform_data *inf = dev->platform_data;
int status;

if (time_before(jiffies, ohci->ohci.next_statechange))
Expand All @@ -506,6 +507,9 @@ static int ohci_hcd_pxa27x_drv_resume(struct device *dev)
if ((status = pxa27x_start_hc(ohci, dev)) < 0)
return status;

/* Select Power Management Mode */
pxa27x_ohci_select_pmm(ohci, inf->port_mode);

ohci_finish_controller_resume(hcd);
return 0;
}
Expand Down

0 comments on commit a75d048

Please sign in to comment.