linux/drivers/media/platform/sunxi
Chen-Yu Tsai e1e1cdbc64 media: sun4i-csi: Fix [HV]sync polarity handling
[ Upstream commit 1948dcf0f9 ]

The Allwinner camera sensor interface has a different definition of
[HV]sync. While the timing diagram uses the names HSYNC and VSYNC,
the note following the diagram and register names use HREF and VREF.
Combined they imply the hardware uses either [HV]REF or inverted
[HV]SYNC. There are also registers to set horizontal skip lengths
in pixels and vertical skip lengths in lines, also known as back
porches.

Fix the polarity handling by using the opposite polarity flag for
the checks. Also rename `[hv]sync_pol` to `[hv]ref_pol` to better
match the hardware register description.

Fixes: 577bbf23b7 ("media: sunxi: Add A10 CSI driver")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-02-24 08:36:25 +01:00
..
sun4i-csi media: sun4i-csi: Fix [HV]sync polarity handling 2020-02-24 08:36:25 +01:00
sun6i-csi media: Remove dev_err() usage after platform_get_irq() 2019-08-07 17:08:33 -03:00
Kconfig media: sunxi: Add A10 CSI driver 2019-08-23 07:31:35 -03:00
Makefile media: sunxi: Add A10 CSI driver 2019-08-23 07:31:35 -03:00