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: <n5wknqkx2hsf5jxmrp2f6enpftdz4k3potnsfwi6cr7v36xdc5@om4cfb6jqoav>
Date: Wed, 7 Jan 2026 17:46:01 +0100
From: Mehdi Djait <mehdi.djait@...ux.intel.com>
To: david@...t.cz
Cc: Sakari Ailus <sakari.ailus@...ux.intel.com>, 
	Mauro Carvalho Chehab <mchehab@...nel.org>, linux-media@...r.kernel.org, linux-kernel@...r.kernel.org, 
	phone-devel@...r.kernel.org
Subject: Re: [PATCH] media: ccs: Accommodate C-PHY into the calculation

Hi David,

Thank you for the patch

On Tue, Jan 06, 2026 at 04:14:05PM +0100, David Heidelberg via B4 Relay wrote:
> From: David Heidelberg <david@...t.cz>
> 
> We need to set correct mode for PLL to calculate correct frequency.
> Signalling mode is known at this point, so use it for that.
> 
> Fixes: 47b6eaf36eba ("media: ccs-pll: Differentiate between CSI-2 D-PHY and C-PHY")
> Signed-off-by: David Heidelberg <david@...t.cz>
> ---
>  drivers/media/i2c/ccs/ccs-core.c | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/media/i2c/ccs/ccs-core.c b/drivers/media/i2c/ccs/ccs-core.c
> index f8523140784c7..2d689e47ed094 100644
> --- a/drivers/media/i2c/ccs/ccs-core.c
> +++ b/drivers/media/i2c/ccs/ccs-core.c
> @@ -3425,7 +3425,14 @@ static int ccs_probe(struct i2c_client *client)
>  	sensor->scale_m = CCS_LIM(sensor, SCALER_N_MIN);
>  
>  	/* prepare PLL configuration input values */
> -	sensor->pll.bus_type = CCS_PLL_BUS_TYPE_CSI2_DPHY;
> +	switch (sensor->hwcfg.csi_signalling_mode) {
> +	case CCS_CSI_SIGNALING_MODE_CSI_2_CPHY:
> +		sensor->pll.bus_type = CCS_PLL_BUS_TYPE_CSI2_CPHY;
> +		break;
> +	case CCS_CSI_SIGNALING_MODE_CSI_2_DPHY:
> +		sensor->pll.bus_type = CCS_PLL_BUS_TYPE_CSI2_DPHY;
> +		break;

I think it is safer to add a default case here

--
Kind Regards
Mehdi Djait

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ