From: Justin Chen <[email protected]>
When port is connected and then disconnected, the state stays as
configured. Which is incorrect as the port is no longer configured,
but in a not attached state.
Signed-off-by: Justin Chen <[email protected]>
---
drivers/usb/gadget/udc/bdc/bdc_udc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/gadget/udc/bdc/bdc_udc.c b/drivers/usb/gadget/udc/bdc/bdc_udc.c
index 5ac0ef8..53ffaf4 100644
--- a/drivers/usb/gadget/udc/bdc/bdc_udc.c
+++ b/drivers/usb/gadget/udc/bdc/bdc_udc.c
@@ -151,6 +151,7 @@ static void bdc_uspc_disconnected(struct bdc *bdc, bool reinit)
bdc->delayed_status = false;
bdc->reinit = reinit;
bdc->test_mode = false;
+ usb_gadget_set_state(&bdc->gadget, USB_STATE_NOTATTACHED);
}
/* TNotify wkaeup timer */
--
2.7.4
On 10/5/22 12:13, [email protected] wrote:
> From: Justin Chen <[email protected]>
>
> When port is connected and then disconnected, the state stays as
> configured. Which is incorrect as the port is no longer configured,
> but in a not attached state.
>
> Signed-off-by: Justin Chen <[email protected]>
Acked-by: Florian Fainelli <[email protected]>
--
Florian
On Wed, Oct 05, 2022 at 12:13:55PM -0700, [email protected] wrote:
> From: Justin Chen <[email protected]>
>
> When port is connected and then disconnected, the state stays as
> configured. Which is incorrect as the port is no longer configured,
> but in a not attached state.
>
> Signed-off-by: Justin Chen <[email protected]>
> ---
> drivers/usb/gadget/udc/bdc/bdc_udc.c | 1 +
> 1 file changed, 1 insertion(+)
What commit id does this fix? Should it go to older kernels? If so,
how far back?
thanks,
greg k-h
On 10/8/2022 8:44 AM, Greg KH wrote:
> On Wed, Oct 05, 2022 at 12:13:55PM -0700, [email protected] wrote:
>> From: Justin Chen <[email protected]>
>>
>> When port is connected and then disconnected, the state stays as
>> configured. Which is incorrect as the port is no longer configured,
>> but in a not attached state.
>>
>> Signed-off-by: Justin Chen <[email protected]>
>> ---
>> drivers/usb/gadget/udc/bdc/bdc_udc.c | 1 +
>> 1 file changed, 1 insertion(+)
>
> What commit id does this fix? Should it go to older kernels? If so,
> how far back?
This would be:
Fixes: efed421a94e6 ("usb: gadget: Add UDC driver for Broadcom USB3.0
device controller IP BDC")
that issue was present since the driver was included in Linux with the
commit above, we did not really consider it to be a serious enough bug,
but I suppose it would not hurt to affix the said Fixes tag.
--
Florian
On 10/10/22 07:58, Florian Fainelli wrote:
>
>
> On 10/8/2022 8:44 AM, Greg KH wrote:
>> On Wed, Oct 05, 2022 at 12:13:55PM -0700, [email protected] wrote:
>>> From: Justin Chen <[email protected]>
>>>
>>> When port is connected and then disconnected, the state stays as
>>> configured. Which is incorrect as the port is no longer configured,
>>> but in a not attached state.
>>>
>>> Signed-off-by: Justin Chen <[email protected]>
>>> ---
>>> drivers/usb/gadget/udc/bdc/bdc_udc.c | 1 +
>>> 1 file changed, 1 insertion(+)
>>
>> What commit id does this fix? Should it go to older kernels? If so,
>> how far back?
>
> This would be:
>
> Fixes: efed421a94e6 ("usb: gadget: Add UDC driver for Broadcom USB3.0
> device controller IP BDC")
>
> that issue was present since the driver was included in Linux with the
> commit above, we did not really consider it to be a serious enough bug,
> but I suppose it would not hurt to affix the said Fixes tag.
Greg, are you picking up the patch as-is, or do you need Justin to
resusbmit with the Fixes: tag added?
--
Florian
On Mon, Oct 17, 2022 at 02:05:42PM -0700, Florian Fainelli wrote:
> On 10/10/22 07:58, Florian Fainelli wrote:
> >
> >
> > On 10/8/2022 8:44 AM, Greg KH wrote:
> > > On Wed, Oct 05, 2022 at 12:13:55PM -0700, [email protected] wrote:
> > > > From: Justin Chen <[email protected]>
> > > >
> > > > When port is connected and then disconnected, the state stays as
> > > > configured. Which is incorrect as the port is no longer configured,
> > > > but in a not attached state.
> > > >
> > > > Signed-off-by: Justin Chen <[email protected]>
> > > > ---
> > > > ? drivers/usb/gadget/udc/bdc/bdc_udc.c | 1 +
> > > > ? 1 file changed, 1 insertion(+)
> > >
> > > What commit id does this fix?? Should it go to older kernels?? If so,
> > > how far back?
> >
> > This would be:
> >
> > Fixes: efed421a94e6 ("usb: gadget: Add UDC driver for Broadcom USB3.0
> > device controller IP BDC")
> >
> > that issue was present since the driver was included in Linux with the
> > commit above, we did not really consider it to be a serious enough bug,
> > but I suppose it would not hurt to affix the said Fixes tag.
>
> Greg, are you picking up the patch as-is, or do you need Justin to resusbmit
> with the Fixes: tag added?
Now merged, thanks.
greg k-h