[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-usb
Subject:    Re: [patch 2.6.28-final +gregkh-04-usb] build fixes
From:       Alan Stern <stern () rowland ! harvard ! edu>
Date:       2008-12-26 20:01:39
Message-ID: Pine.LNX.4.44L0.0812261450320.20131-100000 () netrider ! rowland ! org
[Download RAW message or body]

On Fri, 26 Dec 2008, David Brownell wrote:

> > > Do you just want to provide an update to that patch of
> > > yours (usb-enhance-usage-of-pm_message_t.patch) which
> > > seems to be the proximate cause of the build bugs?
> > 
> > We can handle this any way Greg deems best.  Since the fix-misspellings
> > patch is already in his tree, the easiest approach is to do nothing and
> > wait for it to be sent in along with everything else during the
> > upcoming merge window.
> 
> Did you verify that the fix-misspellings patch suffices for
> the OTG code paths?

It does not; the patch below is needed in addition.  (BTW, it's not 
entirely clear how to enable CONFIG_USB_OTG if you aren't actually 
building any device controller drivers.  Editing .config by hand 
doesn't work; the build process just turns it back off again.)

Greg, this patch should be combined with the 
usb-enhance-usage-of-pm_message_t patch, but it can be added on 
separately instead if you prefer.

Alan Stern


-------------------------------------------------------------


From: David Brownell <dbrownell@users.sourceforge.net>

Carry out the PM-routine interface change in the USB OTG pathway.  
This was omitted from the earlier interface-change patch by mistake.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>

---

Index: usb-2.6/drivers/usb/core/hub.c
===================================================================
--- usb-2.6.orig/drivers/usb/core/hub.c
+++ usb-2.6/drivers/usb/core/hub.c
@@ -1554,7 +1554,7 @@ static int usb_configure_device_otg(stru
 		 * (Includes HNP test device.)
 		 */
 		if (udev->bus->b_hnp_enable || udev->bus->is_b_host) {
-			err = usb_port_suspend(udev);
+			err = usb_port_suspend(udev, PMSG_SUSPEND);
 			if (err < 0)
 				dev_dbg(&udev->dev, "HNP fail, %d\n", err);
 		}

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic