media: camss: csiphy: Set rate on csiX_phy clock on SDM630/660
authorAngeloGioacchino Del Regno <kholk11@gmail.com>
Thu, 22 Oct 2020 17:47:06 +0000 (19:47 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 25 Nov 2020 14:02:44 +0000 (15:02 +0100)
commit4863b93cfd2dfe88557f820b3399c3fa2163ec43
treecaf75f66572845f1f725826fb79f4824359ac654
parente486781b74cc611d85e66ff0fc6324f65b25196c
media: camss: csiphy: Set rate on csiX_phy clock on SDM630/660

The SDM630/660 SoCs (and variants) have another clock source
for the PHY, which must be set to a rate that's equal or
greater than the CSI PHY timer clock: failing to do this
will produce PHY overflows when trying to get a stream from
a very high bandwidth camera sensor and outputting no frame
or a partial one.

Since I haven't found any usecase in which the csiX_phy
clock needs to be higher than the csiXphy_timer, let's just
set the same rate on both, which seems to work just perfect.

Signed-off-by: AngeloGioacchino Del Regno <kholk11@gmail.com>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/camss/camss-csiphy.c
drivers/media/platform/qcom/camss/camss-csiphy.h