[PATCH v15 16/23] scsi: ufs: mediatek: Rework _ufs_mtk_clk_scale error paths

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Nov 19 07:19:48 PST 2026


Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] scsi: ufs: mediatek: missing Fixes trailer for
  _ufs_mtk_clk_scale() fixes
--

commit 4421ac01b44e9c03d7a805d55558f0e6f608a409
Author: Nicolas Frattaroli <nicolas.frattaroli at collabora.com>

> scsi: ufs: mediatek: Rework _ufs_mtk_clk_scale error paths
>
> Errors should be printed at the correct log level. Additionally, it
> looks like some "goto out"'s were omitted in the scale up case, which
> looks like a mistake, as the scale down branch of the code does use
> them.
>
> Rework the error messages to make them nicer and at the correct
> verbosity, and add the missing gotos.
>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
> Reviewed-by: Peter Wang <peter.wang at mediatek.com>
> Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli at collabora.com>
> Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud at collabora.com>

[Severity: Low]
In addition to the missing goto out when clk_set_parent(clki->clk, ...)
fails during scale-up, this patch fixes a clki->clk prepare/enable leak
when clk_prepare_enable(fde_clki->clk) fails.  Both issues were introduced
by 5e5976f5242d ("scsi: ufs: host: mediatek: Support FDE (AES) clock
scaling").  Should this include:

  Fixes: 5e5976f5242d ("scsi: ufs: host: mediatek: Support FDE (AES) clock scaling")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261119-mt8196-ufs-v15-0-aae1eb0382e8@collabora.com?part=16



More information about the linux-phy mailing list