[PATCH v15 13/23] scsi: ufs: mediatek: Remove vendor kernel quirks cruft
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Thu Nov 19 07:17:51 PST 2026
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] scsi: ufs: mediatek: dead VCC definitions left in
ufs-mediatek-sip.h
--
commit 6eb15fdb7923519860f06ff3289f50b279237ee3
Author: Nicolas Frattaroli <nicolas.frattaroli at collabora.com>
scsi: ufs: mediatek: Remove vendor kernel quirks cruft
This commit removes the ufs_mtk_vreg_fix_vcc() and
ufs_mtk_vreg_fix_vccqx() regulator fixup helpers and their calls from
ufs_mtk_fixup_dev_quirks().
> diff --git a/drivers/ufs/host/ufs-mediatek.c b/drivers/ufs/host/ufs-mediatek.c
> index 907b5fe6eb22c..fec0fb24e7a2c 100644
> --- a/drivers/ufs/host/ufs-mediatek.c
> +++ b/drivers/ufs/host/ufs-mediatek.c
> @@ -1068,73 +1068,6 @@ static void ufs_mtk_init_clocks(struct ufs_hba *hba)
> }
> }
>
> -#define MAX_VCC_NAME 30
> -static int ufs_mtk_vreg_fix_vcc(struct ufs_hba *hba)
> -{
> - struct ufs_vreg_info *info = &hba->vreg_info;
> - struct device_node *np = hba->dev->of_node;
> - struct device *dev = hba->dev;
> - char vcc_name[MAX_VCC_NAME];
> - struct arm_smccc_res res;
> - int err, ver;
> -
> - if (info->vcc)
> - return 0;
> -
> - if (of_property_read_bool(np, "mediatek,ufs-vcc-by-num")) {
> - ufs_mtk_get_vcc_num(res);
> - if (res.a1 > UFS_VCC_NONE && res.a1 < UFS_VCC_MAX)
> - snprintf(vcc_name, MAX_VCC_NAME, "vcc-opt%lu", res.a1);
> - else
> - return -ENODEV;
[Severity: Low]
Should UFS_MTK_SIP_GET_VCC_NUM, enum ufs_mtk_vcc_num, and
ufs_mtk_get_vcc_num() in drivers/ufs/host/ufs-mediatek-sip.h also be
removed now that ufs_mtk_vreg_fix_vcc() was their only user?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261119-mt8196-ufs-v15-0-aae1eb0382e8@collabora.com?part=13
More information about the linux-phy
mailing list