[PATCH] scsi: ufs: host: mediatek: require CONFIG_PM
AngeloGioacchino Del Regno
angelogioacchino.delregno at collabora.com
Mon Feb 2 03:42:33 PST 2026
Il 02/02/26 10:50, Arnd Bergmann ha scritto:
> From: Arnd Bergmann <arnd at arndb.de>
>
> The added print statement from a recent fix causes the
> driver to fail building when CONFIG_PM is disabled:
>
> drivers/ufs/host/ufs-mediatek.c: In function 'ufs_mtk_resume':
> drivers/ufs/host/ufs-mediatek.c:1890:40: error: 'struct dev_pm_info' has no member named 'request'
> 1890 | hba->dev->power.request,
>
> It seems unlikely that the driver can work at all without
> CONFIG_PM, so just add a dependency and remove the existing
> ifdef checks, rather than adding another ifdef.
>
> Fixes: 15ef3f5aa822 ("scsi: ufs: host: mediatek: Enhance recovery on resume failure")
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
More information about the Linux-mediatek
mailing list