serial: qcom-geni: use icc tag defines
authorJohan Hovold <johan+linaro@kernel.org>
Tue, 11 Jul 2023 16:05:16 +0000 (18:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jul 2023 18:18:59 +0000 (20:18 +0200)
Use the Qualcomm interconnect defines rather than magic numbers for the
icc tags also in the restore() PM callback.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Georgi Djakov <djakov@kernel.org>
Link: https://lore.kernel.org/r/20230711160516.30502-1-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c

index 444c74e..88ed5bb 100644 (file)
@@ -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);
                /*