Re: 4.14 dwc3 gadget mode WARNING on unplug

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

 



Hi,

Vincent Pelletier <plr.vincent@xxxxxxxxx> writes:
> On Tue, 28 Nov 2017 16:31:48 +0000, Vincent Pelletier
> <plr.vincent@xxxxxxxxx> wrote:
>> [   81.326172] dwc3_send_gadget_ep_cmd -> -110
>
> I increased "timeout" to 1000 and added this line:
>   printk(
>     "dwc3_send_gadget_ep_cmd(cmd=%i, params={%i, %i, %i}) iterated %i times",
>     cmd,
>     params->param0, params->param1, params->param2,
>     1000 - timeout
>   );
>
> Most lines show 1 or 2 (re)tries only, some 0, and one command sent
> after unplugging the cable is way higher:
>
> [ 1088.799777] dwc3_send_gadget_ep_cmd(cmd=331016, params={0, 0, 0}) iterated 605 times
> [ 1222.024986] dwc3_send_gadget_ep_cmd(cmd=331016, params={0, 0, 0}) iterated 580 times
> [ 1317.590452] dwc3_send_gadget_ep_cmd(cmd=331016, params={0, 0, 0}) iterated 598 times
> [ 1453.218314] dwc3_send_gadget_ep_cmd(cmd=331016, params={0, 0, 0}) iterated 594 times
>
> So it seems 500 is a bit too short for just this one command.
> Hopes this help.

okay, then the timeout needs to be increased to 1000. Care to send a patch?

-- 
balbi

Attachment: signature.asc
Description: PGP signature


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

  Powered by Linux