From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Abbott Subject: Re: [Nios2-dev] [PATCH 2/2] serial: Add driver for the Altera UART Date: Thu, 6 May 2010 12:16:43 +0100 Message-ID: <4BE2A51B.2030608@mev.co.uk> References: <095aab012b2a6b3bbf4c7bc04294bb9c19316318.1273048151.git.tklauser@distanz.ch> <1273142684.3477.22.camel@gentoo-ija64.mev.local> <4BE2A34C.1040301@mev.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from mail.mev.co.uk ([62.49.15.74]:41762 "EHLO mail.mev.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752105Ab0EFLQs (ORCPT ); Thu, 6 May 2010 07:16:48 -0400 In-Reply-To: <4BE2A34C.1040301@mev.co.uk> Sender: linux-serial-owner@vger.kernel.org List-Id: linux-serial@vger.kernel.org To: "nios2-dev@sopc.et.ntust.edu.tw" Cc: "sfr@canb.auug.org.au" , "gregkh@suse.de" , "linux-kernel@vger.kernel.org" , "linux-serial@vger.kernel.org" , "akpm@linux-foundation.org" , "alan@lxorguk.ukuu.org.uk" On 06/05/10 12:09, Ian Abbott wrote: > On 06/05/10 11:44, Ian Abbott wrote: >> Those four functions shouldn't grab port->lock because the caller in >> serial_core.c grabs it before calling them. > > Oh, and that also applies to altera_uart_set_mctrl() - the caller grabs > port->lock before calling it. And altera_uart_get_mctrl(). (And for completeness, altera_uart_enable_ms() but the current implementation doesn't grab it anyway as it's just an empty function.) -- -=( Ian Abbott @ MEV Ltd. E-mail: )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-