[PATCH V3 1/2] Documentation: devices.txt: Update ttyUL major number allocation details

Manikanta Guntupalli posted 2 patches 2 years, 1 month ago
There is a newer version of this series
[PATCH V3 1/2] Documentation: devices.txt: Update ttyUL major number allocation details
Posted by Manikanta Guntupalli 2 years, 1 month ago
Describe when uartlite driver uses static/dynamic allocation for major
number based on maximum number of uartlite serial ports.

Signed-off-by: Manikanta Guntupalli <manikanta.guntupalli@amd.com>
---
Changes for V2:
This patch introduced in V2.
Changes for V3:
Fix typo.
Move description to above of ttyUL.
---
 Documentation/admin-guide/devices.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/admin-guide/devices.txt b/Documentation/admin-guide/devices.txt
index 839054923530..ae7431e317ad 100644
--- a/Documentation/admin-guide/devices.txt
+++ b/Documentation/admin-guide/devices.txt
@@ -2704,6 +2704,9 @@
 		    ...
 		 185 = /dev/ttyNX15		Hilscher netX serial port 15
 		 186 = /dev/ttyJ0		JTAG1 DCC protocol based serial port emulation
+
+		 If maximum number of uartlite serial ports are more than 4, then driver uses
+		 dynamic allocation instead of static allocation for major number.
 		 187 = /dev/ttyUL0		Xilinx uartlite - port 0
 		    ...
 		 190 = /dev/ttyUL3		Xilinx uartlite - port 3
-- 
2.25.1
Re: [PATCH V3 1/2] Documentation: devices.txt: Update ttyUL major number allocation details
Posted by Hugo Villeneuve 2 years, 1 month ago
On Thu, 16 Nov 2023 12:59:14 +0530
Manikanta Guntupalli <manikanta.guntupalli@amd.com> wrote:

Hi,

> Describe when uartlite driver uses static/dynamic allocation for major
> number based on maximum number of uartlite serial ports.
> 
> Signed-off-by: Manikanta Guntupalli <manikanta.guntupalli@amd.com>
> ---
> Changes for V2:
> This patch introduced in V2.
> Changes for V3:
> Fix typo.
> Move description to above of ttyUL.
> ---
>  Documentation/admin-guide/devices.txt | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/Documentation/admin-guide/devices.txt b/Documentation/admin-guide/devices.txt
> index 839054923530..ae7431e317ad 100644
> --- a/Documentation/admin-guide/devices.txt
> +++ b/Documentation/admin-guide/devices.txt
> @@ -2704,6 +2704,9 @@
>  		    ...
>  		 185 = /dev/ttyNX15		Hilscher netX serial port 15
>  		 186 = /dev/ttyJ0		JTAG1 DCC protocol based serial port emulation
> +
> +		 If maximum number of uartlite serial ports are more than 4, then driver uses

"are more" -> "is more"

"then driver" -> "the driver" (or "then the driver")

Hugo.


> +		 dynamic allocation instead of static allocation for major number.
>  		 187 = /dev/ttyUL0		Xilinx uartlite - port 0
>  		    ...
>  		 190 = /dev/ttyUL3		Xilinx uartlite - port 3
> -- 
> 2.25.1
> 


-- 
Hugo Villeneuve <hugo@hugovil.com>