All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Louis-Alexis Eyraud" <louisalexis.eyraud@collabora.com>
Cc: devicetree@vger.kernel.org, vkoul@kernel.org,
	neil.armstrong@linaro.org, linux-phy@lists.infradead.org,
	conor+dt@kernel.org, robh@kernel.org, olteanv@gmail.com,
	linux-scsi@vger.kernel.org
Subject: Re: [PATCH v10 09/26] scsi: ufs: mediatek: Rework the crypt-boost stuff
Date: Thu, 30 Jul 2026 10:16:57 +0000	[thread overview]
Message-ID: <20260730101658.427531F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260730-mt8196-ufs-v10-9-bc5ecef202dc@collabora.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] Missing newline character `\n` in `dev_err` format string.
- [Low] Incompatible pointer type passed to `of_property_read_u32`.
--

--- Patch [9]: [PATCH v10 09/26] scsi: ufs: mediatek: Rework the crypt-boost stuff ---
commit cbee34751328446d33c164e90e794b44773af5eb
Author: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>

scsi: ufs: mediatek: Rework the crypt-boost stuff

This commit reworks the crypt-boost functionality by adding vendor
prefixes to the device tree properties, removing unnecessary clock
wrappers, and restructuring the initialization code.

> diff --git a/drivers/ufs/host/ufs-mediatek.c b/drivers/ufs/host/ufs-mediatek.c
> index 50e7701d7943b..55701172bcf15 100644
> --- a/drivers/ufs/host/ufs-mediatek.c
> +++ b/drivers/ufs/host/ufs-mediatek.c
[ ... ]
> @@ -633,65 +618,51 @@ static void ufs_mtk_boost_crypt(struct ufs_hba *hba, bool boost)
[ ... ]
> +	cfg->reg_vcore = devm_regulator_get_optional(dev, "dvfsrc-vcore");
> +	if (IS_ERR(cfg->reg_vcore)) {
> +		dev_err(dev, "Failed to get dvfsrc-vcore: %pe", cfg->reg_vcore);

[Severity: Low]
This isn't a bug, but should this error message include a trailing newline?

Without it, the next printed kernel message might be appended to the same
line, resulting in garbled logs.

> +		return;
>  	}
>  
> -	if (of_property_read_u32(dev->of_node, "boost-crypt-vcore-min",
> -				 &volt)) {
> -		dev_info(dev, "failed to get boost-crypt-vcore-min");
> -		goto disable_caps;
> +	ret = of_property_read_u32(dev->of_node, "mediatek,boost-crypt-vcore-min",
> +				   &cfg->vcore_volt);

[Severity: Low]
Does passing &cfg->vcore_volt to of_property_read_u32() cause a compiler
warning here?

Looking at struct ufs_mtk_crypt_cfg, vcore_volt is declared as an int, but
of_property_read_u32() expects a pointer to a u32. This might trigger an
incompatible pointer type or pointer sign warning on strict build
configurations.

> +	if (ret) {
> +		dev_err(dev, "Failed to get mediatek,boost-crypt-vcore-min: %pe\n",
> +			ERR_PTR(ret));
> +		return;
>  	}

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260730-mt8196-ufs-v10-0-bc5ecef202dc@collabora.com?part=9

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

WARNING: multiple messages have this Message-ID (diff)
From: sashiko-bot@kernel.org
To: "Louis-Alexis Eyraud" <louisalexis.eyraud@collabora.com>
Cc: devicetree@vger.kernel.org, vkoul@kernel.org,
	neil.armstrong@linaro.org, linux-phy@lists.infradead.org,
	conor+dt@kernel.org, robh@kernel.org, olteanv@gmail.com,
	linux-scsi@vger.kernel.org
Subject: Re: [PATCH v10 09/26] scsi: ufs: mediatek: Rework the crypt-boost stuff
Date: Thu, 30 Jul 2026 10:16:57 +0000	[thread overview]
Message-ID: <20260730101658.427531F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260730-mt8196-ufs-v10-9-bc5ecef202dc@collabora.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] Missing newline character `\n` in `dev_err` format string.
- [Low] Incompatible pointer type passed to `of_property_read_u32`.
--

--- Patch [9]: [PATCH v10 09/26] scsi: ufs: mediatek: Rework the crypt-boost stuff ---
commit cbee34751328446d33c164e90e794b44773af5eb
Author: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>

scsi: ufs: mediatek: Rework the crypt-boost stuff

This commit reworks the crypt-boost functionality by adding vendor
prefixes to the device tree properties, removing unnecessary clock
wrappers, and restructuring the initialization code.

> diff --git a/drivers/ufs/host/ufs-mediatek.c b/drivers/ufs/host/ufs-mediatek.c
> index 50e7701d7943b..55701172bcf15 100644
> --- a/drivers/ufs/host/ufs-mediatek.c
> +++ b/drivers/ufs/host/ufs-mediatek.c
[ ... ]
> @@ -633,65 +618,51 @@ static void ufs_mtk_boost_crypt(struct ufs_hba *hba, bool boost)
[ ... ]
> +	cfg->reg_vcore = devm_regulator_get_optional(dev, "dvfsrc-vcore");
> +	if (IS_ERR(cfg->reg_vcore)) {
> +		dev_err(dev, "Failed to get dvfsrc-vcore: %pe", cfg->reg_vcore);

[Severity: Low]
This isn't a bug, but should this error message include a trailing newline?

Without it, the next printed kernel message might be appended to the same
line, resulting in garbled logs.

> +		return;
>  	}
>  
> -	if (of_property_read_u32(dev->of_node, "boost-crypt-vcore-min",
> -				 &volt)) {
> -		dev_info(dev, "failed to get boost-crypt-vcore-min");
> -		goto disable_caps;
> +	ret = of_property_read_u32(dev->of_node, "mediatek,boost-crypt-vcore-min",
> +				   &cfg->vcore_volt);

[Severity: Low]
Does passing &cfg->vcore_volt to of_property_read_u32() cause a compiler
warning here?

Looking at struct ufs_mtk_crypt_cfg, vcore_volt is declared as an int, but
of_property_read_u32() expects a pointer to a u32. This might trigger an
incompatible pointer type or pointer sign warning on strict build
configurations.

> +	if (ret) {
> +		dev_err(dev, "Failed to get mediatek,boost-crypt-vcore-min: %pe\n",
> +			ERR_PTR(ret));
> +		return;
>  	}

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260730-mt8196-ufs-v10-0-bc5ecef202dc@collabora.com?part=9

  reply	other threads:[~2026-07-30 10:17 UTC|newest]

Thread overview: 84+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-30  9:48 [PATCH v10 00/26] MediaTek UFS Cleanup and MT8196 Enablement Louis-Alexis Eyraud
2026-07-30  9:48 ` Louis-Alexis Eyraud
2026-07-30  9:48 ` [PATCH v10 01/26] dt-bindings: phy: Add mediatek,mt8196-ufsphy variant Louis-Alexis Eyraud
2026-07-30  9:48   ` Louis-Alexis Eyraud
2026-07-30  9:48 ` [PATCH v10 02/26] dt-bindings: ufs: mediatek,ufs: Complete the binding Louis-Alexis Eyraud
2026-07-30  9:48   ` Louis-Alexis Eyraud
2026-07-30  9:57   ` sashiko-bot
2026-07-30  9:57     ` sashiko-bot
2026-07-30  9:48 ` [PATCH v10 03/26] dt-bindings: ufs: mediatek,ufs: Add mt8196 variant Louis-Alexis Eyraud
2026-07-30  9:48   ` Louis-Alexis Eyraud
2026-07-30  9:59   ` sashiko-bot
2026-07-30  9:59     ` sashiko-bot
2026-07-30  9:49 ` [PATCH v10 04/26] scsi: ufs: mediatek: Move MTK_SIP_UFS_CONTROL to mtk_sip_svc.h Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30  9:49 ` [PATCH v10 05/26] phy: mediatek: ufs: Add support for resets Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30  9:49 ` [PATCH v10 06/26] scsi: ufs: mediatek: Rework resets Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30 10:29   ` sashiko-bot
2026-07-30 10:29     ` sashiko-bot
2026-07-30  9:49 ` [PATCH v10 07/26] scsi: ufs: mediatek: Rework 0.9V regulator Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30 10:13   ` sashiko-bot
2026-07-30 10:13     ` sashiko-bot
2026-07-30  9:49 ` [PATCH v10 08/26] scsi: ufs: mediatek: Rework init function Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30 10:07   ` sashiko-bot
2026-07-30 10:07     ` sashiko-bot
2026-07-30  9:49 ` [PATCH v10 09/26] scsi: ufs: mediatek: Rework the crypt-boost stuff Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30 10:16   ` sashiko-bot [this message]
2026-07-30 10:16     ` sashiko-bot
2026-07-30  9:49 ` [PATCH v10 10/26] scsi: ufs: mediatek: Handle misc host voltage regulators Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30 10:29   ` sashiko-bot
2026-07-30 10:29     ` sashiko-bot
2026-07-30  9:49 ` [PATCH v10 11/26] scsi: ufs: mediatek: Remove undocumented downstream reset cruft Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30 10:23   ` sashiko-bot
2026-07-30 10:23     ` sashiko-bot
2026-07-30  9:49 ` [PATCH v10 12/26] scsi: ufs: mediatek: Remove vendor kernel quirks cruft Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30 10:30   ` sashiko-bot
2026-07-30 10:30     ` sashiko-bot
2026-07-30  9:49 ` [PATCH v10 13/26] scsi: ufs: mediatek: Use the common PHY framework Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30 10:40   ` sashiko-bot
2026-07-30 10:40     ` sashiko-bot
2026-07-30  9:49 ` [PATCH v10 14/26] scsi: ufs: mediatek: Remove mediatek,ufs-broken-rtc property Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30  9:49 ` [PATCH v10 15/26] scsi: ufs: mediatek: Rework _ufs_mtk_clk_scale error paths Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30 10:34   ` sashiko-bot
2026-07-30 10:34     ` sashiko-bot
2026-07-30  9:49 ` [PATCH v10 16/26] scsi: ufs: mediatek: Clean up logging prints Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30  9:49 ` [PATCH v10 17/26] scsi: ufs: mediatek: Rework ufs_mtk_wait_idle_state Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30  9:49 ` [PATCH v10 18/26] scsi: ufs: mediatek: Don't acquire dvfsrc-vcore twice Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30 10:41   ` sashiko-bot
2026-07-30 10:41     ` sashiko-bot
2026-07-30  9:49 ` [PATCH v10 19/26] scsi: ufs: mediatek: Rework hardware version reading Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30  9:49 ` [PATCH v10 20/26] scsi: ufs: mediatek: Back up idle timer in per-instance struct Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30 10:53   ` sashiko-bot
2026-07-30 10:53     ` sashiko-bot
2026-07-30  9:49 ` [PATCH v10 21/26] scsi: ufs: mediatek: Remove ret local from link_startup_notify Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30  9:49 ` [PATCH v10 22/26] scsi: ufs: mediatek: Remove undocumented "clk-scale-up-vcore-min" Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30 10:49   ` sashiko-bot
2026-07-30 10:49     ` sashiko-bot
2026-07-30  9:49 ` [PATCH v10 23/26] scsi: ufs: mediatek: Add MT8196 compatible, update copyright Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30  9:49 ` [PATCH v10 24/26] arm64: dts: mediatek: mt8195: Align ufshci node to dt-bindings changes Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30 11:13   ` sashiko-bot
2026-07-30 11:13     ` sashiko-bot
2026-07-30  9:49 ` [PATCH v10 25/26] arm64: dts: mediatek: mt8395-genio-1200-evk-ufs: Complete UFS power supplies Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud
2026-07-30  9:49 ` [PATCH v10 26/26] arm64: dts: mediatek: mt8395-radxa-nio-12l: " Louis-Alexis Eyraud
2026-07-30  9:49   ` Louis-Alexis Eyraud

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260730101658.427531F00A3A@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=louisalexis.eyraud@collabora.com \
    --cc=neil.armstrong@linaro.org \
    --cc=olteanv@gmail.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.