RE: [PATCH v2] usb: dwc3: gadget: clear gadget pointer after exit

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

 



> From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Sent: Thursday, September 9, 2021 5:47 PM
> To: Linyu Yuan (QUIC) <quic_linyyuan@xxxxxxxxxxx>
> Cc: Felipe Balbi <balbi@xxxxxxxxxx>; linux-usb@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH v2] usb: dwc3: gadget: clear gadget pointer after exit
> 
> On Thu, Sep 09, 2021 at 05:32:32PM +0800, Linyu Yuan wrote:
> > when do role switch from device to host mode,
> > first disable device mode, currently there is no better way to
> > confirm when gadget was complete removed.
> >
> > change device release function to clear gadget pointer,
> > this will confirm device stop complete when it is NULL.
> 
> Where is this check happening?  If there is nothing in the tree today
> that checks for this, why is this needed?
> 
> Does this fix a specific commit in the past?  If so, what one?
It is only my private usage, it is not fix a previous commit.

In theory this change have no harm and improve.
If you and Felipe both can't approve it, I can accept it.
Anyway thanks for your time.

> 
> thanks,
> 
> greg k-h




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

  Powered by Linux