Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151330
b: refs/heads/master
c: f6d529f
h: refs/heads/master
v: v3
  • Loading branch information
David Brownell authored and Greg Kroah-Hartman committed Jun 16, 2009
1 parent fb30aff commit bc5f4c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1eba67a60d6c95f7eae94930ec369f2837bb5b12
refs/heads/master: f6d529f936672d341fab14ffb0d8eebeee2d8cd3
10 changes: 7 additions & 3 deletions trunk/drivers/usb/gadget/pxa27x_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include <linux/usb.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
#include <mach/pxa2xx-regs.h> /* FIXME: for PSSR */
#include <mach/udc.h>

#include "pxa27x_udc.h"
Expand Down Expand Up @@ -2479,6 +2478,12 @@ static void pxa_udc_shutdown(struct platform_device *_dev)
udc_disable(udc);
}

#ifdef CONFIG_CPU_PXA27x
extern void pxa27x_clear_otgph(void);
#else
#define pxa27x_clear_otgph() do {} while (0)
#endif

#ifdef CONFIG_PM
/**
* pxa_udc_suspend - Suspend udc device
Expand Down Expand Up @@ -2546,8 +2551,7 @@ static int pxa_udc_resume(struct platform_device *_dev)
* Software must configure the USB OTG pad, UDC, and UHC
* to the state they were in before entering sleep mode.
*/
if (cpu_is_pxa27x())
PSSR |= PSSR_OTGPH;
pxa27x_clear_otgph();

return 0;
}
Expand Down

0 comments on commit bc5f4c1

Please sign in to comment.