From: Krzysztof Kozlowski <krzk@kernel.org>
To: Shawn Lin <shawn.lin@rock-chips.com>
Cc: "James E . J . Bottomley" <James.Bottomley@hansenpartnership.com>,
"Martin K . Petersen" <martin.petersen@oracle.com>,
Heiko Stuebner <heiko@sntech.de>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
devicetree@vger.kernel.org, linux-scsi@vger.kernel.org,
linux-rockchip@lists.infradead.org
Subject: Re: [PATCH 1/2] scsi: ufs: drockchip,rk3576-ufshc: dt-bindings: Add new mphy reset item
Date: Wed, 11 Mar 2026 14:38:48 +0100 [thread overview]
Message-ID: <f6ac4bb9-2a4d-4432-93e4-111cad73fc85@kernel.org> (raw)
In-Reply-To: <6d4e61eb-0b1b-c61f-faba-f790774b6cec@rock-chips.com>
On 11/03/2026 14:29, Shawn Lin wrote:
> Hi Krzysztof
>
> 在 2026/03/11 星期三 21:10, Krzysztof Kozlowski 写道:
>> On Wed, Mar 11, 2026 at 09:40:17AM +0800, Shawn Lin wrote:
>>> Add the mphy reset property to the devicetree bindings for the Rockchip
>>> RK3576 UFS host controller. The mphy reset signal is used to reset the
>>> physical adapter. Resetting other components while leaving the mphy
>>> unreset may occasionally prevent the UFS controller from successfully
>>> linking up with the device.
>>>
>>> Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
>>> ---
>>>
>>> Documentation/devicetree/bindings/ufs/rockchip,rk3576-ufshc.yaml | 7 ++++---
>>> 1 file changed, 4 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/Documentation/devicetree/bindings/ufs/rockchip,rk3576-ufshc.yaml b/Documentation/devicetree/bindings/ufs/rockchip,rk3576-ufshc.yaml
>>> index c7d17cf4..e738153 100644
>>> --- a/Documentation/devicetree/bindings/ufs/rockchip,rk3576-ufshc.yaml
>>> +++ b/Documentation/devicetree/bindings/ufs/rockchip,rk3576-ufshc.yaml
>>> @@ -41,7 +41,7 @@ properties:
>>> maxItems: 1
>>>
>>> resets:
>>> - maxItems: 4
>>> + maxItems: 5
>>>
>>> reset-names:
>>> items:
>>> @@ -49,6 +49,7 @@ properties:
>>> - const: sys
>>> - const: ufs
>>> - const: grf
>>> + - const: mphy
>>
>> ABI break here and in the driver. Considering this was merged year ago,
>> so for sure it was tested and was working. Otherwise commit msg would
>> explain the actual bug affecting users.
>>
>
> Thanks for your review.
>
> You are absolutely right that this change technically breaks the ABI in
> the device tree bindings by increasing maxItems and adding a new entry.
> Although the driver is using devm_reset_control_array_get_exclusive(),
> so the old DTB and new DTB should both work.
Ah, I missed that. Please mention it briefly in commit msg to indicate
that Linux is not affected.
>
> The issue this series fixes (UFS link-up failure when mphy is not
> explicitly reset) is an intermittent hardware bug that is difficult to
> reproduce. It only occurs under specific timing conditions with certain
> chips. We recently encountered this issue consistently in our downstream
> testing and identified the root cause. We are syncing this critical fix
> to upstream immediately to prevent stability issues for users. I will
> update the commit message to explicitly describe this hard-to-reproduce
> bug and the specific failure mode, and probably add a fixes tag.
>
> Does the above sound the right approach to you?
Yes, please include parts of above, that it is hard to reproduce but it
does happen, in the commit msg.
Best regards,
Krzysztof
next prev parent reply other threads:[~2026-03-11 13:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-11 1:40 [PATCH 0/2] Add mphy reset signal to Rockchip ufshc node Shawn Lin
2026-03-11 1:40 ` [PATCH 1/2] scsi: ufs: drockchip,rk3576-ufshc: dt-bindings: Add new mphy reset item Shawn Lin
2026-03-11 13:10 ` Krzysztof Kozlowski
2026-03-11 13:29 ` Shawn Lin
2026-03-11 13:38 ` Krzysztof Kozlowski [this message]
2026-03-11 1:40 ` [PATCH 2/2] arm64: dts: rockchip: Add mphy reset to ufshc node Shawn Lin
2026-03-11 13:11 ` Krzysztof Kozlowski
2026-03-11 13:36 ` Shawn Lin
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=f6ac4bb9-2a4d-4432-93e4-111cad73fc85@kernel.org \
--to=krzk@kernel.org \
--cc=James.Bottomley@hansenpartnership.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=krzk+dt@kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=robh@kernel.org \
--cc=shawn.lin@rock-chips.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox