[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140116161841.GA7476@kroah.com>
Date: Thu, 16 Jan 2014 08:18:41 -0800
From: Greg KH <gregkh@...uxfoundation.org>
To: Tushar Behera <tushar.behera@...aro.org>
Cc: linux-kernel@...r.kernel.org, linux-samsung-soc@...r.kernel.org,
jslaby@...e.cz, broonie@...nel.org
Subject: Re: [PATCH] tty: Fallback to use dynamic major number
On Thu, Jan 16, 2014 at 10:33:22AM +0530, Tushar Behera wrote:
> In a multi-platform scenario, the hard-coded major/minor numbers in
> serial drivers may conflict with each other. A typical scenario is
> observed with amba-pl011 and samsung-uart drivers, both of these
> drivers use same set of major/minor numbers. If both of these drivers
> are enabled, probe of samsung-uart driver fails because the desired
> node is busy.
Why would both drivers ever be loaded at the same time? Don't they bind
to different hardware devices, and as such, never will be in the same
system?
The driver shouldn't be registering it's tty devices if the hardware
isn't present in the system, so how can this codepath ever happen?
> The issue is fixed by adding a fallback in driver core, so that we can
> use dynamic major number in case device node allocation fails for
> hard-coded major/minor number.
Did you test this out? You still get userspace breakage with it :(
> Signed-off-by: Tushar Behera <tushar.behera@...aro.org>
> ---
> Hi Greg,
>
> This is my second attempt at getting this fixed. Let me know if you are
> okay with this.
>
> Initial approach to fix this problem was by forcing samsung-uart driver
> to use dynamic major number, but it was rejected [1] because of possible
> user-space breakage.
"possible"? Heh, no, that should be "real".
Sorry, but I think you are trying to fix a problem that never actually
happens in real life, or in valid configurations...
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists