On Wed, Jan 15, 2014 at 03:00:51PM +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
You really need to submit this to see if Greg is OK with the approach. Feel free to blame me for the idea if you're worried about him getting angry. I'd add some discussion to the changelog about how this will have no effect on already working systems, and I would consider making this controllable by a Kconfig option (possibly as a followup patch so the first one has more chance of getting merged).
printk(KERN_WARNING
"Default device node (%d:%d) for %s is busy, "
"using dynamic major number\n",
driver->major, driver->minor_start,
driver->name);
driver->major = 0;
Don't split log mesages over multiple lines, this makes it harder to grep for them.