Re: [PATCH] scsi: ufs: host: mediatek: require CONFIG_PM
From: AngeloGioacchino Del Regno
Date: Mon Feb 02 2026 - 06:48:00 EST
Il 02/02/26 10:50, Arnd Bergmann ha scritto:
From: Arnd Bergmann <arnd@xxxxxxxx>
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@xxxxxxxx>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>