status = readl(uport->membase + SE_GENI_STATUS) Struct qcom_geni_serial_port *port = to_dev_port(uport, uport) +static void qcom_geni_serial_handle_rx(struct uart_port *uport, bool drop) static void qcom_geni_serial_start_rx(struct uart_port *uport) Writel(M_CMD_CANCEL_EN, uport->membase + SE_GENI_M_IRQ_CLEAR) U32 -635,25 +635,29 static void qcom_geni_serial_stop_tx(struct uart_port *uport) Static void qcom_geni_serial_start_tx(struct uart_port *uport) + return !readl(uport->membase + SE_GENI_TX_FIFO_STATUS) +static unsigned int qcom_geni_serial_tx_empty(struct uart_port *uport) static void qcom_geni_serial_handle_rx(struct uart_port *uport, bool drop) Ĭontainer_of(ptr, struct qcom_geni_serial_port, -590,6 +585,11 static int handle_rx_uart(struct uart_port *uport, u32 bytes, bool drop) static void qcom_geni_serial_stop_rx(struct uart_port *uport) static unsigned int qcom_geni_serial_tx_empty(struct uart_port *port) static int handle_rx_uart(struct uart_port *uport, u32 bytes, bool drop) static int handle_rx_console(struct uart_port *uport, u32 bytes, bool drop) Static struct uart_driver qcom_geni_uart_driver Static struct uart_driver qcom_geni_console_driver Static const struct uart_ops qcom_geni_uart_pops +++ -147,11 +147,6 static const struct uart_ops qcom_geni_console_pops a/drivers/tty/serial/qcom_geni_serial.c If we shuffle the code a bit, we can drop all forward definitions ofĭrivers/tty/serial/qcom_geni_serial.c | 79 +++++++++++++-ġ file changed, 37 insertions(+), 42 deletions(-)ĭiff -git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c ` (11 subsequent siblings) 12 siblings, 0 replies 20+ messages in threadĬc: linux-kernel, linux-arm-msm, linux-serial, Bartosz Golaszewski, 11:07 ` tty: serial: qcom-geni-serial: remove unused symbols Bartosz Golaszewski 11:07 serial: qcom-geni-serial: implement support for SE DMA Bartosz 11:07 ` Bartosz Golaszewski * tty: serial: qcom-geni-serial: drop unneeded forward definitions Tty: serial: qcom-geni-serial: add support for serial engine DMAĭrivers/tty/serial/qcom_geni_serial.c | 606 +++++++++++++++++-Ģ files changed, 409 insertions(+), 200 deletions(-) Soc: qcom-geni-se: add more symbol definitions Tty: serial: qcom-geni-serial: stop operations in progress at shutdown Tty: serial: qcom-geni-serial: use of_device_id data Tty: serial: qcom-geni-serial: drop the return value from handle_rx Tty: serial: qcom-geni-serial: refactor qcom_geni_serial_handle_tx() Tty: serial: qcom-geni-serial: remove unneeded tabs Tty: serial: qcom-geni-serial: refactor qcom_geni_serial_isr() Tty: serial: qcom-geni-serial: remove stray newlines Tty: serial: qcom-geni-serial: improve the to_dev_port() macro Tty: serial: qcom-geni-serial: align #define values Tty: serial: qcom-geni-serial: remove unused symbols Tty: serial: qcom-geni-serial: drop unneeded forward definitions further refactor qcom_geni_serial_handle_tx_fifo() drop sizeof() where BYTES_PER_FIFO_WORD can be used use CIRC_CNT_TO_END() and uart_xmit_advance() where applicable and don't turn to_dev_uport() macro into a static inline function Redundancy among its users and add support for SE DMA to the qcom GENI More work will follow on the serial engine in order to reduce code Reworks and refactoring or prepare the driver for adding DMA support. The previous ones contain either various tweaks, The goal of this series is to update the qcom-geni-serial driver to use Jiri Slaby, Srinivas Kandagatla, Vinod Koul, Alex Elder,Ĭc: linux-kernel, linux-arm-msm, linux-serial, Bartosz Golaszewski To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Greg Kroah-Hartman, ` (12 more replies) 0 siblings, 13 replies 20+ messages in threadįrom: Bartosz Golaszewski 11:07 UTC ( / raw) 11:07 ` tty: serial: qcom-geni-serial: drop unneeded forward definitions Bartosz Golaszewski Serial: qcom-geni-serial: implement support for SE DMA LKML Archive on help / color / mirror / Atom feed * serial: qcom-geni-serial: implement support for SE DMA 11:07 Bartosz Golaszewski
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |