Greg,

Please apply.

Olav


When going to suspend, there's no point in setting HC state in
host controller driver as USB core takes care of this.

Signed-off-by: Olav Kongas <[EMAIL PROTECTED]>

diff -purN a/drivers/usb/host/isp116x-hcd.c b/drivers/usb/host/isp116x-hcd.c
--- a/drivers/usb/host/isp116x-hcd.c    2005-11-03 17:19:09.000000000 +0200
+++ b/drivers/usb/host/isp116x-hcd.c    2005-11-26 01:39:52.000000000 +0200
@@ -1424,7 +1424,6 @@ static int isp116x_bus_suspend(struct us
        val = isp116x_read_reg32(isp116x, HCCONTROL);
        switch (val & HCCONTROL_HCFS) {
        case HCCONTROL_USB_OPER:
-               hcd->state = HC_STATE_QUIESCING;
                val &= (~HCCONTROL_HCFS & ~HCCONTROL_RWE);
                val |= HCCONTROL_USB_SUSPEND;
                if (hcd->remote_wakeup)
@@ -1432,7 +1431,6 @@ static int isp116x_bus_suspend(struct us
                /* Wait for usb transfers to finish */
                mdelay(2);
                isp116x_write_reg32(isp116x, HCCONTROL, val);
-               hcd->state = HC_STATE_SUSPENDED;
                /* Wait for devices to suspend */
                mdelay(5);
        case HCCONTROL_USB_SUSPEND:


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to