]> git.dujemihanovic.xyz Git - u-boot.git/commit
ufs: add get_max_pwr_mode callback
authorNeil Armstrong <neil.armstrong@linaro.org>
Tue, 10 Sep 2024 09:50:11 +0000 (11:50 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 14 Oct 2024 06:56:03 +0000 (08:56 +0200)
commitb3f89c1d6ed47b7c7a6eaf854d3289dbfe31f332
tree4596008d4824b322c23af10cd02d247ee2d39a48
parent182e19225bbf66bae2280173a177c569e131c0dc
ufs: add get_max_pwr_mode callback

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 <lehmanju@devpi.de>
Tested-by: Caleb Connolly <caleb.connolly@linaro.org> #rb3gen2
Link: https://lore.kernel.org/r/20240910-topic-ufs-qcom-controller-v1-2-54c0d2231b10@linaro.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
drivers/ufs/ufs.c
drivers/ufs/ufs.h