]> asedeno.scripts.mit.edu Git - linux.git/commit
media: sun6i: Fix CSI regmap's max_register
authorChen-Yu Tsai <wens@csie.org>
Sun, 3 Feb 2019 16:03:56 +0000 (11:03 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 18 Feb 2019 20:24:27 +0000 (15:24 -0500)
commitd31b282e2c0de9c7fb113516820340251f03a625
tree3ca5755db21ca7975375ba3a9f8be6ddec58f8ff
parentb8eb83457e79fc745abea3abcd6c95b1428a05ee
media: sun6i: Fix CSI regmap's max_register

max_register is currently set to 0x1000. This is beyond the mapped
address range of the hardware, so attempts to dump the regmap from
debugfs would trigger a kernel exception.

Furthermore, the useful registers only occupy a small section at the
beginning of the full range. Change the value to 0x9c, the last known
register on the V3s and H3.

On the A31, the register range is extended to support additional
capture channels. Since this is not yet supported, ignore it for now.

Fixes: 5cc7522d8965 ("media: sun6i: Add support for Allwinner CSI V3s")
Cc: <stable@vger.kernel.org>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c