Re: [Nios2-dev] [PATCH 2/2] serial: Add driver for the Altera UART

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

 



Hi Tobias,

On 06/05/10 13:03, Tobias Klauser wrote:
> I also noticed, that altera_uart_break_ctl takes the lock which might be
> not necessary as the caller in serial_core.c already takes port->mutex
> which should be enough. Or am I wrong?

It's not enough.  The spin lock is needed to protect modification of
pp->imr and writing this modified value to the control register.  Not
all paths that modify pp->imr and the control register grab port->mutex
beforehand (for example, the interrupt routine doesn't and can't).

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti@xxxxxxxxx>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux