cec: too more log when cec bus error [1/1]
authorYong Qin <yong.qin@amlogic.com>
Mon, 7 Jan 2019 07:59:00 +0000 (15:59 +0800)
committerLuan Yuan <luan.yuan@amlogic.com>
Mon, 7 Jan 2019 14:16:39 +0000 (22:16 +0800)
PD#SWPL-3921

Problem:
Too more log when cec bus error

Solution:
print the log at log level 1

Verify:
verified on tl1 android p

Change-Id: I8273e0a46470d59160f1ac8dc71494a9abb19b0f
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
drivers/amlogic/cec/hdmi_ao_cec.c
drivers/amlogic/cec/hdmi_ao_cec.h

index a0da89e..3c0af63 100644 (file)
@@ -483,9 +483,9 @@ void cecb_irq_handle(void)
                        /* clear start */
                        hdmirx_cec_write(DWC_CEC_TX_CNT, 0);
                        hdmirx_set_bits_dwc(DWC_CEC_CTRL, 0, 0, 3);
-                       CEC_ERR("warning:ARB_LOST\n");
+                       CEC_INFO("warning:ARB_LOST\n");
                } else if (intr_cec & CEC_IRQ_TX_ERR_INITIATOR) {
-                       CEC_ERR("warning:INITIATOR\n");
+                       CEC_INFO("warning:INITIATOR\n");
                        cec_tx_result = CEC_FAIL_OTHER;
                } else
                        cec_tx_result = CEC_FAIL_OTHER;
@@ -494,7 +494,7 @@ void cecb_irq_handle(void)
 
        /* RX error irq flag */
        if (intr_cec & CEC_IRQ_RX_ERR_FOLLOWER) {
-               CEC_ERR("warning:FOLLOWER\n");
+               CEC_INFO("warning:FOLLOWER\n");
                hdmirx_cec_write(DWC_CEC_LOCK, 0);
                /* TODO: need reset cec hw logic? */
        }
index b6fb58f..aafc7d9 100644 (file)
@@ -19,7 +19,7 @@
 #define __AO_CEC_H__
 
 
-#define CEC_DRIVER_VERSION     "Ver 2018/12/11\n"
+#define CEC_DRIVER_VERSION     "Ver 2019/1/7\n"
 
 #define CEC_FRAME_DELAY                msecs_to_jiffies(400)
 #define CEC_DEV_NAME           "cec"