On Fri, Dec 25, 2015 at 03:41:32PM +0100, Stefan Wahren wrote: > Hi, > > > Peter Chen <hzpeterchen@xxxxxxxxx> hat am 25. Dezember 2015 um 07:22 > > geschrieben: > > > > > > On Thu, Dec 24, 2015 at 09:42:58AM +0100, Stefan Wahren wrote: > > > Hi, > > > > > > > Peter Chen <hzpeterchen@xxxxxxxxx> hat am 23. Dezember 2015 um 10:49 > > > > geschrieben: > > > > > > > > > > > > On Wed, Dec 23, 2015 at 6:54 AM, Fabio Estevam <festevam@xxxxxxxxx> wrote: > > > > > Hi, > > > > > > > > > > On a mx28 custom board with a USB hub I can get a USB stick to get > > > > > detected after applying this change: > > > > > http://marc.info/?l=linux-usb&m=145079935324339&w=2 > > > > > > > > > > Things work fine if I boot without the USB stick connected. Then I can > > > > > insert/remove the USB device and it always gets detected. > > > > > > i want to know more about this issue: > > > > > > Are there any unaffected Mainline Kernel versions? > > > > > > > Before USB runtime suspend is enabled by default, and the > > user does not enable USB runtime suspend. > > > > > Are there special hardware requirements to reproduce this issue? > > > > > > > No, see the description for flag MXS_PHY_ABNORMAL_IN_SUSPEND at > > drivers/usb/phy/phy-mxs-usb.c > > sorry i'm not a USB expert. So connecting an USB hub increases the chance of > reproducing this situation? > Yes, esp for the newer kernel > This flag seems to have no effect on the behavior. It's only defined. > Yes, the design was rejected before. > > > > > Is this issue documented in a chip errata? > > > > > > > I am not sure, this issue is described at mxs PHY driver using flag > > MXS_PHY_ABNORMAL_IN_SUSPEND. > > I got this from i.MX23 reference manual > > Due to a on chip issue (Errata #2791), software must > pay attention to when to assert the > ENHOSTDISCONDETECT bit in HW_USBPHY_CTRL > register: > 1. Only set > HW_USBPHY_CTRL.ENHOSTDISCONDETECT > during high speed host mode. > 2. Do not set > HW_USBPHY_CTRL.ENHOSTDISCONDETECT > during the reset and speed negotiation period. > 3. Do not set > HW_USBPHY_CTRL.ENHOSTDISCONDETECT > during host suspend/resume sequence. > > Is it the same? > No > > > > > Is it reproducable with an i.MX28 EVK? > > > > > > > If you can created the situation the flag MXS_PHY_ABNORMAL_IN_SUSPEND > > described > > > > > Is i.MX23 affected, too > > > > Yes > > The Olimex IMX233-Olinuxino Mini have a Genesys Logic GL850G USB hub on board. > So it should be affected directly. > Maybe -- Best Regards, Peter Chen -- 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