serial: sh-sci: Temporarily Revert "implement FIFO threshold register setting"
PATCH 1/1 serial: sh-sci: Temporarily Revert "implement FIFO threshold register setting"
Patch the first three patches out of seven were applied, up to commit a380ed461f66 ("serial: sh-sci: implement FIFO threshold register setting"), which introduces a new helper function. This is not called until the next following patch, so we now get a build warning:
drivers/tty/serial/sh-sci.c:977:12: error: 'scif_set_rtrg' defined but not used [-Werror=unused-function]
The patch is good, but I think we should either apply the following patches as well, or revert this one to get a clean build.
---
This is mainly a notification that I've applied the revert to my randconfig test tree, if you plan to merge the following patches for 4.11, we won't need this one.
--- drivers/tty/serial/sh-sci.c | 59 --------------------------------------------- 1 file changed, 59 deletions(-)
drivers/tty/serial/sh-sci.c +0 -59
@@ -974,65 +974,6 @@ static int sci_handle_breaks(struct uart_port *port)return copied; } -static int scif_set_rtrg (struct uart_port *port,int rx_trig) -{ -unsigned int bits; - -if (rx_trig <1 ) - rx_trig =1 ; -if (rx_trig >= port->fifosize) - rx_trig = port->fifosize; - -/* HSCIF can be set to an arbitrary level. */ -if (sci_getreg (port,HSRTRGR )->size) { -serial_port_out (port,HSRTRGR , rx_trig); -return rx_trig; - } - -switch (port->type) { -case PORT_SCIF : -if (rx_trig <4 ) { - bits =0 ; - rx_trig =1 ; - }else if (rx_trig <8 ) { - bits =SCFCR_RTRG0 ; - rx_trig =4 ; - }else if (rx_trig <14 ) { - bits =SCFCR_RTRG1 ; - rx_trig =8 ; - }else { - bits =SCFCR_RTRG0 |SCFCR_RTRG1 ; - rx_trig =14 ; - } -break ; -case PORT_SCIFA : -case PORT_SCIFB : -if (rx_trig <16 ) { - bits =0 ; - rx_trig =1 ; - }else if (rx_trig <32 ) { - bits =SCFCR_RTRG0 ; - rx_trig =16 ; - }else if (rx_trig <48 ) { - bits =SCFCR_RTRG1 ; - rx_trig =32 ; - }else { - bits =SCFCR_RTRG0 |SCFCR_RTRG1 ; - rx_trig =48 ; - } -break ; -default : -WARN (1 ,"unknown FIFO configuration" ); -return 1 ; - } - -serial_port_out (port,SCFCR , - (serial_port_in (port,SCFCR ) & - ~(SCFCR_RTRG1 |SCFCR_RTRG0 )) | bits); - -return rx_trig; -} -#ifdef CONFIG_SERIAL_SH_SCI_DMA static void sci_dma_tx_complete (void *arg) {
Signature · 1 line
2.9.0
Hi Arnd,
Quoted 7 lines · Arnd Bergmann
Patch the first three patches out of seven were applied, up to commit
a380ed461f66("serial: sh-sci: implement FIFO threshold register setting"), which introduces a new helper function. This is not called until the next following patch, so we now get a build warning:
drivers/tty/serial/sh-sci.c:977:12: error: 'scif_set_rtrg' defined but not used [-Werror=unused-function]
Quoted 8 lines
The patch is good, but I think we should either apply the following patches as well, or revert this one to get a clean build.
Signed-off-by Arnd Bergmann <[email protected]>---
This is mainly a notification that I've applied the revert to my randconfig test tree, if you plan to merge the following patches for 4.11, we won't need this one.
The follow-up commits were added to tty/tty-next earlier today.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds