Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: i2c: vd55g1: Setup sensor external clock before patching

Proper clock configuration is required to advance through FSM states.
Prior than this having a different clock value than default sensor's
value was used (12 MHz) could prevent the sensor from booting.

Signed-off-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>

authored by

Benjamin Mugnier and committed by
Hans Verkuil
df2f8fd9 5931eed3

+3 -2
+3 -2
drivers/media/i2c/vd55g1.c
··· 1038 1038 if (ret < 0) 1039 1039 return ret; 1040 1040 1041 - vd55g1_write(sensor, VD55G1_REG_EXT_CLOCK, sensor->xclk_freq, &ret); 1042 - 1043 1041 /* Configure output */ 1044 1042 vd55g1_write(sensor, VD55G1_REG_MIPI_DATA_RATE, 1045 1043 sensor->mipi_rate, &ret); ··· 1610 1612 dev_err(dev, "Sensor detect failed %d\n", ret); 1611 1613 goto disable_clock; 1612 1614 } 1615 + 1616 + /* Setup clock now to advance through system FSM states */ 1617 + vd55g1_write(sensor, VD55G1_REG_EXT_CLOCK, sensor->xclk_freq, &ret); 1613 1618 1614 1619 ret = vd55g1_patch(sensor); 1615 1620 if (ret) {