Skip to content

Commit

Permalink
linux: TEMP: use CECB instead CECA
Browse files Browse the repository at this point in the history
  • Loading branch information
Portisch authored and Portisch committed Feb 5, 2021
1 parent 604c2fd commit c1e3070
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
25 changes: 25 additions & 0 deletions projects/Amlogic-ng/patches/linux/linux-temp-03-dts-use-CECB.patch
@@ -0,0 +1,25 @@
From 532bfed034d508ece29641eaf0691615cbcfade8 Mon Sep 17 00:00:00 2001
From: Portisch <hugo.portisch@yahoo.de>
Date: Mon, 1 Feb 2021 09:09:30 +0100
Subject: [PATCH] dts: use CECB

---
arch/arm64/boot/dts/amlogic/coreelec_common.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/amlogic/coreelec_common.dtsi b/arch/arm64/boot/dts/amlogic/coreelec_common.dtsi
index d1e5fedcdc20..d07dd7958e32 100644
--- a/arch/arm64/boot/dts/amlogic/coreelec_common.dtsi
+++ b/arch/arm64/boot/dts/amlogic/coreelec_common.dtsi
@@ -245,7 +245,7 @@
};

&aocec {
- /delete-property/ ee_cec;
+ /delete-property/ arc_port_mask;
};

&sd_emmc_c {
--
2.30.0

@@ -0,0 +1,27 @@
From 30b4f7cadf0245d605186a42f24c7c16b3deaf03 Mon Sep 17 00:00:00 2001
From: Portisch <hugo.portisch@yahoo.de>
Date: Tue, 2 Feb 2021 12:23:24 +0100
Subject: [PATCH 2/2] aocec: do not parse received messages in CECB when
controlled by system

---
drivers/amlogic/cec/hdmi_ao_cec.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/amlogic/cec/hdmi_ao_cec.c b/drivers/amlogic/cec/hdmi_ao_cec.c
index c333f4b0a3cd..650b230ea003 100644
--- a/drivers/amlogic/cec/hdmi_ao_cec.c
+++ b/drivers/amlogic/cec/hdmi_ao_cec.c
@@ -542,6 +542,9 @@ static bool cec_message_op(unsigned char *msg, unsigned char len)
{
int i, j;

+ if (cec_dev->hal_flag & (1 << HDMI_OPTION_SYSTEM_CEC_CONTROL))
+ return true;
+
if (((msg[0] & 0xf0) >> 4) == cec_dev->cec_info.log_addr) {
CEC_ERR("bad iniator with self 0x%x",
cec_dev->cec_info.log_addr);
--
2.30.0

0 comments on commit c1e3070

Please sign in to comment.