All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anton Vorontsov <cbouatmailru@gmail.com>
To: Alan Cox <alan@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>,
	Andrew Morton <akpm@linux-foundation.org>,
	Tobias Klauser <tklauser@distanz.ch>,
	linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 5/8] altera_uart: Make it possible to use Altera UART and 8250 ports together
Date: Fri, 1 Oct 2010 17:52:54 +0400	[thread overview]
Message-ID: <20101001135254.GA27739@oksana.dev.rtsoft.ru> (raw)
In-Reply-To: <20101001134138.5ea2fb55@linux.intel.com>

On Fri, Oct 01, 2010 at 01:41:38PM +0100, Alan Cox wrote:
> On Fri, 1 Oct 2010 17:22:07 +0400
> Anton Vorontsov <cbouatmailru@gmail.com> wrote:
> 
> > This fixes tty name and major number conflicts. The major number
> > 204 is used across many platform-specific serial drivers, so we
> > use that.
> 
> 204 is allocated in small chunks to specific low volume devices so you
> need a proper minor allocation
> 
> At this point that would be 204,213 for whatever tiny range you need.
> 
> Please send me a patch for devices.txt and update accordingly,
> otherwise no objections.

Sure thing. Will this work?

Thanks!

- - -
From: Anton Vorontsov <cbouatmailru@gmail.com>
Subject: lanana: Assign a device name and numbering for Altera UART

Note that Altera UART is usually found on an FPGA solutions, so there
could be quite a lot of ports (expanded as needed).

I guess the sane maximum number of ports would be 8, but it is still
possible to do hundreds of them.

Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
---
 Documentation/devices.txt |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Documentation/devices.txt b/Documentation/devices.txt
index d0d1df6..984cf24 100644
--- a/Documentation/devices.txt
+++ b/Documentation/devices.txt
@@ -2805,6 +2805,9 @@ Your cooperation is appreciated.
 		 210 = /dev/ttyMAX1		MAX3100 serial port 1
 		 211 = /dev/ttyMAX2		MAX3100 serial port 2
 		 212 = /dev/ttyMAX3		MAX3100 serial port 3
+		 213 = /dev/ttyAL0		Altera UART port 0
+		    ...
+		 221 = /dev/ttyAL7		Altera UART port 7
 
 205 char	Low-density serial ports (alternate device)
 		  0 = /dev/culu0		Callout device for ttyLU0
-- 
1.7.0.5


  reply	other threads:[~2010-10-01 13:52 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-01 13:20 [PATCH v2 0/8] Some patches for Altera UART driver Anton Vorontsov
2010-10-01 13:21 ` [PATCH 1/8] serial: Factor out uart_poll_timeout() from 8250 driver Anton Vorontsov
2010-10-01 13:21 ` [PATCH 2/8] altera_uart: Add support for polling mode (IRQ-less) Anton Vorontsov
2010-10-01 13:57   ` Tobias Klauser
2010-10-01 13:21 ` [PATCH 3/8] altera_uart: Add support for getting mapbase and IRQ from resources Anton Vorontsov
2010-10-01 13:21 ` [PATCH 4/8] altera_uart: Add support for different address strides Anton Vorontsov
2010-10-01 14:01   ` Tobias Klauser
2010-10-01 13:22 ` [PATCH 5/8] altera_uart: Make it possible to use Altera UART and 8250 ports together Anton Vorontsov
2010-10-01 12:41   ` Alan Cox
2010-10-01 13:52     ` Anton Vorontsov [this message]
2010-10-01 14:18       ` Alan Cox
2010-10-01 15:22         ` Anton Vorontsov
2010-10-01 14:57           ` Alan Cox
2010-10-01 16:05             ` Anton Vorontsov
2010-10-01 14:23   ` [PATCH v3 " Anton Vorontsov
2010-10-01 13:22 ` [PATCH 6/8] altera_uart: Fixup type usage of port flags Anton Vorontsov
2010-10-01 13:54   ` Tobias Klauser
2010-10-01 13:22 ` [PATCH 7/8] altera_uart: Fix missing prototype for registering an early console Anton Vorontsov
2010-10-01 13:52   ` Tobias Klauser
2010-10-01 13:23 ` [PATCH 8/8] altera_uart: Don't use plain integer as NULL pointer Anton Vorontsov
2010-10-01 13:50   ` Tobias Klauser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101001135254.GA27739@oksana.dev.rtsoft.ru \
    --to=cbouatmailru@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=alan@linux.intel.com \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=tklauser@distanz.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.