drivers: media: cfe: Set the CSI-2 link frequency correctly
authorNaushir Patuck <naush@raspberrypi.com>
Wed, 1 Nov 2023 13:25:54 +0000 (13:25 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:10 +0000 (11:35 +0000)
commit24ac27efe9a25903a41604c5f28eec9f3079f663
tree3c73c5d5d7bd0ba902cfce5512ae314ab5f1f3c2
parent161d359305df7ee41c2b60439cdee78e043cffd6
drivers: media: cfe: Set the CSI-2 link frequency correctly

Use the sensor provided link frequency to set the DPHY timing parameters
on stream_on. This replaces the hard-coded 999 MHz value currently being
used. As a fallback, revert to the original 999 Mhz link frequency.

As a drive-by, fix a 80-character line formatting error.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
drivers/media/platform/raspberrypi/rp1_cfe/cfe.c