summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>2022-06-02 10:45:50 +0200
committerQuentin Schulz <quentin.schulz@theobroma-systems.com>2023-02-02 10:49:12 +0100
commitf0f3dad2add696f4d8bd357b1155687d568ae88b (patch)
treee73d3933341be2694f635c039c68d67be04e485f
parentb0a0bec8891964dc8e5af20f3ce4e47349e709b8 (diff)
TSD: media: i2c: ov5675: do not fail on invalid clock rate
The clock is almost 19.2MHz but not exactly, so the camera sensor driver complains about it and refuses to probe. However, the HW seems to be working just fine without this check, so let's remove it. [TSD] The clock is at 19.16MHz but still works somehow. There's no way to get exactly 19.2MHz on this SoC since only an integer divider is available and the clocks are either running at 800/596/1000MHz. Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
-rw-r--r--drivers/media/i2c/ov5675.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ov5675.c b/drivers/media/i2c/ov5675.c
index 5f70ead2dd47..cfbf82e6d5c3 100644
--- a/drivers/media/i2c/ov5675.c
+++ b/drivers/media/i2c/ov5675.c
@@ -1248,7 +1248,7 @@ static int ov5675_get_hwcfg(struct ov5675 *ov5675, struct device *dev)
if (xvclk_rate != OV5675_XVCLK_19_2) {
dev_err(dev, "external clock rate %u is unsupported",
xvclk_rate);
- return -EINVAL;
+ /* return -EINVAL; */
}
ov5675->reset_gpio = devm_gpiod_get_optional(dev, "reset",