]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: rockchip: phy-rockchip-inno-csidphy: allow writes to grf register 0
authorMichael Riesch <michael.riesch@collabora.com>
Wed, 3 Sep 2025 17:04:52 +0000 (19:04 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 10 Sep 2025 15:52:28 +0000 (21:22 +0530)
commit8c7c19466c854fa86b82d2148eaa9bf0e6531423
tree5e48285154cf6d5944d8bc54474645bd03c6defc
parent5072b8e98eef4685a5a9a8bae56072cb65a2ef69
phy: rockchip: phy-rockchip-inno-csidphy: allow writes to grf register 0

The driver for the Rockchip MIPI CSI-2 DPHY uses GRF register offset
value 0 to sort out undefined registers. However, the RK3588 CSIDPHY GRF
this offset is perfectly fine (in fact, register 0 is the only one in
this register file).
Introduce a boolean variable to indicate valid registers and allow writes
to register 0.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Michael Riesch <michael.riesch@collabora.com>
Link: https://lore.kernel.org/r/20250616-rk3588-csi-dphy-v4-4-a4f340a7f0cf@collabora.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/rockchip/phy-rockchip-inno-csidphy.c