<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/ufs, branch v2025.04</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/ufs?h=v2025.04</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/ufs?h=v2025.04'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2024-10-14T06:56:03Z</updated>
<entry>
<title>ufs: Add Support for Qualcomm UFS HC driver</title>
<updated>2024-10-14T06:56:03Z</updated>
<author>
<name>Bhupesh Sharma</name>
<email>bhupesh.linux@gmail.com</email>
</author>
<published>2024-09-10T09:50:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0c9c501a87e0070b944ffcd8f0d9942353048f41'/>
<id>urn:sha1:0c9c501a87e0070b944ffcd8f0d9942353048f41</id>
<content type='text'>
Add Support for the Host Controller driver for UFS HC
present on Qualcomm Snapdragon SoCs.

It has been successfully tested on SDM845, SM8250,
SM8550 ant SM8650 SoCs.

Signed-off-by: Bhupesh Sharma &lt;bhupesh.sharma@linaro.org&gt;
Tested-by: Julius Lehmann &lt;lehmanju@devpi.de&gt;
Tested-by: Caleb Connolly &lt;caleb.connolly@linaro.org&gt; #rb3gen2
Link: https://lore.kernel.org/r/20240910-topic-ufs-qcom-controller-v1-4-54c0d2231b10@linaro.org
Signed-off-by: Neil Armstrong &lt;neil.armstrong@linaro.org&gt;
</content>
</entry>
<entry>
<title>ufs: allow UFSHCI version 4.0</title>
<updated>2024-10-14T06:56:03Z</updated>
<author>
<name>Neil Armstrong</name>
<email>neil.armstrong@linaro.org</email>
</author>
<published>2024-09-10T09:50:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=690db792cfe06ee072c35cc930be6f0155282eea'/>
<id>urn:sha1:690db792cfe06ee072c35cc930be6f0155282eea</id>
<content type='text'>
Add UFSHCI version 4.0 found on the recent Qualcomm UFS Controllers.

Tested-by: Julius Lehmann &lt;lehmanju@devpi.de&gt;
Tested-by: Caleb Connolly &lt;caleb.connolly@linaro.org&gt; #rb3gen2
Link: https://lore.kernel.org/r/20240910-topic-ufs-qcom-controller-v1-3-54c0d2231b10@linaro.org
Signed-off-by: Neil Armstrong &lt;neil.armstrong@linaro.org&gt;
</content>
</entry>
<entry>
<title>ufs: add get_max_pwr_mode callback</title>
<updated>2024-10-14T06:56:03Z</updated>
<author>
<name>Neil Armstrong</name>
<email>neil.armstrong@linaro.org</email>
</author>
<published>2024-09-10T09:50:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=b3f89c1d6ed47b7c7a6eaf854d3289dbfe31f332'/>
<id>urn:sha1:b3f89c1d6ed47b7c7a6eaf854d3289dbfe31f332</id>
<content type='text'>
Add a new get_max_pwr_mode callback to permit the UFS controller
driver manipulate the max_pwr_mode struct right before setting
the new pwr_mode to the UFS device.

It can be used to limit the HS Gear with errata and hardware
limitations on some UFS controllers.

Tested-by: Julius Lehmann &lt;lehmanju@devpi.de&gt;
Tested-by: Caleb Connolly &lt;caleb.connolly@linaro.org&gt; #rb3gen2
Link: https://lore.kernel.org/r/20240910-topic-ufs-qcom-controller-v1-2-54c0d2231b10@linaro.org
Signed-off-by: Neil Armstrong &lt;neil.armstrong@linaro.org&gt;
</content>
</entry>
<entry>
<title>ufs: add device_reset callback</title>
<updated>2024-10-14T06:56:03Z</updated>
<author>
<name>Neil Armstrong</name>
<email>neil.armstrong@linaro.org</email>
</author>
<published>2024-09-10T09:50:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=182e19225bbf66bae2280173a177c569e131c0dc'/>
<id>urn:sha1:182e19225bbf66bae2280173a177c569e131c0dc</id>
<content type='text'>
Add device_reset op to permit resetting the UFS device if
the UFS controller drivers supports the operation.

Tested-by: Julius Lehmann &lt;lehmanju@devpi.de&gt;
Tested-by: Caleb Connolly &lt;caleb.connolly@linaro.org&gt; #rb3gen2
Link: https://lore.kernel.org/r/20240910-topic-ufs-qcom-controller-v1-1-54c0d2231b10@linaro.org
Signed-off-by: Neil Armstrong &lt;neil.armstrong@linaro.org&gt;
</content>
</entry>
<entry>
<title>ufs: ufs-amd-versal2: Add support for AMD UFS controller</title>
<updated>2024-10-14T06:55:35Z</updated>
<author>
<name>Venkatesh Yadav Abbarapu</name>
<email>venkatesh.abbarapu@amd.com</email>
</author>
<published>2024-09-20T04:16:50Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=b5ac5f03072027cf1abf2ce28667c4f7348ddb0e'/>
<id>urn:sha1:b5ac5f03072027cf1abf2ce28667c4f7348ddb0e</id>
<content type='text'>
Add UFS AMD platform support on top of the UFS DWC
and UFS platform driver. UFS AMD platform requires
some platform specific configurations like M-PHY/RMMI/UniPro
and vendor specific registers programming before doing the LINKSTARTUP.

Signed-off-by: Venkatesh Yadav Abbarapu &lt;venkatesh.abbarapu@amd.com&gt;
Reviewed-by: Neil Armstrong &lt;neil.armstrong@linaro.org&gt;
Link: https://lore.kernel.org/r/20240920041651.18173-3-venkatesh.abbarapu@amd.com
Signed-off-by: Neil Armstrong &lt;neil.armstrong@linaro.org&gt;
</content>
</entry>
<entry>
<title>ufs: add support for DesignWare Controller</title>
<updated>2024-10-14T06:55:35Z</updated>
<author>
<name>Venkatesh Yadav Abbarapu</name>
<email>venkatesh.abbarapu@amd.com</email>
</author>
<published>2024-09-20T04:16:49Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=4b0ea24b42012b7c046ef253cc3eeee248da5358'/>
<id>urn:sha1:4b0ea24b42012b7c046ef253cc3eeee248da5358</id>
<content type='text'>
This patch has the goal to add support for DesignWare UFS Controller
specific operations.

This is based on linux kernel commit:
"drivers/scsi/ufs/ufshcd-dwc.c: ufs: add support for DesignWare
Controller" (sha1: 4b9ffb5a353bdee49f1f477ffe2b95ab3f9cbc0c)
It is ported from linux kernel 6.11-rc1.

Signed-off-by: Venkatesh Yadav Abbarapu &lt;venkatesh.abbarapu@amd.com&gt;
Reviewed-by: Neil Armstrong &lt;neil.armstrong@linaro.org&gt;
Link: https://lore.kernel.org/r/20240920041651.18173-2-venkatesh.abbarapu@amd.com
Signed-off-by: Neil Armstrong &lt;neil.armstrong@linaro.org&gt;
</content>
</entry>
<entry>
<title>ufs: core: remove link_startup_again logic</title>
<updated>2024-10-14T06:55:28Z</updated>
<author>
<name>Neil Armstrong</name>
<email>neil.armstrong@linaro.org</email>
</author>
<published>2024-09-30T12:44:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=67e291d147cd40c9b638515dc1bfa3c52d390959'/>
<id>urn:sha1:67e291d147cd40c9b638515dc1bfa3c52d390959</id>
<content type='text'>
The link_startup_again logic was added in Linux to handle device
that were set in LinkDown state, which should not be the case since U-boot
doesn't set LinkDown state are init, and Linux sets the device active
in ufshcd_init() for the first link startup.

ufshcd_set_ufs_dev_active(hba) is called at ufshcd_init() right before
scheduling an ufshcd_async_scan that will call ufshcd_device_init() then ufshcd_link_startup().

The comment in probe says:
    /*
     * We are assuming that device wasn't put in sleep/power-down
     * state exclusively during the boot stage before kernel.
     * This assumption helps avoid doing link startup twice during
     * ufshcd_probe_hba().
     */
we can assume the same from U-Boot.

While it worked to far, it breaks link startup for Qualcomm Controllers v5,
let's just remove the logic.

Tested-by: Venkatesh Yadav Abbarapu &lt;venkatesh.abbarapu@amd.com&gt;
Tested-by: Julius Lehmann &lt;lehmanju@devpi.de&gt;
Link: https://lore.kernel.org/r/20240930-topic-ufs-enhancements-v3-12-58234f84ab89@linaro.org
Signed-off-by: Neil Armstrong &lt;neil.armstrong@linaro.org&gt;
</content>
</entry>
<entry>
<title>ufs: Fix debug message in 'ufs_start'</title>
<updated>2024-10-14T06:55:28Z</updated>
<author>
<name>Bhupesh Sharma</name>
<email>bhupesh.linux@gmail.com</email>
</author>
<published>2024-09-30T12:44:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=966d3bf431273d8f397271026f0a6d488b3c87fc'/>
<id>urn:sha1:966d3bf431273d8f397271026f0a6d488b3c87fc</id>
<content type='text'>
Minor typo fix and rewording of printf message
inside 'ufs_start' which announces the availability
of the UFS device.

Signed-off-by: Bhupesh Sharma &lt;bhupesh.sharma@linaro.org&gt;
Tested-by: Venkatesh Yadav Abbarapu &lt;venkatesh.abbarapu@amd.com&gt;
Tested-by: Julius Lehmann &lt;lehmanju@devpi.de&gt;
Link: https://lore.kernel.org/r/20240930-topic-ufs-enhancements-v3-11-58234f84ab89@linaro.org
Signed-off-by: Neil Armstrong &lt;neil.armstrong@linaro.org&gt;
</content>
</entry>
<entry>
<title>ufs: Add missing memory barriers</title>
<updated>2024-10-14T06:55:28Z</updated>
<author>
<name>Bhupesh Sharma</name>
<email>bhupesh.linux@gmail.com</email>
</author>
<published>2024-09-30T12:44:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5ce1a2c7de4936d19cbc0307be734aed9f8056a4'/>
<id>urn:sha1:5ce1a2c7de4936d19cbc0307be734aed9f8056a4</id>
<content type='text'>
Add missing wmb() and mb() barriers in the u-boot UFS core
framework driver to allow registers updates to happen before
follow-up read operations.

This makes the barrier placement similar to the Linux UFS driver,
synced from the Linux v6.9 release.

Starting from the v6.10 release, the barriers were replaced with a register
read-back in [1], this will ported to u-boot in a second time.

[1] https://lore.kernel.org/all/20240329-ufs-reset-ensure-effect-before-delay-v5-0-181252004586@redhat.com/

Signed-off-by: Bhupesh Sharma &lt;bhupesh.sharma@linaro.org&gt;
Tested-by: Venkatesh Yadav Abbarapu &lt;venkatesh.abbarapu@amd.com&gt;
Tested-by: Julius Lehmann &lt;lehmanju@devpi.de&gt;
Link: https://lore.kernel.org/r/20240930-topic-ufs-enhancements-v3-10-58234f84ab89@linaro.org
Signed-off-by: Neil Armstrong &lt;neil.armstrong@linaro.org&gt;
</content>
</entry>
<entry>
<title>ufs: Sync possible UFS Quirks with Linux UFS driver</title>
<updated>2024-10-14T06:55:28Z</updated>
<author>
<name>Bhupesh Sharma</name>
<email>bhupesh.linux@gmail.com</email>
</author>
<published>2024-09-30T12:44:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=00c54af3addfc1475525396ec707c0c799010197'/>
<id>urn:sha1:00c54af3addfc1475525396ec707c0c799010197</id>
<content type='text'>
Sync u-boot UFS driver to add all possible UFS Quirks
as supported by Linux UFS driver as well.

Synced with include/ufs/ufshcd.h from Linux v6.11 release

Signed-off-by: Bhupesh Sharma &lt;bhupesh.sharma@linaro.org&gt;
Tested-by: Venkatesh Yadav Abbarapu &lt;venkatesh.abbarapu@amd.com&gt;
Tested-by: Julius Lehmann &lt;lehmanju@devpi.de&gt;
Link: https://lore.kernel.org/r/20240930-topic-ufs-enhancements-v3-9-58234f84ab89@linaro.org
Signed-off-by: Neil Armstrong &lt;neil.armstrong@linaro.org&gt;
</content>
</entry>
</feed>
