From: sashiko-bot@kernel.org
To: "Shujath Mohd" <shujath@outlook.in>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/1] arm64: dts: qcom: sdm845-sony-tama: Enable UFS host controller and PHY
Date: Mon, 14 Sep 2026 10:14:15 +0000 [thread overview]
Message-ID: <20260914101416.034911F00893@smtp.kernel.org> (raw)
In-Reply-To: <PUZPR01MB514158F5EDA660AC85FA8D5BC3BB2@PUZPR01MB5141.apcprd01.prod.exchangelabs.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Critical] Enabling the UFS controller on the Sony Xperia Tama platform without the required driver workaround risks erasing the bootloader and permanently hard-bricking the device.
--
commit 91d507f63b9143b3c7a96ab7389c84dca2784cd5
Author: Shujath Mohd <shujath@outlook.in>
Subject: arm64: dts: qcom: sdm845-sony-tama: Enable UFS host controller and PHY
This commit enables the UFS host controller and PHY on Sony Xperia Tama
devices. It removes the previous status disabled guard and configures the
necessary regulators and reset GPIOs.
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
> --- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
[ ... ]
> @@ -774,9 +774,21 @@ &uart9 {
> status = "okay";
> };
>
> -/* BIG WARNING! DO NOT TOUCH UFS, YOUR DEVICE WILL DIE! */
> -&ufs_mem_hc { status = "disabled"; };
> -&ufs_mem_phy { status = "disabled"; };
> +&ufs_mem_hc {
> + status = "okay";
> +
> + reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>;
[Severity: Critical]
Does enabling the UFS controller here on the Sony Xperia Tama platform
without the required driver workaround risk erasing the bootloader and
permanently hard-bricking the device?
The original commit (30a7f99befc6) that introduced the platform explicitly
documented that sending a specific UFS command on these devices effectively
erases the bootloader. If the system or a user issues that UFS command,
such as via block discard, secure erase, firmware upgrade, or during
specific error-recovery paths, the device becomes unbootable. Userspace
operations such as fstrim or background kernel maintenance tasks can trigger
these commands.
Is the required downstream UFS driver workaround (kholk/kernel@2e7a9ee)
ported to the mainline drivers/ufs/ core? Removing the status="disabled"
protection without the driver-level mitigation active appears to expose
users of this device to a known hardware brick, even if normal boot and
reboot cycles appear stable.
--
Sashiko AI review · https://sashiko.dev/#/patchset/PUZPR01MB514158F5EDA660AC85FA8D5BC3BB2@PUZPR01MB5141.apcprd01.prod.exchangelabs.com?part=1
prev parent reply other threads:[~2026-09-14 10:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-14 10:01 [PATCH 0/1] arm64: dts: qcom: sdm845-sony-tama: Enable UFS host controller and PHY Shujath Mohd
2026-09-14 10:01 ` [PATCH 1/1] " Shujath Mohd
2026-09-14 10:14 ` sashiko-bot [this message]
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=20260914101416.034911F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=shujath@outlook.in \
/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.