On 15 Oct 2010, stern@xxxxxxxxxxxxxxxxxxx wrote: > Where did this source file come from? It isn't the same as the vanilla > 2.6.31.14 hub.c. In particular, the misspelled comment and the > problematic assignment aren't present in the file from kernel.org. You are correct. This is from the freescale patches. I just only figured out where they are keeping the patches. I think there was some patch involving 'autosuspend_disabled'. I had grepped a git patch or used 'ediff-revision' and this showed up as an addition for what I thought was a cumulative patchset from 2.6.31.0 to 2.6.31.14. I don't have access to that tree right now. [0160-ENGR00117147-1-USB-clock-gating-and-PHY-low-power-mo.patch] >From 9a3dd2536ccf1bb0aa5610b18a897d687d2ef3ac Mon Sep 17 00:00:00 2001 From: Jun Li <r65092@xxxxxxxxxxxxx> Date: Tue, 1 Dec 2009 21:13:48 +0800 Subject: [PATCH] ENGR00117147-1 USB clock gating and PHY low power mode. If there is no usb devices connectted or all connectted usb devices are in suspend state, usb host can suspend its whole bus, then put the PHY into low power mode and close all usb clocks. (The patch is splitted 2 patches, this is common code part.) Signed-off-by: Li Jun <r65092@xxxxxxxxxxxxx> [***snip***] diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index b3f934a..64ad4fe 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -1170,13 +1170,10 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id) return -E2BIG; } - /* With OTG enabled, suspending root hub results in gadget not - * working because gadget uses the same root hub. We disable - * this feature when OTG is selected. + /* Defaultly disable autosuspend for hub and reley on sys + * to enable it. */ -#if defined(CONFIG_PM) && defined(CONFIG_USB_EHCI_ARC_OTG) hdev->autosuspend_disabled = 1; -#endif #ifdef CONFIG_USB_OTG_BLACKLIST_HUB if (hdev->parent) { Sorry to bug you. Bill Pringlemeir. -- Yow! Legally-imposed CULTURE-reduction is CABBAGE-BRAINED! -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html