Re: [PATCH 3/4] doc: uartlite: Add binding for the driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 9, 2018 at 8:15 AM Maarten Brock <m.brock@xxxxxxxxxxxxx> wrote:
>
> On 2018-07-04 00:42, Rob Herring wrote:
> > On Wed, Jun 27, 2018 at 05:53:44PM +0530, Shubhrajyoti Datta wrote:
> >> +
> >> +Optional properties:
> >> +- port-number          : Set Uart port number
> >
> > Nope. Use aliases.
>
> You may not like the current implementation, but that is no reason to
> deny
> this documentation of the current state.

Okay, didn't realize it was already in use.

> Personally I don't get this preference for aliases. It is a one way
> mapping
> in the wrong direction if you ask me. If e.g. you have serial0 pointing
> to
> a 16550 it will give /dev/ttyS0. This prevents you to create
> /dev/ttyUL0,
> because serial0 is already taken. Note that ttySx and ttyULx are in
> different namespaces. It would only make sense if ttyULx was an illegal
> name for a UART.

The problem here is that each UART defines its own namespace. We don't
do that for any other type of device. The problem hasn't been fixed
because doing so without breaking userspace is hard.

Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux