Commit Graph

649294 Commits

Author SHA1 Message Date
Hong Guo
2f44178eef cpufreq: defect clean up overrun [1/1]
PD#SWPL-16541

Problem:
defect clean up overrun

Solution:
defect clean up overrun

Verify:
test pass on g12a_u200

Change-Id: Ib9b5c1f5da9fed34a552eb7ee539e7276d922e38
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2020-06-29 11:45:21 +09:00
Hong Guo
479df3b358 cpufreq: add different freqs variable for big&little core [1/1]
PD#SWPL-15315

Problem:
add different freqs variable for big&little core

Solution:
add different freqs variable for big&little core

Verify:
test pass on g12b_w400

Change-Id: I3fbe4c6ee4f2a0868c84b362acddf16ac41a3dbd
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2020-06-29 11:45:21 +09:00
Hong Guo
98521f67a4 cpufreq: add different freqs variable for big&little core [1/1]
PD#SWPL-15315

Problem:
add different freqs variable for big&little core

Solution:
add different freqs variable for big&little core

Verify:
test pass on g12b_w400

Change-Id: I2a5e00b5bbd4a1d084b925733a051497c6e92b0b
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2020-06-29 11:45:21 +09:00
Lei Qian
fed4a57891 cpufreq: merge from mainline
PD#SWPL-15312

Change-Id: I1b354d551721e80f6b3052e9ed4c66437c0b5242
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2020-06-29 11:45:21 +09:00
Hong Guo
85672bbe4d CPUFREQ: Setting different cpufreq tables according to efuse information. [1/1]
PD#SWPL-4035

Problem:
Setting different cpufreq tables according to efuse information.

Solution:
Setting different cpufreq tables according to efuse information.

Verify:
g12a_u200, verify pass

Change-Id: I1bf571f332244f5727ef3cd8743f215f71248146
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2020-06-29 11:45:21 +09:00
Hanjie Lin
f5f239177e sched: add hmp boost for big-little cluster [1/1]
PD#SWPL-6980

Problem:
memory bound tasks running in a high freq cluster will get a low performance
when another cluster freq is too low.

Solution:
We boost big cluster freq for a appropriate duration when we detect that
little cluster have lasting a period with highest freq.

Verify:
w400

Change-Id: Ic513604cb329992782c9c2e1d71273080e2e336a
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2020-06-29 11:45:21 +09:00
Sunny Luo
3d98c25680 spi nor: spicc: change to use spicc to access spi nor [1/1]
PD#TV-8401

Problem:
Customer needs to access spi nor by the spicc.

Solution:
add spi nor interfaces in spicc driver.
add gd25q80c/FM25Q08A surpport

Verify:
tl1 x301

Change-Id: If94858d46c31fea6b37034a8b1dfe94a9e9f4603
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2020-06-29 11:45:21 +09:00
Sunny Luo
61beb18a8f spi: export the spi_register_board_info for ko [1/1]
PD#SWPL-9815

Problem:
spi_register_board_info's export has been removed in kernel 4.9,
but TV need to use it in ko.

Solution:
package it in a new dirspi_register_board_info and export

Verify:
T312

Change-Id: Ic7e5d8cef6840551e2925eda6162156320877833
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2020-06-29 11:45:20 +09:00
Daogao Xu
e69752f803 i2c: add retry-process when slave NACK. [1/1]
PD#SWPL-4761

Problem:
When slave device is busy processing, it is unable to handle the
incoming communication attempts. i2c master have to repeatedly attemp
communication  until the slave sends an ACK after receiving its slave
address.

Solution:
add retry-process when slave NACK.

Verify:
mesonaxg_s420_32_release

Change-Id: Ieb195176cac4b80e223ea6adb502ffd3bc9ef728
Signed-off-by: Daogao Xu <daogao.xu@amlogic.com>
2020-06-29 11:45:20 +09:00
Jian Hu
5222bf6f1a i2c: meson: add detail calculation process for i2c duty cycle [1/1]
PD#SWPL-7197

Problem:
There is not detail calculation process for i2c duty cycle

Solution:
add detail calculation process for i2c duty cycle

Verify:
verified on x301

Change-Id: Ifc222acda3268f792f63e84c6dc3513d80568e19
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2020-06-29 11:45:20 +09:00
Xingyu Chen
645e63770f remote: fix compatibility issue for RC5 protocol [1/1]
PD#SWPL-6161

Problem:
partial ir-keys with RC5 can’t been decoded on some boards(Eg: TL1, TXLX)

Solution:
adjust the register to extend the detection range of half/whole bit

Verify:
test pass on TL1

Change-Id: I6ff0af79b3bf9f624c1f249f056b729df7b5dd0c
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2020-06-29 11:45:20 +09:00
Qianggui Song
f08cce9ca9 ir: cannot wakeup system when keep pressing power key [1/1]
PD#SWPL-14797

Problem:
In freeze mode, keep press power key won't wake up system.

Solution:
replace pm_wakup_event with pm_stay_awake

Verify:
tl1

Change-Id: I5b88714ff45034280ec1d638f86b51fa54e2a011
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2020-06-29 11:45:20 +09:00
Qiufang Dai
41ee9383b5 freeze: add IRQF_NO_SUSPEND for ir irq flag for avoid wakeup by any IR key
PD#TV-10438

Problem:
system can be wake up by any IR key

Solution:
Add IRQF_NO_SUSPEND to avoid IR interrupt being seen as wakeup source IRQ
When IR irq check current key is power key, then send pm_wakeup_event()

Verify:
X32A0-T972

Change-Id: I753fe15f859480954bb569f2da3d3e0dd93c29e3
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
2020-06-29 11:45:20 +09:00
Qianggui Song
6805ee9472 ir: fix coverity unchecked return value issue [1/1]
PD#SWPL-13969

Problem:
In sysfs.c, return value of class_register is not checked.

Solution:
check return value of class_register

Verify:
local coverity check

Change-Id: If8deb3e388e784650e4812257143c3ac919c2d9a
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2020-06-29 11:45:20 +09:00
Qianggui Song
1c88be3eb3 ir: remove irq affinity in hard decode mode [1/1]
PD#SWPL-9797

Problem:
ir irq is binded to cup 1 and will re-set in every resume process.
cup 0 wakeup first in resume, if there comes a irq during resume in
a critical time it may occurs concurrency.

Solution:
remove irq affinity in hard decode mode and only use it in learning
mode.

Verify:
w400

Change-Id: I26fad9f67665a2bfe9c6d2455559eb1d95e8b2ba
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2020-06-29 11:45:20 +09:00
Qianggui Song
d52040136f ir: add ir learning function [1/1]
PD#SWPL-4130

Problem:
No ir learning function in current source code

Solution:
Provide two ways to use ir learning function
1. sysfs
	/*start learning*/
	echo 1 > /sys/class/remote/amremote/ir_learnning
	/*get data*/
	cat /sys/class/remote/amremote/learned_pulse
	/*stop learning*/
	echo 0 > /sys/class/remote/amremote/ir_learnning
2. ioctl
	/*start/stop learnning 1/0*/
	REMOTE_IOC_SET_IR_LEARING
	/*get raw data*/
	REMOTE_IOC_GET_RAW_DATA

Verify:
U200 and W400

Change-Id: Ibb03838402d9baa6e910b3162ffcc63b57048890
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2020-06-29 11:45:20 +09:00
Qianggui Song
f7f3031015 ir: fix mem leak issue when probe [1/1]
PD#SWPL-12483

Problem:
during probe stage, some unused mems are not be freed.

Solution:
free mem after using.

Verify:
gxl_p212

Change-Id: I24a91d81f0db9fb1edbab8f63b4e8c7f940d5947
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2020-06-29 11:45:20 +09:00
Qianggui Song
a86eb23fed ir: fix allocation of memory without size check issue [1/1]
PD#SWPL-11248

Problem:
When handling the set attribute IOCTL REMOTE_IOC_SET_KEY_NUMBER, the driver
does not limit the size of allocation with kzalloc.

Solution:
Limit the size of alllcation range, if given a value out of range, set
update flag to false and do nothing in kzalloc stage.

Verify:
W400

Change-Id: I6a4150f5615557c372738c918aad86120d149340
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2020-06-29 11:45:20 +09:00
Qianggui Song
efa523b92b ir: support rca ir protocol [1/1]
PD#SWPL-8050

Problem:
current driver does not support rca ir protocol

Solution:
add register setting and code for rca use REMOTE_RYPE_RCA to configure.

Verify:
G12b_W400 & tl1 x301

Change-Id: I76d860d66a43071803fb60debeafcbf18f42b283
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2020-06-29 11:45:19 +09:00
Qianggui Song
3dd602667c ir: add toshiba protocol support [1/1]
PD#SWPL-3543

Problem:
current driver does not support toshiba ir remote control protocol

Solution:
add register setting and decode code for toshiba protocol
use REMOTE_TYPE_TOSHIBA/REMOTE_TYPE_NEC_TOSHIBA to configure toshiba
only/toshiba and nec.

Verify:
tl1_t962x2_x301

Change-Id: Idad70c3879fad6e8267f0c4d80d2447c34114103
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2020-06-29 11:45:19 +09:00
Lei Qian
d32bf0570d jtag: tm2: add SWD interface
Change-Id: I4a31de854be2e6d3985a8fec5c11bfbc54803ec5
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2020-06-29 11:45:19 +09:00
Zhongfu Luo
fdb67c7098 efuse: fix KASAN bug [1/1]
PD#TV-11119

Problem:
BUG: KASAN: stack-out-of-bounds in
meson64_trustzone_efuse+0x168/0x268

Solution:
fix retcnt variable type

Verify:
tl1 skt

Change-Id: I54d9bb598277db539b68f2e741288348eb026e01
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
2020-06-29 11:45:19 +09:00
Jiamin Ma
d58f336aaf efuse: fix potential memory info leakage issue [1/1]
PD#OTT-4656

Problem:
When handling the set attribute IOCTL EFUSE_INFO_GET the driver
makes a call to efuse_getinfo(line 177) passing it a potentially
non-null terminated string. efuse_getinfo() function then uses
this potentially non-null terminated string in strcmp (line 99).
the method efuse_getinfo does not cater to non-null terminated
strings and thus can likely be made to overrun the "item" string
beyond any printable ascii data.
Further more, if attackers can control the item value well enough,
the function efuse_getinfo can be used to potentially disclose
values in kernel memory i.e. by checking the results of lots of
strcmp calls on items values, essentially acting as an oracle for
memory values surrounding the efusekey_info[n].keyname variable in
stack memory.

Solution:
force a null terminator for the keyname argument before comparing
it to kernel memory

Verify:
U200

Change-Id: I851dd7045d0a9e7855e9899c4745eac475cb9233
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2020-06-29 11:45:19 +09:00
Jiamin Ma
f49dbe73e2 cpu_affinity: restore the original cpu affinity correctly [1/1]
PD#SWPL-5595

Problem:
set_cpus_allowed_ptr(current, cpu_all_mask) is always errorly
called to retore CPU affinity for current task. In some cases,
the current may be a bounded kworker thread, and we should not
set its CPU affinity to all CPUs

Solution:
Save the original CPU affinity and restore it

Verify:
W400 revB

Change-Id: I3cd65e79791563af9dacc09639b8645b97979c44
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2020-06-29 11:45:19 +09:00
Zhongfu Luo
fc11723850 efuse: tl1: add efuse burning support [1/1]
PD#172587

Problem:
efuse: tl1: need to add efuse burning support

Solution:
efuse: tl1: add efuse burning support

Verify:
TL1 skt board verify pass

Change-Id: Id65f182c71fc6f3f2b2536bbb6b859ad2f558360
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
2020-06-29 11:45:19 +09:00
Yingyuan Zhu
3b0c4a5026 jtag: meson: fix jtag pinmux settings issue [2/2]
PD#SWPL-4501

Problem:
Standard pinmux APIs were not used

Solution:
Setting pinmux instead of require for gpio

Verify:
tl1,g12a,g12b,axg,txl,txlx,gxl

Change-Id: I0ad88f414832686d795d252f70e81a34f6cb0f9e
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
2020-06-29 11:45:19 +09:00
Lei Qian
6456487cc0 meson_saradc: merge from mainline
PD#SWPL-15312

Change-Id: I77692c66e245135f8f325702626c52c24eb3e180
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2020-06-29 11:45:19 +09:00
Xingyu Chen
c705f69697 key: fix wakeup issues of gpiokey and adckey in freeze mode [1/1]
PD#SWPL-14597

Problem:
- it is risky to replace directly system_freezable_wq with system_wq
for input poll device.
- the system can't be awakened by gpiokey or adckey when system in
freeze mode.

Solution:
- because of the input poll-device can't compatible freeze mode, we
replace it with input device.
- perfect wakeup operation when system works in freeze mode.

Verify:
test pass on ac200

Change-Id: I81c867da7325480712aa5903289e02ebb20d6f07
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2020-06-29 11:45:19 +09:00
Jiamin Ma
5c7241b365 rtc: fix fail to set wakealarm via standard way [1/1]
PD#SWPL-16508

Problem:
Fail to set wakealarm via standard way

Solution:
Enable the required read_alarm method for vrtc

Verify:
P212

Change-Id: I5a081c07a16ed7ecc158344671bd5077c6f55435
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2020-06-29 11:45:19 +09:00
Hong Guo
20dfc049ca supsend: clear wakeup reason after reusme. [1/1]
PD#SWPL-11035

Problem:
clear wakeup reason after reusme.

Solution:
clear wakeup reason after reusme.

Verify:
test pass on t962x2-x301 ,g12b_400

Change-Id: I19360dbf1c7a1cf9460417b00c8af6ebc818beba
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2020-06-29 11:45:19 +09:00
yuehu mi
00b12daa3a vrtc: add debug nodes, set alarm time and wake up system [1/1]
PD#TV-3085

Problem:
Add VRTC debug interface into TL1 Android P

Solution:
add wakeup and wakeup_time debug nodes

if you want to set alarm time, for example, set alarm wakeup time 10s
echo 10 > /sys/kernel/debug/wakeup_time

if you want to wake the system when an alarm is triggered, like this
echo 1 > /sys/kernel/debug/wakeup

Verify:
tl1_t962x2_x301

Change-Id: Ic40db0d9cb4ac2cab615206518d8db22b4095f72
Signed-off-by: yuehu mi <yuehu.mi@amlogic.com>
2020-06-29 11:45:18 +09:00
Xingyu Chen
943e50cc06 iio: adc: coverity defect cleanup [1/1]
PD#SWPL-13967

Problem:
unchecked return value of regmap_write

Solution:
to check the return value

Verify:
test pass on g12a

Change-Id: Ibb45e36d7c24f0e0ea8b14da75e887321ee5b791
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2020-06-29 11:45:18 +09:00
wenbiao zhang
dabc4d5f19 suspend: default suspend adc in freeze mode for power consumption [1/1]
PD#SWPL-8587

Problem:
in freeze mode detect adc key cause power consumption problem

Solution:
adckeyswitch from bootargs to decide whether resume by adc key
in freeze mode, default set to POWER_WAKEUP_NONE
adckeyswitch values POWER_WAKEUP_NONE/POWER_WAKEUP_POWER/POWER_WAKEUP_ANY

Verify:
X301

Change-Id: I2726c2ec394e1ffa528acb0862ef302983683b3b
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
2020-06-29 11:45:18 +09:00
Qiufang Dai
bc31836e60 suspend: remote: do not do suspend action under freeze mode [1/1]
PD#SWPL-2399

Problem:
Miss IR (power) key value when wakeup from freeze.

Solution:
Do not suspend/resume IR device under freeze mode

Verify:
x301_tl1

Change-Id: I7bdf0b847fa1a8b96bb2896426e15faf8143e820
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
2020-06-29 11:45:18 +09:00
wenbiao zhang
a062f11425 suspend: not do suspend action under freeze mode [1/1]
PD#TV-4213

Problem:
can't wake up by gpio/adc key when suspend into freeze mode

Solution:
not suspend gpio/adc when freeze

Verify:
X301

Change-Id: I32ff27aafebe35d8deb6e9b4d3daee686bbf90bc
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
2020-06-29 11:45:18 +09:00
Xingyu Chen
46960f383f saradc: saradc register initialization is incomplete [1/1]
PD#SWPL-4975

Problem:
some basic saradc registers are only initialized at bl2 stage, the ADC
value is abnormal when bl2 disable saradc init.

Solution:
to re-initialize the basic saradc registers in kernel.

Verify:
test pass on w400 and p212

Change-Id: Ie98e8789fd47cc43cafcb49d9862ccccbe1d9b66
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2020-06-29 11:45:18 +09:00
Jian Hu
ae8733d2f9 i2c: meson: add suspend/resume to set gpio status [1/1]
PD#SWPL-17544

Problem:
it will cause Current reverse irrigation if the gpio
to i2c function when the system is in STR mode

Solution:
keep the gpio to sleep mode to protect to slave device

there are two sleep mode for i2c pins, and it depends the
pull up power. we can choose the exact sleep mode.

1)pull up power is on, set the sleep mode to input
2)pull up power if off, set low the gpio

Verify:
verified on x301

Change-Id: Ie62f70449be2ff2cef7e3ab5c918ac379d861ca1
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2020-06-29 11:45:18 +09:00
zhenxin.pu
2bdb3aecd3 Thermal: SM1: thermal driver print error [2/2]
PD#SWPL-18939

Problem:
high temp restart fails to offline cpus

Solution:
make cpucore current state update at meson cdev probe

Verify:
S905X3_AC214

Change-Id: I124f7795045db89142b1fb4949163f5dd60416ea
Signed-off-by: zhenxin.pu <zhenxin.pu@amlogic.com>
2020-06-29 11:45:18 +09:00
Huan Biao
52ecb98133 tsensor: Coverity(upgraded) defect cleanup: thermal [1/1]
PD#SWPL-16529

Problem:
4.9 Coverity defect cleanup:thermal

Solution:
fix 4.9 Coverity defect cleanup:thermal

Verify:
test pass W400

Change-Id: I3ea920489aecef10188b67c59a18bd6821351453
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2020-06-29 11:45:18 +09:00
Lei Qian
a3f31cd7da thermal: merge from mainline
PD#SWPL-15312

Change-Id: Icc4841dbb5145c96eca8f54d1358d301b9f6b863
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2020-06-29 11:45:18 +09:00
Huan Biao
ca03c19082 thermal: update read sensor times for performance [1/1]
PD#SWPL-10836

Problem:
read sensor time too long

Solution:
read sensor once

Verify:
verified on t1 t962x2 x301

Change-Id: Iddf4c903ba8a3836666943adb5c02c5d287728df
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2020-06-29 11:45:18 +09:00
shikai.guo
a1bcd53c94 USB: Coverity(upgrade) defect cleanup [1/1]
PD#SWPL-16527

Problem:
   CONSTANT_EXPRESSION_RESULT,FORWARD_NULL,UNINIT

Solution:
   1.Delete invalid conditional statement
   2.Add else statement
   3.Local variable initialization

Verify:
   Coverity test pass

Change-Id: If13c8175fe923b353b52c61c2a824c6ef057b60a
Signed-off-by: shikai.guo <shikai.guo@amlogic.com>
2020-06-29 11:45:18 +09:00
Jianxin Pan
a9cd2cd9f1 debug: improve ftrace_ramoops for io trace [2/2]
PD#SWPL-6028

Problem:
improve ftrace_ramoops to debug bus hang

Solution:
1. in uboot
setenv initargs $initargs ramoops_io_en=1 loglevel=3;save;reset
2. in linux command line:
cat /sys/module/kernel/parameters/ramoops_io_en
to check if success.
3. after watchdog reboot, get trace data with:
cat /sys/fs/pstore/ftrace-ramoops-0

Verify:
TL1 x301

Change-Id: If1a2582b40a3ded31eedef5355eb0b8a5bf495c3
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2020-06-29 11:45:17 +09:00
Dianzhong Huo
a749b4dfa5 uart: change baud rate minimum value to 2400 [1/1]
PD#SH-327

Problem:
uart default min baud rate was set 9600, but PTZ PELCO-D
and PELCO-P need uart driver support 2400 and 4800 baud rate

Solution:
change baud rate minimum value to 2400

Verify:
Local

Change-Id: Iee20ea30a95b89f89a59fab95cecf7d559cbff51
Signed-off-by: Dianzhong Huo <dianzhong.huo@amlogic.com>
2020-06-29 11:45:17 +09:00
Yong Qin
de6cc6ebe2 cec: sm1 send bus level check fail [1/1]
PD#SWPL-17583

Problem:
cec send msg, cec bus level check fail.
the register define is not right.

Solution:
cec bus input register is PREG_PAD_GPIO3_I.

Verify:
SM1

Change-Id: I2eb49cab79a0141141ae3fafb704239c2c779485
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:17 +09:00
Yong Qin
630b68335a cec: cec b ARB timing cause cec 9.6.1 fail [1/1]
PD#SWPL-17658

Problem:
ARB timing setting is too large, it will cause
cec cts 9.6.1 fail

Solution:
reducec ARB timing

Verify:
sm1-AC214

Change-Id: I09f135c63f0f6f810719f6313b58bf84ebc574c1
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:17 +09:00
Yong Qin
3e916617cd cec: store msg after bootup from st [1/2]
PD#SWPL-15856

Problem:
Device auto power off set off, after pressing the DVD
play button to wake up the TV, the TV cannot
automatically switch to the HDMI channel

Solution:
driver store msg during bootup st. after app task
restart, put these msg to cec hal.

Verify:
tl1

Change-Id: Ifdf5e9d3ed8fbea7142b4f4ed94130e0535f0766
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:17 +09:00
Yong Qin
bb1fca4a7f cec: Add poll function for app chk new msg [1/1]
PD#SWPL-14177

Problem:
Add feature, for support poll function for check
cec new msg.

Solution:
Add feature, add poll api

Verify:
tl1

Change-Id: I1582438aa945201753fe04732a78f8f8d499dfca
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:17 +09:00
Yong Qin
5f76278b11 cec: avoid kmalloc fail, and system crash [1/1]
PD#OTT-4870

Problem:
avoid kmalloc fail, and system crash

Solution:
add pointer null pretect this.

Verify:
W400

Change-Id: I86cdb44eb82baa70077bbe7830c3e752115016ae
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:17 +09:00
Yong Qin
b7b25a0770 cec: sometime got err ack when send ping msg [1/1]
PD#SWPL-16005

Problem:
Sometime got err ack when send ping msg

Solution:
When ping and got no ack, but irq sts is tx done and
initial error, need return a err code. and app leayer
will retry ping msg.

Verify:
tl1

Change-Id: I0aea99878bb3924f6699d34821de0740c223f933
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:17 +09:00