From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: Hans de Goede <hansg@kernel.org>
Cc: "Sergey Lebedev" <lsa.uz@pm.me>,
"Daniel Scally" <dan.scally@ideasonboard.com>,
"Hao Yao" <hao.yao@intel.com>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Bingbu Cao" <bingbu.cao@amd.com>,
"Fernando Rimoli" <fernandorimoli11@gmail.com>,
platform-driver-x86@vger.kernel.org, linux-media@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] platform/x86: int3472: Use actual clock frequency for DSM method
Date: Wed, 25 Nov 2026 14:05:55 +0200 [thread overview]
Message-ID: <awbPI9LPXFUpBinZ@kekkonen.localdomain> (raw)
In-Reply-To: <84ecba76-5fe7-4bb2-b18f-efc7cda2247c@kernel.org>
Hi Hans, Sergey,
On Wed, Nov 25, 2026 at 12:16:08PM +0100, Hans de Goede wrote:
> Hi,
>
> On 25-Nov-26 10:09, Sergey Lebedev wrote:
> > From: Hao Yao <hao.yao@intel.com>
> >
> > The third argument (args[2]) to the _DSM method was hardcoded to 1,
> > which selects 19.2MHz. A sensor whose SSDB asks for 24MHz therefore
> > runs from 19.2MHz, and everything it derives from its clock runs at
> > four fifths of the expected rate.
> >
> > Pass the frequency from the SSDB instead, with 19.2MHz as the default.
> > 1 selects 19.2MHz everywhere, but the value for 24MHz depends on the
> > platform. Where the frequency field is one bit wide (Tiger Lake, Jasper
> > Lake, Alder Lake, Raptor Lake) it is 0, and 3 would also set the clock's
> > enable bit again when the clock is turned off. From Meteor Lake on the
> > field is two bits wide and it is 3; 0 and 2 leave the clock unchanged
> > there, as measured with an oscilloscope.
> >
> > Fixes: e4543de8b6ff ("platform/x86: int3472: Evaluate device's _DSM method to control imaging clock")
> > Signed-off-by: Hao Yao <hao.yao@intel.com>
> > [Sergey: pick the 24MHz value per platform]
> > Signed-off-by: Sergey Lebedev <lsa.uz@pm.me>
>
> Thanks, patch looks good to me:
>
> Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Thanks. I'll add Cc: stable when applying this, too.
--
Regards,
Sakari Ailus
prev parent reply other threads:[~2026-11-25 12:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 9:09 [PATCH v3] platform/x86: int3472: Use actual clock frequency for DSM method Sergey Lebedev
2026-11-25 11:16 ` Hans de Goede
2026-11-25 12:05 ` Sakari Ailus [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awbPI9LPXFUpBinZ@kekkonen.localdomain \
--to=sakari.ailus@linux.intel.com \
--cc=bingbu.cao@amd.com \
--cc=dan.scally@ideasonboard.com \
--cc=fernandorimoli11@gmail.com \
--cc=hansg@kernel.org \
--cc=hao.yao@intel.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=lsa.uz@pm.me \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox