Re: [PATCH v3] media: qcom: camss: select GENERIC_PHY_MIPI_DPHY
From: Loic Poulain
Date: Wed Nov 04 2026 - 03:18:18 EST
On Wed, Nov 4, 2026 at 2:11 AM Shuai Liu <847807867@xxxxxx> wrote:
>
> Commit 0ee6c8a921b1 ("media: qcom: camss: Add support for PHY API
> devices") added a call to phy_mipi_dphy_get_default_config_for_hsclk()
> in camss-csiphy.c but did not select GENERIC_PHY_MIPI_DPHY, the
> invisible bool gating phy-core-mipi-dphy.c where that helper lives.
>
> With CONFIG_VIDEO_QCOM_CAMSS=y and no other driver pulling in
> GENERIC_PHY_MIPI_DPHY, the build fails at link time:
>
> camss-csiphy.c:(.text+0x51d): undefined reference to
> `phy_mipi_dphy_get_default_config_for_hsclk'
>
> Select GENERIC_PHY_MIPI_DPHY and drop the explicit "select GENERIC_PHY",
> which is redundant as GENERIC_PHY_MIPI_DPHY selects GENERIC_PHY
> transitively (drivers/phy/Kconfig). This matches the other MIPI D-PHY
> consumers such as rkisp1, mali-c55 and sun6i-mipi-csi2.
>
> Fixes: 0ee6c8a921b1 ("media: qcom: camss: Add support for PHY API devices")
> Signed-off-by: Shuai Liu <847807867@xxxxxx>
> Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@xxxxxxxxxx>
Please do not submit a new revision solely to update tags when there
are no other changes.
Reviewed-by: Loic Poulain <loic.poulain@xxxxxxxxxxxxxxxx>
> ---
> Changes in v3:
> - collect Reviewed-by tag
>
> Changes in v2:
> - drop the redundant "select GENERIC_PHY", as suggested by Loic
> Poulain; GENERIC_PHY_MIPI_DPHY selects it transitively
> ---
> drivers/media/platform/qcom/camss/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/platform/qcom/camss/Kconfig b/drivers/media/platform/qcom/camss/Kconfig
> index b51745c942c9..e0cef2cdd0a1 100644
> --- a/drivers/media/platform/qcom/camss/Kconfig
> +++ b/drivers/media/platform/qcom/camss/Kconfig
> @@ -7,5 +7,5 @@ config VIDEO_QCOM_CAMSS
> select VIDEO_V4L2_SUBDEV_API
> select VIDEOBUF2_DMA_SG
> select V4L2_FWNODE
> - select GENERIC_PHY
> + select GENERIC_PHY_MIPI_DPHY
> imply PHY_QCOM_MIPI_CSI2
> --
> 2.43.0
>