Skip to contentSkip to conversation

pxa/vpac270: PXAUDC init fix

PATCH New Marek Vasut 2 participants 2 messages May 2, 2010 – May 4, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pxa/vpac270: PXAUDC init fix

This patch removes write to UP2OCR[DMSTATE] (ex-UP2OCR_DPPUBE) which is invalid on PXA270C5 and later.

---
 arch/arm/mach-pxa/vpac270.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-pxa/vpac270.c +2 -2
index 8da22d4..9884fa9 100644
@@ -359,9 +359,9 @@ static struct platform_device vpac270_gpio_vbus = {
 static void vpac270_udc_command(int cmd)
 {
 	if (cmd == PXA2XX_UDC_CMD_CONNECT)
-		UP2OCR |= UP2OCR_HXOE | UP2OCR_DPPUE | UP2OCR_DPPUBE;
+		UP2OCR = UP2OCR_HXOE | UP2OCR_DPPUE;
 	else if (cmd == PXA2XX_UDC_CMD_DISCONNECT)
-		UP2OCR &= ~(UP2OCR_HXOE | UP2OCR_DPPUE | UP2OCR_DPPUBE);
+		UP2OCR = UP2OCR_HXOE;
 }
 
 static struct pxa2xx_udc_mach_info vpac270_udc_info __initdata = {
Signature · 1 line
1.7.0
Applied
#1 lore raw

PATCH 1/1 pxa/vpac270: PXAUDC init fix

Quoted 4 lines · Marek Vasut

This patch removes write to UP2OCR[DMSTATE] (ex-UP2OCR_DPPUBE) which is invalid on PXA270C5 and later.

Applied.

Quoted 24 lines

---
?arch/arm/mach-pxa/vpac270.c | ? ?4 ++--
?1 files changed, 2 insertions(+), 2 deletions(-)

arch/arm/mach-pxa/vpac270.c +2 -3
index 8da22d4..9884fa9 100644
@@ -359,9 +359,9 @@ static struct platform_device vpac270_gpio_vbus = {
 ?static void vpac270_udc_command(int cmd)
 ?{
 ? ? ? ?if (cmd == PXA2XX_UDC_CMD_CONNECT)
- ? ? ? ? ? ? ? UP2OCR |= UP2OCR_HXOE | UP2OCR_DPPUE | UP2OCR_DPPUBE;
+ ? ? ? ? ? ? ? UP2OCR = UP2OCR_HXOE | UP2OCR_DPPUE;
 ? ? ? ?else if (cmd == PXA2XX_UDC_CMD_DISCONNECT)
- ? ? ? ? ? ? ? UP2OCR &= ~(UP2OCR_HXOE | UP2OCR_DPPUE | UP2OCR_DPPUBE);
+ ? ? ? ? ? ? ? UP2OCR = UP2OCR_HXOE;
 ?}
 
 ?static struct pxa2xx_udc_mach_info vpac270_udc_info __initdata = {
--

1.7.0