Re: [PATCH 2/4] USB: UDC: Implement udc_async_callbacks in dummy-hcd

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

 



On Fri, Jun 04, 2021 at 08:21:11AM +0300, Felipe Balbi wrote:
> 
> Hi,
> 
> Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> writes:
> > @@ -990,7 +1000,6 @@ static int dummy_udc_start(struct usb_ga
> >  	spin_lock_irq(&dum->lock);
> >  	dum->devstatus = 0;
> >  	dum->driver = driver;
> > -	dum->ints_enabled = 1;
> 
> should the matching write of 0 be removed from dummy_udc_stop()?

No, it's okay to leave that one.  In practice it won't make any 
difference because now the core will always turn off async callbacks 
before doing udc_stop.  It's there for the sake of thoroughness, and it 
lets the reader know that emulated interrupts are supposed to be turned 
off whenever the UDC stops running (just like a driver for a real UDC).

Whereas this line here in dummy_udc_start would be actively wrong if it 
were to remain.

Alan Stern

> Other than that:
> 
> Acked-by: Felipe Balbi <balbi@xxxxxxxxxx>
> 
> -- 
> balbi





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

  Powered by Linux