]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: ipu3-cio2: Fix pixel-rate derived link frequency
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 15 Feb 2021 07:55:12 +0000 (08:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:49:55 +0000 (10:49 +0200)
commitff29abfb02141cd666edfc31febb36bfcf399566
tree6b5bf97506d0ccf620a1f6786838c2e1d184fde5
parent8a99d2880cd1efe4c6171b4161851c3564cbd439
media: ipu3-cio2: Fix pixel-rate derived link frequency

[ Upstream commit a7de6eac6f6f73d48d97a6c93032107775f4593b ]

The driver uses v4l2_get_link_freq() helper to obtain the link frequency
using the LINK_FREQ but also the PIXEL_RATE control. The divisor for the
pixel rate derived link frequency was wrong, missing the bus uses double
data rate. Fix this.

Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Fixes: 4b6c129e87a3 ("media: ipu3-cio2: Use v4l2_get_link_freq helper")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/pci/intel/ipu3/ipu3-cio2.c