diff options
author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2023-08-03 15:15:47 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-08-14 21:27:58 +0300 |
commit | da57d1201eff8cc0bfce6cf16b3e5e9d47c02af1 (patch) | |
tree | d68a6aa6fb6a09c7007a597f59e7f0088a91a40c /drivers/media/i2c | |
parent | 1cf8ddccbdf50f279e8715ea0ddbc0802dcfe7e7 (diff) | |
download | linux-da57d1201eff8cc0bfce6cf16b3e5e9d47c02af1.tar.xz |
media: i2c: ds90ub960: Fix PLL config for 1200 MHz CSI rate
smatch reports:
drivers/media/i2c/ds90ub960.c:1788 ub960_init_tx_ports() error: uninitialized symbol 'pll_div'.
This is caused by 'pll_div' not being set for 1200 MHz CSI rate. Set the
'pll_div' correctly.
Closes: https://lore.kernel.org/all/8d6daeb1-b62a-bbb2-b840-8759c84f2085@xs4all.nl/
Fixes: afe267f2d368 ("media: i2c: add DS90UB960 driver")
Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/ds90ub960.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/i2c/ds90ub960.c b/drivers/media/i2c/ds90ub960.c index f619c23e084a..8ba5750f5a23 100644 --- a/drivers/media/i2c/ds90ub960.c +++ b/drivers/media/i2c/ds90ub960.c @@ -1771,6 +1771,7 @@ static int ub960_init_tx_ports(struct ub960_data *priv) break; case MHZ(1200): speed_select = 1; + pll_div = 0x18; break; case MHZ(800): speed_select = 2; |