2022-11-10 01:07:05

by Gabriel L. Somlo

[permalink] [raw]
Subject: [PATCH v2 0/7] serial: liteuart: add IRQ support

Add IRQ support to the LiteX LiteUART serial interface

Changes from v1:
- split minor cosmetic changes out into individual patches
(1/3 became 1..5/7)
- patches 6/7 and 7/7 unchanged (used to be 2/3 and 3/3)

Gabriel Somlo (7):
serial: liteuart: use KBUILD_MODNAME as driver name
serial: liteuart: use bit number macros
serial: liteuart: remove unused uart_ops stubs
serial: liteuart: don't set unused port fields
serial: liteuart: minor style fix in liteuart_init()
serial: liteuart: separate RX loop from poll timer
serial: liteuart: add IRQ support

drivers/tty/serial/liteuart.c | 123 ++++++++++++++++++++++------------
1 file changed, 80 insertions(+), 43 deletions(-)

--
2.37.3



2022-11-10 01:08:04

by Gabriel L. Somlo

[permalink] [raw]
Subject: [PATCH v2 1/7] serial: liteuart: use KBUILD_MODNAME as driver name

Replace hard-coded instances of "liteuart" with KBUILD_MODNAME.

Signed-off-by: Gabriel Somlo <[email protected]>
---
drivers/tty/serial/liteuart.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/tty/serial/liteuart.c b/drivers/tty/serial/liteuart.c
index 4c0604325ee9..32b81bd03d0c 100644
--- a/drivers/tty/serial/liteuart.c
+++ b/drivers/tty/serial/liteuart.c
@@ -57,7 +57,7 @@ static struct console liteuart_console;

static struct uart_driver liteuart_driver = {
.owner = THIS_MODULE,
- .driver_name = "liteuart",
+ .driver_name = KBUILD_MODNAME,
.dev_name = "ttyLXU",
.major = 0,
.minor = 0,
@@ -322,7 +322,7 @@ static struct platform_driver liteuart_platform_driver = {
.probe = liteuart_probe,
.remove = liteuart_remove,
.driver = {
- .name = "liteuart",
+ .name = KBUILD_MODNAME,
.of_match_table = liteuart_of_match,
},
};
@@ -368,7 +368,7 @@ static int liteuart_console_setup(struct console *co, char *options)
}

static struct console liteuart_console = {
- .name = "liteuart",
+ .name = KBUILD_MODNAME,
.write = liteuart_console_write,
.device = uart_console_device,
.setup = liteuart_console_setup,
--
2.37.3