platform/x86: int3472: Use actual clock frequency for DSM method
Subsystems (2)
Sergey Lebedev
Tested-byHi Hao,
This fixes a camera on the Surface Pro 11 with Intel (Lunar Lake), for your v2:
https://lore.kernel.org/all/[email protected]/
Its infrared sensor, an ST VD55G0 (SMO55F0), has 24 MHz in its SSDB, and INT3472 turns its clock on through the _DSM with 1, 19.2 MHz. The sensor driver sets the sensor up for 24 MHz, so everything the sensor derives runs at four fifths: it streamed at 47.31 fps where its configuration gives 59.14, which also puts its MIPI output at 633.6 Mbps, below the sensor's minimum of 750. With your v2 on media next and my vd55g0 driver, the sensor runs at 59.14 fps in every mode, as computed. A value of 0 did not change the clock here either, as you saw on the oscilloscope.
Would you send a v3 with the Fixes tag and the note on 0 and 2 that Ilpo asked for? I will repeat the Tested-by on it. If you are busy, I can resend it with your authorship.
Sergey
Hans de Goede
maintainerHi,
Quoted 16 lines · Sergey Lebedev
Hi Hao,
This fixes a camera on the Surface Pro 11 with Intel (Lunar Lake), for your v2:
https://lore.kernel.org/all/[email protected]/Its infrared sensor, an ST VD55G0 (SMO55F0), has 24 MHz in its SSDB, and INT3472 turns its clock on through the
_DSMwith 1, 19.2 MHz. The sensor driver sets the sensor up for 24 MHz, so everything the sensor derives runs at four fifths: it streamed at 47.31 fps where its configuration gives 59.14, which also puts its MIPI output at 633.6 Mbps, below the sensor's minimum of 750. With your v2 on media next and my vd55g0 driver, the sensor runs at 59.14 fps in every mode, as computed. A value of 0 did not change the clock here either, as you saw on the oscilloscope.
Quoted 5 lines
Would you send a v3 with the Fixes tag and the note on 0 and 2 that Ilpo asked for? I will repeat the Tested-by on it. If you are busy, I can resend it with your authorship.
Note that from now on int3472 patches are routed through the media-committers tree since these are related to camera support:
If you send a new version please base it on top of media-committers/next .
Regards,
Hans
Hi Hans,
Thank you, noted: if I resend it, it will be based on media-committers next. The v2 applies to it unchanged, at d7e7bca7169, which is the tree I tested it on.
Sergey