Skip to contentSkip to conversation

usb: at91_udc: fix typo on vubs pullup valid check

PATCH Superseded Jean-Christophe PLAGNIOL-VILLARD 2 participants 2 messages Nov 5, 2012

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: at91_udc: fix typo on vubs pullup valid check

if the gpio is not valid complain

since 3285e0ec088febc5a88f57ddd78385a7da71476c
ARM: at91/udc: use gpio_is_valid to check the gpio

Cc linux-usb at vger.kernel.org
Cc Greg Kroah-Hartman <[email protected]>
Cc Nicolas Ferre <[email protected]>

---
Hi Greg,

this is broken since 3.2 can we have on the stable too

Best Regards,
J.

 drivers/usb/gadget/at91_udc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/at91_udc.c +1 -1
index 89d90b5..888cb2a 100644
@@ -1739,7 +1739,7 @@ static int __devinit at91udc_probe(struct platform_device *pdev)
 
 	/* rm9200 needs manual D+ pullup; off by default */
 	if (cpu_is_at91rm9200()) {
-		if (gpio_is_valid(udc->board.pullup_pin)) {
+		if (!gpio_is_valid(udc->board.pullup_pin)) {
 			DBG("no D+ pullup?\n");
 			retval = -ENODEV;
 			goto fail0;
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 usb: at91_udc: fix typo on vubs pullup valid check

Quoted 5 lines · Jean-Christophe PLAGNIOL-VILLARD

if the gpio is not valid complain

since 3285e0ec088febc5a88f57ddd78385a7da71476c
ARM: at91/udc: use gpio_is_valid to check the gpio

Quoted 8 lines
Cc linux-usb at vger.kernel.org
Cc Greg Kroah-Hartman <[email protected]>
Cc Nicolas Ferre <[email protected]>

---
Hi Greg,

this is broken since 3.2 can we have on the stable too

Sure, but you should be sending gadget patches to Felipe, not me, as he's in charge of that tree. So I suggest you resend this, cc: Felipe and add the proper stable tree marking to the Cc: area of the
signed-off-by: part of the patch, like the file Documentation/stable_kernel_rules.txt describes to do. That way it will be picked up automatically for the stable releases when it gets in to Linus's tree.

thanks,

greg k-h