From: Palash Kambar <palash.kambar@oss.qualcomm.com>
This patch series introduces two updates to the UFS subsystem aimed at
improving link stability and power efficiency on platforms using the
Qualcomm UFS host controller.
During link startup, the number of connected TX/RX lanes discovered may be
fewer than the lanes specified in the device tree. The current UFS core
driver configures all DT-defined lanes unconditionally, which can lead to
mismatches during power mode changes. Patch 1/2 ensures to fail on this.
Additionally, certain Qualcomm platforms support Auto Hibern8 (AH8), where
the UFS controller autonomously de-asserts clk_req signals to the GCC
during Hibern8 state. Enabling this mechanism allows the clock controller
to gate unused clocks, providing meaningful power savings. Patch 2/2 adds
support for enabling this feature as recommended by the Hardware
Programming Guidelines.
---
changes from V1
1) Addressed Shawn Lin's comments to fix comment to connected lanes.
2) Addressed Bart's comments to remove warning and trigger failure
incase of lane mismatch.
---
Palash Kambar (2):
ufs: core: Configure only active lanes during link
ufs: ufs-qcom: Enable Auto Hibern8 clock request support
drivers/ufs/core/ufshcd.c | 39 +++++++++++++++++++++++++++++++++++++
drivers/ufs/host/ufs-qcom.c | 11 +++++++++++
drivers/ufs/host/ufs-qcom.h | 11 +++++++++++
3 files changed, 61 insertions(+)
--
2.34.1