Skip to content

Commit

Permalink
media: i2c: ov02c10: Probe defer while chip id is zero
Browse files Browse the repository at this point in the history
The chip id may be zero while the resource is not ready.
Put the driver to probe defer for retry.

Signed-off-by: Kevin Cheng <[email protected]>
  • Loading branch information
kevincheng-intel committed Dec 3, 2024
1 parent 0ad4988 commit 1db3cd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/media/i2c/ov02c10.c
Original file line number Diff line number Diff line change
Expand Up @@ -1511,6 +1511,9 @@ static int ov02c10_identify_module(struct ov02c10 *ov02c10)
if (ret)
return ret;

if (val == 0)
return -EPROBE_DEFER;

if (val != OV02C10_CHIP_ID) {
dev_err(&client->dev, "chip id mismatch: %x!=%x",
OV02C10_CHIP_ID, val);
Expand Down

0 comments on commit 1db3cd7

Please sign in to comment.