Re: [PATCH 3/4] usb: musb: Fix handling interrupts for EP0 and SET ADDRESS commmand

2021-01-23 Thread Pali Rohár
On Saturday 23 January 2021 22:23:10 Lukasz Majewski wrote: > Hi Pali, > > > On Saturday 23 January 2021 16:16:11 Lukasz Majewski wrote: > > > Hi Pali, > > > > > > > Interrupt for EP0 is indicated in intrtx register via first bit. > > > > It is set for both RX and TX. First bit in intrrx

Re: [PATCH 3/4] usb: musb: Fix handling interrupts for EP0 and SET ADDRESS commmand

2021-01-23 Thread Lukasz Majewski
Hi Pali, > On Saturday 23 January 2021 16:16:11 Lukasz Majewski wrote: > > Hi Pali, > > > > > Interrupt for EP0 is indicated in intrtx register via first bit. > > > It is set for both RX and TX. First bit in intrrx register is > > > reserved and not set. > > > > > > So remove calling

Re: [PATCH 3/4] usb: musb: Fix handling interrupts for EP0 and SET ADDRESS commmand

2021-01-23 Thread Pali Rohár
On Saturday 23 January 2021 16:16:11 Lukasz Majewski wrote: > Hi Pali, > > > Interrupt for EP0 is indicated in intrtx register via first bit. It > > is set for both RX and TX. First bit in intrrx register is reserved > > and not set. > > > > So remove calling musb_peri_ep0() function at every

Re: [PATCH 3/4] usb: musb: Fix handling interrupts for EP0 and SET ADDRESS commmand

2021-01-23 Thread Lukasz Majewski
Hi Pali, > Interrupt for EP0 is indicated in intrtx register via first bit. It > is set for both RX and TX. First bit in intrrx register is reserved > and not set. > > So remove calling musb_peri_ep0() function at every iteration of > udc_irq() and musb_peri_rx() and call it only from

[PATCH 3/4] usb: musb: Fix handling interrupts for EP0 and SET ADDRESS commmand

2020-12-26 Thread Pali Rohár
Interrupt for EP0 is indicated in intrtx register via first bit. It is set for both RX and TX. First bit in intrrx register is reserved and not set. So remove calling musb_peri_ep0() function at every iteration of udc_irq() and musb_peri_rx() and call it only from musb_peri_tx() when correct