On Sun Nov 9, 2025 at 10:39 AM CET, David Heidelberg via B4 Relay wrote:
> From: David Heidelberg <[email protected]>
>
> C-PHY mode is now supported, so the endpoint bus-type restriction to
> D-PHY can be removed.
>
> Signed-off-by: David Heidelberg <[email protected]>
> ---
>  drivers/media/platform/qcom/camss/camss.c | 9 ---------
>  1 file changed, 9 deletions(-)
>
> diff --git a/drivers/media/platform/qcom/camss/camss.c 
> b/drivers/media/platform/qcom/camss/camss.c
> index 248aa6b21b5ad..1408e8a03f0bd 100644
> --- a/drivers/media/platform/qcom/camss/camss.c
> +++ b/drivers/media/platform/qcom/camss/camss.c
> @@ -4044,15 +4044,6 @@ static int camss_of_parse_endpoint_node(struct device 
> *dev,
>       if (ret)
>               return ret;
>  
> -     /*
> -      * Most SoCs support both D-PHY and C-PHY standards, but currently only
> -      * D-PHY is supported in the driver.
> -      */
> -     if (vep.bus_type != V4L2_MBUS_CSI2_DPHY) {

How about just adding && != V4L2_MBUS_CSI2_CPHY to it? Good to check in
any case imo.

Regards
Luca

> -             dev_err(dev, "Unsupported bus type %d\n", vep.bus_type);
> -             return -EINVAL;
> -     }
> -
>       csd->interface.csiphy_id = vep.base.port;
>  
>       mipi_csi2 = &vep.bus.mipi_csi2;


Reply via email to