Le 20/06/2023 à 06:50, Jiri Slaby a écrit : > On 19. 06. 23, 13:47, Dan Carpenter wrote: >> On Mon, Jun 19, 2023 at 02:44:11PM +0300, Dan Carpenter wrote: >>> On Mon, Jun 19, 2023 at 01:01:49PM +0200, Jiri Slaby wrote: >>>> On 19. 06. 23, 11:45, Dan Carpenter wrote: >>>>> The atmel_complete_tx_dma() function disables IRQs at the start >>>>> of the function by calling spin_lock_irqsave(&port->lock, flags); >>>>> There is no need to disable them a second time using the >>>>> spin_lock_irq() function and, in fact, doing so is a bug because >>>>> it will enable IRQs prematurely when we call spin_unlock_irq(). >>>>> >>>>> Just use spin_lock/unlock() instead without disabling or enabling >>>>> IRQs. >> >> Maybe I should add a "a second time". >> >> "Just use spin_lock/unlock() instead without disabling or enabling >> IRQs a second time." > > No, I'm just stupid and I apparently fail to understand written text at > times. > > Reviewed-by: Jiri Slaby <jirislaby@xxxxxxxxxx> > > thanks, Acked-by: Richard Genoud <richard.genoud@xxxxxxxxx> Thanks !