From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752697AbcAFWdK (ORCPT ); Wed, 6 Jan 2016 17:33:10 -0500 Received: from lxorguk.ukuu.org.uk ([81.2.110.251]:54944 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752130AbcAFWdF (ORCPT ); Wed, 6 Jan 2016 17:33:05 -0500 Date: Wed, 6 Jan 2016 22:32:47 +0000 From: One Thousand Gnomes To: Cc: , , , , , , , , Subject: Re: [PATCH v2 10/14] serial: pic32_uart: Add PIC32 UART driver Message-ID: <20160106223247.409a1d2b@lxorguk.ukuu.org.uk> In-Reply-To: References: <1450133093-7053-1-git-send-email-joshua.henderson@microchip.com> <1450133093-7053-11-git-send-email-joshua.henderson@microchip.com> <20160105204322.2dc5ab3f@lxorguk.ukuu.org.uk> Organization: Intel Corporation X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.29; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 6 Jan 2016 22:00:43 +0000 wrote: > On 01/05/2016 03:50 PM, One Thousand Gnomes wrote: > > > >> +#define PIC32_SDEV_NAME "ttyS" > >> +#define PIC32_SDEV_MAJOR TTY_MAJOR > >> +#define PIC32_SDEV_MINOR 64 > > > > No. Same goes for you as every one of the forty other people a year who > > try and claim their console is ttyS. If it's not an 8250 it isn't. > > > > ttyS is the 8250, use dynamic major and minor and a different name. > > Ok. Is there a naming convention documented anywhere? How about ttyPIC? We used to document it but the document was always stale. ttyPIC sounds fine providing nobody else is using it (and I don't think they are but grep is your friend). We enforce the rule because in the early days lots of people re-used ttyS for their chip. Then their chip grew an external bus or turned into a SoC and a 16x50 got added and it all broke. ttyPIC ought to be fine because even if you get new PIC devices with a different uart you aren't likely to have both of the PIC cores on the same device. Alan