Re: [PATCH] usb-musb: keep VBUS on when device is disconnected
From: Moreno Bartalucci
Date: Mon Mar 27 2017 - 12:22:38 EST
> Il giorno 27 mar 2017, alle ore 16:30, Tony Lindgren <tony@xxxxxxxxxxx> ha scritto:
>
> [â]
> I wonder if the following test patch allows the mode changing
> devices to been properly found? Of course it's just for testing,
> and scanning for devices takes now 5 seconds.. But it might
> provide clues why musb thinks no devices are connected and we
> cut VBUS.
>
> [â]
Hi Tony,
thanks for your patch.
I tested it with both current mainline kernel and my âproductionâ kernel (4.9.13): they have the same behaviour.
During boot, vbus is first asserted, then removed for a slightly longer time than before (most likely 5 seconds now), then reasserted.
When my device is mode-switched, it is working properly with your patch.
If I understood your patch, however, if the device (anyone, not just my one) takes longer to switch, VBUS is deasserted anyway.
Although this patch is working for me, personally I would prefer a solution which would not deassert VBUS. At least on a host only port. Honestly I donât know how a dual role port should work.
Regards,
Moreno