Re: [PATCH v4 07/25] scsi: ufs: mediatek: Rework 0.9V regulator

Peter Wang (王信友)
2025-12-23T09:35:47Z

On Thu, 2025-12-18 at 13:54 +0100, Nicolas Frattaroli wrote:
>
> +static int ufs_mtk_get_supplies(struct ufs_mtk_host *host)
> +{
> +       struct device *dev = host->hba->dev;
> +       const struct ufs_mtk_soc_data *data =
> of_device_get_match_data(dev);
> +
> +       if (!data || !data->has_avdd09)
> +               return 0;
>

Hi Nicolas,

It seems that has_avdd09 is not necessary, because if the
platform does not support avdd09, it will return an error
(-ENODEV) and bypass the avdd09 flow, right?

Thanks
Peter