[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b1d1c907-406a-57bd-daf5-4366f8714cad@google.com>
Date: Tue, 30 May 2023 14:50:52 -0700
From: Avichal Rakesh <arakesh@...gle.com>
To: Badhri Jagan Sridharan <badhri@...gle.com>
Cc: Francesco Dolcini <francesco@...cini.it>,
Alistair <alistair@...stair23.me>, gregkh@...uxfoundation.org,
stern@...land.harvard.edu, colin.i.king@...il.com,
xuetao09@...wei.com, quic_eserrao@...cinc.com,
water.zhangjiantao@...wei.com, peter.chen@...escale.com,
balbi@...com, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org, stable@...r.kernel.org,
Linux regressions mailing list <regressions@...ts.linux.dev>
Subject: Re: [PATCH v4 1/2] usb: gadget: udc: core: Invoke usb_gadget_connect
only when started
On 5/17/23 10:45, Badhri Jagan Sridharan wrote:
> Keeping the thread updated. I sent out
> https://www.spinics.net/lists/kernel/msg4792009.html few hours earlier
> and have requested help from Francesco, Alistair and others who
> reported the issue.
> Discussing with Alan stern on the feedback he had left.
>
Tangential to the original issues: it looks like patch 2/2 also
breaks gadget functions that sets `bind_deactivated` to true.
When usb_gadget_connect is called while the gadget is deactivated from
functions binding, it sets gadget->connected to true, but does not call
the pullup function. Later, when the gadget function calls
usb_gadget_activate which in turn calls usb_gadget_connect, the pullup
function isn't called because gadget->connected is true.
- Avi
Powered by blists - more mailing lists