lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPybu_1R_Ph7ELfX8gTgJi0E2YebjZj90eUc1KhAFhL_dfe6pg@mail.gmail.com>
Date: Tue, 11 Mar 2025 22:25:28 +0100
From: Ricardo Ribalda Delgado <ribalda@...nel.org>
To: git@...tzsch.eu
Cc: Sakari Ailus <sakari.ailus@...ux.intel.com>, 
	Mauro Carvalho Chehab <mchehab@...nel.org>, ~postmarketos/upstreaming@...ts.sr.ht, 
	phone-devel@...r.kernel.org, linux-media@...r.kernel.org, 
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH RESEND 4/4] media: i2c: imx214: Add support for 23.88MHz clock

On Sat, Mar 8, 2025 at 10:48 PM André Apitzsch via B4 Relay
<devnull+git.apitzsch.eu@...nel.org> wrote:
>
> From: André Apitzsch <git@...tzsch.eu>
>
> Qualcomm MSM8916 devices only provide an external clock of 23.88MHz.
> Make the sensor usable by those devices by adding support for this
> frequency.
>

Acked-by: Ricardo Ribalda <ribalda@...omium.org>
and after this patch  imx214->clk_params = &imx214_clk_params[1];

Thanks for the set!


> Signed-off-by: André Apitzsch <git@...tzsch.eu>
> ---
>  drivers/media/i2c/imx214.c | 12 ++++++++++--
>  1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/i2c/imx214.c b/drivers/media/i2c/imx214.c
> index c3d55259d6fd1c4ca96f52833864bdfe6bedf13a..e24c76e01ab5070c073d082b1a2969cff3e17f9f 100644
> --- a/drivers/media/i2c/imx214.c
> +++ b/drivers/media/i2c/imx214.c
> @@ -30,7 +30,10 @@
>
>  #define IMX214_REG_FAST_STANDBY_CTRL   CCI_REG8(0x0106)
>
> +#define IMX214_CLK_FREQ_23880KHZ       23880000
>  #define IMX214_CLK_FREQ_24000KHZ       24000000
> +
> +#define IMX214_LINK_FREQ_597MHZ                597000000
>  #define IMX214_LINK_FREQ_600MHZ                600000000
>  /* Keep wrong link frequency for backward compatibility */
>  #define IMX214_DEFAULT_LINK_FREQ_LEGACY        480000000
> @@ -233,6 +236,7 @@ static const char * const imx214_supply_name[] = {
>  #define IMX214_NUM_SUPPLIES ARRAY_SIZE(imx214_supply_name)
>
>  static const s64 link_freq[] = {
> +       IMX214_LINK_FREQ_597MHZ,
>         IMX214_LINK_FREQ_600MHZ,
>  };
>
> @@ -242,6 +246,10 @@ struct imx214_clk_params {
>  };
>
>  static const struct imx214_clk_params imx214_clk_params[] = {
> +       {
> +               .clk_freq = IMX214_CLK_FREQ_23880KHZ,
> +               .link_freq = IMX214_LINK_FREQ_597MHZ,
> +       },
>         {
>                 .clk_freq = IMX214_CLK_FREQ_24000KHZ,
>                 .link_freq = IMX214_LINK_FREQ_600MHZ,
> @@ -1320,8 +1328,7 @@ static int imx214_parse_fwnode(struct device *dev, struct imx214 *imx214)
>
>         if (i == bus_cfg.nr_of_link_frequencies)
>                 ret = dev_err_probe(dev, -EINVAL,
> -                                   "link-frequencies %d not supported, please review your DT\n",
> -                                   IMX214_LINK_FREQ_600MHZ);
> +                                   "provided link-frequencies not supported, please review your DT\n");
>
>  done:
>         v4l2_fwnode_endpoint_free(&bus_cfg);
> @@ -1359,6 +1366,7 @@ static int imx214_probe(struct i2c_client *client)
>         }
>
>         switch (xclk_freq) {
> +       case IMX214_CLK_FREQ_23880KHZ:
>         case IMX214_CLK_FREQ_24000KHZ:
>                 if (imx214->clk_params->clk_freq != xclk_freq)
>                         return dev_err_probe(imx214->dev, -EINVAL,
>
> --
> 2.48.1
>
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ