Skip to contentSkip to conversation

usb: twl6030-usb: variable otg not declared in twl6030_usbotg_irq() in linux-next

PATCH In review Gerard Snitselaar 3 participants 4 messages Jul 10, 2012 – Jul 11, 2012 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: twl6030-usb: variable otg not declared in twl6030_usbotg_irq() in linux-next

commit ff9cce82 added back 2 lines that were removed by commit c83a8542 causing build of twl6030-usb to get an error due to otg being referenced, but not declared. This patch removes those 2 lines again to restore intent of commit c83a8542.

---
 drivers/usb/otg/twl6030-usb.c | 2 --
 1 file changed, 2 deletions(-)
drivers/usb/otg/twl6030-usb.c +0 -2
index a3d0c04..6907d8d 100644
@@ -302,8 +302,6 @@ static irqreturn_t twl6030_usbotg_irq(int irq, void *_twl)
 		twl6030_writeb(twl, TWL_MODULE_USB, 0x1, USB_ID_INT_EN_HI_CLR);
 		twl6030_writeb(twl, TWL_MODULE_USB, 0x10, USB_ID_INT_EN_HI_SET);
 		status = OMAP_MUSB_ID_GROUND;
-		otg->default_a = true;
-		twl->phy.state = OTG_STATE_A_IDLE;
 		twl->linkstat = status;
 		omap_musb_mailbox(status);
 	} else  {
Signature · 1 line
1.7.11.1.165.g299666c
maintainer
#1 lore raw
Quoted 15 lines · Gerard Snitselaar

commit ff9cce82 added back 2 lines that were removed by commit c83a8542 causing build of twl6030-usb to get an error due to otg being referenced, but not declared. This patch removes those 2 lines again to restore intent of commit c83a8542.

---
 drivers/usb/otg/twl6030-usb.c | 2 --
 1 file changed, 2 deletions(-)
drivers/usb/otg/twl6030-usb.c +0 -0
index a3d0c04..6907d8d 100644

drivers/usb/otg/twl6030-usb.c static irqreturn_t twl6030_usbotg_irq(int irq, void *_twl) · line 306

Quoted 5 lines
drivers/usb/otg/twl6030-usb.c +0 -2
@@ -302,8 +302,6 @@ static irqreturn_t twl6030_usbotg_irq(int irq, void *_twl)
 		twl6030_writeb(twl, TWL_MODULE_USB, 0x1, USB_ID_INT_EN_HI_CLR);
 		twl6030_writeb(twl, TWL_MODULE_USB, 0x10, USB_ID_INT_EN_HI_SET);
 		status = OMAP_MUSB_ID_GROUND;
-		otg->default_a = true;
-		twl->phy.state = OTG_STATE_A_IDLE;

Didn't I apply this same patch yesterday? Can you verify that this is still needed in the usb-next branch of my git tree?

confused,

greg k-h

#2 lore raw

Yes, ignore my patch. It was applied to usb-next already and I forgot to check there.

Jerry

Quoted 28 lines · Greg KH
Quoted 15 lines · Gerard Snitselaar

commit ff9cce82 added back 2 lines that were removed by commit c83a8542 causing build of twl6030-usb to get an error due to otg being referenced, but not declared. This patch removes those 2 lines again to restore intent of commit c83a8542.

---
 drivers/usb/otg/twl6030-usb.c | 2 --
 1 file changed, 2 deletions(-)
drivers/usb/otg/twl6030-usb.c +0 -0
index a3d0c04..6907d8d 100644

drivers/usb/otg/twl6030-usb.c static irqreturn_t twl6030_usbotg_irq(int irq, void *_twl) · line 306

Quoted 5 lines
drivers/usb/otg/twl6030-usb.c +0 -2
@@ -302,8 +302,6 @@ static irqreturn_t twl6030_usbotg_irq(int irq, void *_twl)
 		twl6030_writeb(twl, TWL_MODULE_USB, 0x1, USB_ID_INT_EN_HI_CLR);
 		twl6030_writeb(twl, TWL_MODULE_USB, 0x10, USB_ID_INT_EN_HI_SET);
 		status = OMAP_MUSB_ID_GROUND;
-		otg->default_a = true;
-		twl->phy.state = OTG_STATE_A_IDLE;

Didn't I apply this same patch yesterday? Can you verify that this is still needed in the usb-next branch of my git tree?

confused,

greg k-h

#3 lore raw
In reply to Gerard Snitselaar

Hello.

Quoted 2 lines · Gerard Snitselaar

commit ff9cce82 added back 2 lines that were removed by commit c83a8542

Please also specify the summaries of those 2 commits in parens.

Quoted 5 lines

causing build of twl6030-usb to get an error due to otg being referenced, but not declared. This patch removes those 2 lines again to restore intent of commit c83a8542.

WBR, Sergei