amvecm: add addr protect for register program [1/1]
authorXihai Zhu <xihai.zhu@amlogic.com>
Thu, 19 Sep 2019 02:04:02 +0000 (22:04 -0400)
committerTao Zeng <tao.zeng@amlogic.com>
Thu, 19 Sep 2019 03:48:11 +0000 (20:48 -0700)
commit9585477b0d08c80585af23eee969cf72262de0dc
tree4997a3f4732a5a4e1ce711469710c960c1633737
parent82d71fb81ea15c6152b23c44949b4d50c4eef6d9
amvecm: add addr protect for register program [1/1]

PD#SWPL-14333

Problem:
invalid address is allowed for register program
which cause kernel panic

Solution:
add protection, programming on invalid addr will
be terminated

Verify:
tl1

Change-Id: I44bedec256ee5c386b53188fb2d8e40ae8c3f553
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
drivers/amlogic/iomap/iomap.c
drivers/amlogic/media/common/arch/registers/register_map.c