Re: Wakeup from USB on i.MX6S

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

 



Good Morning Peter,
(it's 9:38 am in here, I don't know your time zone :) )

On 1 March 2018 8:33 AM, Peter Chen <hzpeterchen@xxxxxxxxx> wrote:
> On Wed, Feb 28, 2018 at 01:17:09PM -0500, Ralf.4MailingLists wrote:
> > > Would you please try below changes:
> > > 1.  By connecting external HUB at USBOTG0, and only enable its wakeup
> > >     to see if the abnormal wakeup occurs?
> > >     2184200.usb -> 2184000.usb
> > >     ci_hdrc.1 ->ci_hdrc.0
> > > 2.  Unbind wired USB HUB at host port to see if the abnormal wakeup
> > >     occurs?
> > >     echo -n "1-1:1.0" > /sys/bus/usb/drivers/hub/unbind
> > 
> > I'm afraid I'm not able to do this at the moment. I only have a HUB with a Mini-USB-Input and a cable Mini-USB-B to (usual) USB-A. The connector on the board also is a Mini-A/B-Port, so i would need a Mini-USB-(AorB)--to--Mini-USB-B--cable. Maybe with OTG capability and an USB-HUB with OTG capability.
> > If necessary, I could try to order one or solder one by 2 old Mini-USB-cables.
> 
> But you could try my above suggestion #2 which is unbind wired USB HUB
> from its driver.

You are right, I'm sorry, I misunderstood your word "wired", I thought you were talking about the Hub i should connect to Mini-USB-OTG, not the soldered one on the board.
I did so right now, the abnormal wakeup occurs.
Also echo -n "1-0:1.0" > /sys/bus/usb/drivers/hub/unbind doesn't change the abnormal wakeup.
Note: I previously enabled all wakeup devices as always. 

This is the content of the hub directory:
root@emtrion-mx6:/sys/bus/usb/drivers/hub# ls -l
lrwxrwxrwx    1 root     root             0 Mar  1 09:23 1-0:1.0 -> ../../../../devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-0:1.0
lrwxrwxrwx    1 root     root             0 Mar  1 09:23 1-1:1.0 -> ../../../../devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1:1.0
--w-------    1 root     root          4096 Mar  1 09:23 bind
lrwxrwxrwx    1 root     root             0 Mar  1 09:23 module -> ../../../../module/usbcore
-rw-r--r--    1 root     root          4096 Mar  1 09:23 new_id
-rw-r--r--    1 root     root          4096 Mar  1 09:23 remove_id
--w-------    1 root     root          4096 Mar  1 09:23 uevent
--w-------    1 root     root          4096 Mar  1 09:23 unbind

I've noticed that there is no response on unbindung 1-1:1.0, but on unbinding 1-0:1.0:
echo -n "1-1:1.0" > /sys/bus/usb/drivers/hub/unbind
<empty line>
<empty line>
echo -n "1-0:1.0" > /sys/bus/usb/drivers/hub/unbind
[  212.373519] usb 1-1: USB disconnect, device number 2
<empty line>
<empty line>
The 2nd one removes /sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/ directory.

And this time, I enabled everything remaining after unbinding both --> it still shows abnormal wakeup behaviour.

I've got a meeting in a few minutes. I will continue later.

Best regards,
Ralf
--
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