Skip to contentSkip to conversation

serial: qcom-geni: use icc tag defines

PATCH In review Johan Hovold 2 participants 2 messages Jul 11, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 serial: qcom-geni: use icc tag defines

Use the Qualcomm interconnect defines rather than magic numbers for the icc tags also in the restore() PM callback.

---
 drivers/tty/serial/qcom_geni_serial.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/qcom_geni_serial.c +1 -1
index 444c74eeab7d..88ed5bbe25a8 100644
@@ -1757,7 +1757,7 @@ static int qcom_geni_serial_sys_hib_resume(struct device *dev)
 	private_data = uport->private_data;
 
 	if (uart_console(uport)) {
-		geni_icc_set_tag(&port->se, 0x7);
+		geni_icc_set_tag(&port->se, QCOM_ICC_TAG_ALWAYS);
 		geni_icc_set_bw(&port->se);
 		ret = uart_resume_port(private_data->drv, uport);
 		/*
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Johan Hovold

Use the Qualcomm interconnect defines rather than magic numbers for the icc tags also in the restore() PM callback.

Quoted 17 lines
---
  drivers/tty/serial/qcom_geni_serial.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/qcom_geni_serial.c +1 -1
index 444c74eeab7d..88ed5bbe25a8 100644
@@ -1757,7 +1757,7 @@ static int qcom_geni_serial_sys_hib_resume(struct device *dev)
  	private_data = uport->private_data;
 
  	if (uart_console(uport)) {
-		geni_icc_set_tag(&port->se, 0x7);
+		geni_icc_set_tag(&port->se, QCOM_ICC_TAG_ALWAYS);
  		geni_icc_set_bw(&port->se);
  		ret = uart_resume_port(private_data->drv, uport);
  		/*