Update ttyUL major number allocation details in documentation.
Use dynamic allocation for major number when uart ports > 4.
---
Changes for V2:
Introduce 1/2 patch.
Update driver to use either static or dynamic major allocation.
Update commit description.
Update description of SERIAL_UARTLITE_NR_UARTS in Kconfig.
Manikanta Guntupalli (2):
Documentation: devices.txt: Update ttyUL major number allocation
details
serial: uartlite: Use dynamic allocation for major number when uart
ports > 4
Documentation/admin-guide/devices.txt | 4 ++++
drivers/tty/serial/Kconfig | 2 ++
drivers/tty/serial/uartlite.c | 5 +++++
3 files changed, 11 insertions(+)
--
2.25.1
Describe when uartlite driver uses static/dynamic allocation for major
number based on maximum number of uartlite serial ports.
Signed-off-by: Manikanta Guntupalli <redacted>
---
Changes for V2:
This patch introduced in V2.
---
Documentation/admin-guide/devices.txt | 4 ++++
1 file changed, 4 insertions(+)
@@ -2707,6 +2707,10 @@ 187 = /dev/ttyUL0 Xilinx uartlite - port 0 ... 190 = /dev/ttyUL3 Xilinx uartlite - port 3++ If maximum number of uartlite serial ports more than 4, then driver uses+ dynamic allocation instead of static allocation for major number.+ 191 = /dev/xvc0 Xen virtual console - port 0 192 = /dev/ttyPZ0 pmac_zilog - port 0 ...
Device number 204 has a range of minors on major number.
uart_register_driver is failing due to lack of minor numbers
when more number of uart ports used. So, to avoid minor number
limitation on 204 major number use dynamic major allocation
when more than 4 uart ports used otherwise use static major
allocation.
https://docs.kernel.org/arch/arm/sa1100/serial_uart.html
Signed-off-by: Manikanta Guntupalli <redacted>
---
Changes for V2:
Update logic to use either static or dynamic major allocation.
Update commit description.
Update description of SERIAL_UARTLITE_NR_UARTS in Kconfig.
---
drivers/tty/serial/Kconfig | 2 ++
drivers/tty/serial/uartlite.c | 5 +++++
2 files changed, 7 insertions(+)
Device number 204 has a range of minors on major number.
uart_register_driver is failing due to lack of minor numbers
when more number of uart ports used. So, to avoid minor number
limitation on 204 major number use dynamic major allocation
when more than 4 uart ports used otherwise use static major
allocation.
https://docs.kernel.org/arch/arm/sa1100/serial_uart.html
Signed-off-by: Manikanta Guntupalli <redacted>
---
Changes for V2:
Update logic to use either static or dynamic major allocation.
Update commit description.
Update description of SERIAL_UARTLITE_NR_UARTS in Kconfig.
---
drivers/tty/serial/Kconfig | 2 ++
drivers/tty/serial/uartlite.c | 5 +++++
2 files changed, 7 insertions(+)
Describe when uartlite driver uses static/dynamic allocation for major
number based on maximum number of uartlite serial ports.
Signed-off-by: Manikanta Guntupalli <redacted>
---
Changes for V2:
This patch introduced in V2.
---
Documentation/admin-guide/devices.txt | 4 ++++
1 file changed, 4 insertions(+)
@@ -2707,6 +2707,10 @@ 187 = /dev/ttyUL0 Xilinx uartlite - port 0 ... 190 = /dev/ttyUL3 Xilinx uartlite - port 3++ If maximum number of uartlite serial ports more than 4, then driver uses+ dynamic allocation instead of static allocation for major number.
I am not sure about the placement of this comment. This looks like it holds for xvc below.
191 = /dev/xvc0 Xen virtual console - port 0
192 = /dev/ttyPZ0 pmac_zilog - port 0
...