From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933078AbXB1REN (ORCPT ); Wed, 28 Feb 2007 12:04:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933143AbXB1REN (ORCPT ); Wed, 28 Feb 2007 12:04:13 -0500 Received: from de01egw02.freescale.net ([192.88.165.103]:53495 "EHLO de01egw02.freescale.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933078AbXB1REN (ORCPT ); Wed, 28 Feb 2007 12:04:13 -0500 Message-ID: <45E5B604.904@freescale.com> Date: Wed, 28 Feb 2007 11:04:04 -0600 From: Timur Tabi Organization: Freescale User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; it; rv:1.8.1) Gecko/20061010 Firefox/2.0 MIME-Version: 1.0 To: Dan Malek CC: Segher Boessenkool , Torben.Mathiasen@hp.com, Linux Kernel Mailing List , linux-ppc-embedded Subject: Re: lanana: Add major/minor entries for PPC QE UART devices References: <45E46976.6060600@freescale.com> <29c13109971547687159078eacdea008@kernel.crashing.org> <45E592DC.9060700@freescale.com> <511cacb7bbe8a65ff72738c84ec9ece4@kernel.crashing.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Dan Malek wrote: > I don't know the origin of this thread, but none of > that looks correct. Today, there can be up to 8 > CPM UART devices, 6 on CPM/CPM2 and 8 > on the QE. If ttyCPM0 starts at minor 46, they > should be at least monotonically incrementing > up to ttyCPM7 with minor 53. Minor nit: On the QE, they'll be called ttyQE0 through ttyQE7. I agree that the CPM and the QE should share the same starting minor number, so that ttyCPM0 has the same major/minor number as ttyQE0, since it's not possible to have a CPM and a QE on the same device. However, ttyCPM0 is currently assigned to 46, and device 50 is an Altix serial card. The only way to give the CPM 6 or 8 slots without moving it is to overlap the Altix card. Now I don't know anything about the Altix card, so I don't know if it's possible to use that card on a system with a CPM or a QE. If it isn't, then I don't know if overlapping minor numbers is still a problem. (Note that the Altix card has a range of 50-81, which is pretty big.) If we move CPM/QE to 192, then I can change the CPM device driver to reflect that, but I don't know what that means for older kernels. -- Timur Tabi Linux Kernel Developer @ Freescale From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from de01egw02.freescale.net (de01egw02.freescale.net [192.88.165.103]) by ozlabs.org (Postfix) with ESMTP id 02779DDE35 for ; Thu, 1 Mar 2007 04:04:11 +1100 (EST) Message-ID: <45E5B604.904@freescale.com> Date: Wed, 28 Feb 2007 11:04:04 -0600 From: Timur Tabi MIME-Version: 1.0 To: Dan Malek Subject: Re: lanana: Add major/minor entries for PPC QE UART devices References: <45E46976.6060600@freescale.com> <29c13109971547687159078eacdea008@kernel.crashing.org> <45E592DC.9060700@freescale.com> <511cacb7bbe8a65ff72738c84ec9ece4@kernel.crashing.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: Torben.Mathiasen@hp.com, Linux Kernel Mailing List , Segher Boessenkool , linux-ppc-embedded List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Dan Malek wrote: > I don't know the origin of this thread, but none of > that looks correct. Today, there can be up to 8 > CPM UART devices, 6 on CPM/CPM2 and 8 > on the QE. If ttyCPM0 starts at minor 46, they > should be at least monotonically incrementing > up to ttyCPM7 with minor 53. Minor nit: On the QE, they'll be called ttyQE0 through ttyQE7. I agree that the CPM and the QE should share the same starting minor number, so that ttyCPM0 has the same major/minor number as ttyQE0, since it's not possible to have a CPM and a QE on the same device. However, ttyCPM0 is currently assigned to 46, and device 50 is an Altix serial card. The only way to give the CPM 6 or 8 slots without moving it is to overlap the Altix card. Now I don't know anything about the Altix card, so I don't know if it's possible to use that card on a system with a CPM or a QE. If it isn't, then I don't know if overlapping minor numbers is still a problem. (Note that the Altix card has a range of 50-81, which is pretty big.) If we move CPM/QE to 192, then I can change the CPM device driver to reflect that, but I don't know what that means for older kernels. -- Timur Tabi Linux Kernel Developer @ Freescale