[lkml]   [2014]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH 0/2] serial: Move uart_register_driver call to device probe
In a multiplatform scenario, it is possible that multiple serial
drivers are part of the kernel. Currently the driver registration fails
if multiple serial drivers with same default major/minor numbers are
included in the kernel. A typical case is observed with amba-pl011 and
samsung-uart drivers.

This is the 3rd iteration to fix above problem.

Iteration 1:
[PATCH] serial: samsung: Remove hard-coded major/minor numbers

Iteration 2:
[PATCH] tty: Fallback to use dynamic major number

Both these approaches were rejected because they were breaking userspace

Iteration 3:
uart_register_driver call binds the driver to a specific device
node through tty_driver_register call. This is moved to device probe call.

Tushar Behera (2):
serial: samsung: Move uart_register_driver call to device probe
serial: pl011: Move uart_register_driver call to device probe

drivers/tty/serial/amba-pl011.c | 21 +++++++++++---------
drivers/tty/serial/samsung.c | 40 +++++++++++----------------------------
2 files changed, 23 insertions(+), 38 deletions(-)


 \ /
  Last update: 2014-01-20 10:41    [W:0.143 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site