Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933953Ab3CLXLC (ORCPT ); Tue, 12 Mar 2013 19:11:02 -0400 Received: from mail-ie0-f176.google.com ([209.85.223.176]:57911 "EHLO mail-ie0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933578Ab3CLXK6 (ORCPT ); Tue, 12 Mar 2013 19:10:58 -0400 Date: Tue, 12 Mar 2013 16:10:54 -0700 From: Greg Kroah-Hartman To: Sergey Yanovich Cc: Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] allow alternative name for PXA serial console Message-ID: <20130312231054.GA6379@kroah.com> References: <1363129342-24310-1-git-send-email-ynvich@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1363129342-24310-1-git-send-email-ynvich@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2041 Lines: 54 On Wed, Mar 13, 2013 at 03:02:22AM +0400, Sergey Yanovich wrote: > ICP DAS LP-8x4x is an industrial data acquision device. It is based > on PXA270 CPU. The board containsi a lot of (up to 36) standard UARTi > 8250i serial ports. System console on the board is provided with > an on-chip PXA serial port. Both modules use /dev/ttyS0 by default. > > To solve the collision, PXA ports could be configured with different > name and device numbers. > > Signed-off-by: Sergey Yanovich > --- > drivers/tty/serial/Kconfig | 14 ++++++++++++++ > drivers/tty/serial/pxa.c | 22 ++++++++++++++++++---- > 2 files changed, 32 insertions(+), 4 deletions(-) > > diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig > index 59c23d0..09cf980 100644 > --- a/drivers/tty/serial/Kconfig > +++ b/drivers/tty/serial/Kconfig > @@ -406,6 +406,20 @@ config SERIAL_PXA_CONSOLE > your boot loader (lilo or loadlin) about how to pass options to the > kernel at boot time.) > > +config SERIAL_PXA_TTYSA_NAME > + bool "as /dev/ttySA[0-3]" Does that config text really make sense? What does it look like when you run "make oldconfig"? > + depends on SERIAL_PXA > + default N > + help > + If you have enabled the serial port on the Intel XScale PXA > + CPU you can make it appear as /dev/ttySA[0-3] in the system. > + > + If you say N here (default), the ports will use UART /dev/ttyS[0-3] > + names and corresponding major and minor devices numbers. > + > + If you say Y here, the ports will have SA-1100 style names and > + numbers. It is reqired at least for one PXA based device. Ugh, why does it matter what it is named? Use udev, or a tool like it, to rename serial ports if you really need it, don't do this in the kernel please. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/