summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/vimc/vimc-scaler.c
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2019-02-03 11:03:56 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-23 20:11:38 +0100
commit202ed62dea70ce1b87db2007384b6ef2cfc13d47 (patch)
treecb8f72730106322b84f0b782c97c9220045c73d4 /drivers/media/platform/vimc/vimc-scaler.c
parent1d433d48516e387de7c3cf043b56744606f07c17 (diff)
downloadtalos-obmc-linux-202ed62dea70ce1b87db2007384b6ef2cfc13d47.tar.gz
talos-obmc-linux-202ed62dea70ce1b87db2007384b6ef2cfc13d47.zip
media: sun6i: Fix CSI regmap's max_register
commit d31b282e2c0de9c7fb113516820340251f03a625 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-scaler.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud