Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion drivers/media/i2c/isx031.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ struct isx031 {

struct isx031_platform_data *platform_data;
struct gpio_desc *reset_gpio;
struct gpio_desc *fsin_gpio;

/* Streaming on/off */
bool streaming;
Expand Down Expand Up @@ -904,7 +905,8 @@ static int isx031_probe(struct i2c_client *client)

isx031->reset_gpio = devm_gpiod_get_optional(&client->dev, "reset",
GPIOD_OUT_LOW);

isx031->fsin_gpio = devm_gpiod_get_optional(&client->dev, "fsin",
GPIOD_OUT_LOW);
Comment on lines 906 to +909

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In isx031_resume, maybe also need set fsin_gpio.

Copy link
Author

@ijulipan ijulipan Nov 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we tested this driver without adding in isx031_resume it was able to stream fine during our s3 and s4 PM stress test.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The frame_sync pin is low level effective?

if (IS_ERR(isx031->reset_gpio))
return -EPROBE_DEFER;
else if (isx031->reset_gpio == NULL)
Expand Down
3 changes: 3 additions & 0 deletions drivers/media/i2c/max9x/serdes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1859,12 +1859,15 @@ static int max9x_registered(struct v4l2_subdev *sd)
.table = {
GPIO_LOOKUP("", 0, "reset",
GPIO_ACTIVE_LOW),
GPIO_LOOKUP("", 7, "fsin",
GPIO_ACTIVE_LOW),
{}
},
};

sensor_gpios.dev_id = dev_id;
sensor_gpios.table[0].key = common->gpio_chip.label;
sensor_gpios.table[1].key = common->gpio_chip.label;

gpiod_add_lookup_table(&sensor_gpios);

Expand Down