patch usb-isp1760-assign-resource-fields-before-adding-hcd.patch added to gregkh-2.6 tree

gregkh at suse.de gregkh at suse.de
Sat Jun 7 08:52:15 EST 2008


This is a note to let you know that I've just added the patch titled

     Subject: USB: isp1760: Assign resource fields before adding hcd

to my gregkh-2.6 tree.  Its filename is

     usb-isp1760-assign-resource-fields-before-adding-hcd.patch

This tree can be found at 
    http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/


>From ncase at xes-inc.com  Fri Jun  6 15:07:08 2008
From: Nate Case <ncase at xes-inc.com>
Date: Wed, 21 May 2008 16:28:20 -0500
Subject: USB: isp1760: Assign resource fields before adding hcd
To: Sebastian Siewior <bigeasy at linutronix.de>
Cc: Greg Kroah-Hartman <gregkh at suse.de>, linux-usb at vger.kernel.org, linuxppc-dev <linuxppc-dev at ozlabs.org>
Message-ID: <1211405300.13845.627.camel at localhost.localdomain>


This fixes the bogus "io mem 0x00000000" message printed
during driver init due to hcd->rsrc_start being assigned after
the call to usb_add_hcd().

Signed-off-by: Nate Case <ncase at xes-inc.com>
Acked-by: Sebastian Siewior <bigeasy at linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>

---
 drivers/usb/host/isp1760-hcd.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- a/drivers/usb/host/isp1760-hcd.c
+++ b/drivers/usb/host/isp1760-hcd.c
@@ -2207,14 +2207,14 @@ struct usb_hcd *isp1760_register(u64 res
 		goto err_put;
 	}
 
-	ret = usb_add_hcd(hcd, irq, irqflags);
-	if (ret)
-		goto err_unmap;
-
 	hcd->irq = irq;
 	hcd->rsrc_start = res_start;
 	hcd->rsrc_len = res_len;
 
+	ret = usb_add_hcd(hcd, irq, irqflags);
+	if (ret)
+		goto err_unmap;
+
 	return hcd;
 
 err_unmap:


Patches currently in gregkh-2.6 which might be from ncase at xes-inc.com are

usb.current/usb-isp1760-assign-resource-fields-before-adding-hcd.patch



More information about the Linuxppc-dev mailing list