Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932805Ab3CLXj4 (ORCPT ); Tue, 12 Mar 2013 19:39:56 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:39700 "EHLO mail-ie0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755365Ab3CLXjy (ORCPT ); Tue, 12 Mar 2013 19:39:54 -0400 Date: Tue, 12 Mar 2013 16:39:51 -0700 From: Greg Kroah-Hartman To: =?utf-8?B?0KHQtdGA0LPQtdC5INCv0L3QvtCy0LjRhw==?= 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: <20130312233951.GA32737@kroah.com> References: <1363129342-24310-1-git-send-email-ynvich@gmail.com> <20130312231054.GA6379@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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: 2142 Lines: 52 On Wed, Mar 13, 2013 at 03:34:59AM +0400, Сергей Янович wrote: > On 13 March 2013 03:10, Greg Kroah-Hartman wrote: > > On Wed, Mar 13, 2013 at 03:02:22AM +0400, Sergey Yanovich wrote: > >> +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"? > > -------------------- > * Non-8250 serial port support > * > PXA serial port support (SERIAL_PXA) [Y/n/?] y > Console on PXA serial port (SERIAL_PXA_CONSOLE) [Y/n/?] y > as /dev/ttySA[0-3] (SERIAL_PXA_TTYSA_NAME) [N/y/?] (NEW) Please make it sane for the single line it is on. > So the kernel will have PXA serial port, a console on it, and it will > have a name (and numbers) /dev/ttySA0 to /dev/ttySA3. > > >> 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. > > > 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. > > It doesn't matter what it is named. It matters that both drivers try > to use the same major device number. I have to change major device > number for PXA tty, as a result I need a different name in /dev > > Maybe I am missing something obvious, but it seems that such a > collision is a kernel bug. Someone assumed that PXA cannot have a 8250 > tty device and used 8250's parameters in PXA tty driver. Yes, someone must have messed up, so care to find the root problem here? 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/