Re: Continuous, infinite warm reset attempts in Chipidea HDRC on multiple connect-disconects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 6 Jun 2017, lingareddy praneethreddy wrote:

> I am using Chipidea HDRC on imx6sl platform. On connecting USB stick
> (sometimes) and Android/ Apple phone (frequent) to ci-hdrc multiple
> time it is seen that hub (ehci_hub_control())  reports continuous
> USB_PORT_FEAT_C_RESET  (infinitely) before a disconnect-connect caused
> USB_PORT_FEAT_C_OVER_CURRENT.

Can you post a debugging log?  Do:

	echo 'module usbcore =p' >/sys/kernel/debug/dynamic_debug/control

before plugging in the device, and then copy the dmesg output.

> I have two queries:
> 1. Can we avoid the continuous warm reset ( USB_PORT_FEAT_C_RESET )
> i.e. can we force hub to initialize again and enumerate the device
> again?

Reset _does_ initialize and enumerate the device again.

> 2. Do we need to initialize both controller and hub i.e. we
> initialized controller (calling ehci_setup() and ehci_run())  but the
> hub continued the resets until the overcurrent bit was set.

I don't understand this question.  But remember, the hardware does not 
decide when to issue a reset.  That decision is made by the driver 
software in the kernel.

Alan Stern

--
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



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux