Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tty: serial: qcom-geni-serial: Replace hardcoded icc flags with macros.

In suspend/resume routines, icc flags are hardcoded.

Replace the hardcodes with macros available from header.

Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Vijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Link: https://lore.kernel.org/r/1662564702-7253-1-git-send-email-quic_vnivarth@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Vijaya Krishna Nivarthi and committed by
Greg Kroah-Hartman
408e532e 35f2e3c2

+3 -2
+3 -2
drivers/tty/serial/qcom_geni_serial.c
··· 22 22 #include <linux/slab.h> 23 23 #include <linux/tty.h> 24 24 #include <linux/tty_flip.h> 25 + #include <dt-bindings/interconnect/qcom,icc.h> 25 26 26 27 /* UART specific GENI registers */ 27 28 #define SE_UART_LOOPBACK_CFG 0x22c ··· 1526 1525 * even with no_console_suspend 1527 1526 */ 1528 1527 if (uart_console(uport)) { 1529 - geni_icc_set_tag(&port->se, 0x3); 1528 + geni_icc_set_tag(&port->se, QCOM_ICC_TAG_ACTIVE_ONLY); 1530 1529 geni_icc_set_bw(&port->se); 1531 1530 } 1532 1531 return uart_suspend_port(private_data->drv, uport); ··· 1541 1540 1542 1541 ret = uart_resume_port(private_data->drv, uport); 1543 1542 if (uart_console(uport)) { 1544 - geni_icc_set_tag(&port->se, 0x7); 1543 + geni_icc_set_tag(&port->se, QCOM_ICC_TAG_ALWAYS); 1545 1544 geni_icc_set_bw(&port->se); 1546 1545 } 1547 1546 return ret;