mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-16 15:34:48 +08:00
ca452621b8
UFS storage devices require bRefClkFreq attribute to be set to operate correctly at high speed mode. The necessary value is determined by what the SoC / board supports. The standard doesn't specify a method to query the value, so the information needs to be fed in separately. DT information feeds into setting up the clock framework, so platforms using DT can get the UFS reference clock frequency from the clock framework. A special node "ref_clk" from the clock array for the UFS controller node is used as the source for the information. On the platforms that do not use DT (e.g. Intel), the alternative mechanism to feed the intended reference clock frequency is necessary. Specifying the necessary information in DSD of the UFS controller ACPI node is an alternative mechanism proposed in this patch. Those can be accessed via firmware property facility in the kernel and in many ways simillar to querying properties defined in DT. This patch introduces a small helper function to query a predetermined ACPI supplied property of the UFS controller, and uses it to attempt retrieving reference clock value, unless that was already done by the clock infrastructure. Link: https://lore.kernel.org/r/20220715210230.1.I365d113d275117dee8fd055ce4fc7e6aebd0bce9@changeid Reviewed-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Daniil Lunev <dlunev@chromium.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> |
||
---|---|---|
.. | ||
scsi_transport_srp | ||
53c700.rst | ||
aacraid.rst | ||
advansys.rst | ||
aha152x.rst | ||
aic7xxx.rst | ||
aic79xx.rst | ||
arcmsr_spec.rst | ||
bfa.rst | ||
bnx2fc.rst | ||
BusLogic.rst | ||
ChangeLog.arcmsr | ||
ChangeLog.ips | ||
ChangeLog.lpfc | ||
ChangeLog.megaraid | ||
ChangeLog.megaraid_sas | ||
ChangeLog.ncr53c8xx | ||
ChangeLog.sym53c8xx | ||
ChangeLog.sym53c8xx_2 | ||
cxgb3i.rst | ||
dc395x.rst | ||
dpti.rst | ||
FlashPoint.rst | ||
g_NCR5380.rst | ||
hpsa.rst | ||
hptiop.rst | ||
index.rst | ||
libsas.rst | ||
LICENSE.FlashPoint | ||
link_power_management_policy.rst | ||
lpfc.rst | ||
megaraid.rst | ||
ncr53c8xx.rst | ||
NinjaSCSI.rst | ||
ppa.rst | ||
qlogicfas.rst | ||
scsi_eh.rst | ||
scsi_fc_transport.rst | ||
scsi_mid_low_api.rst | ||
scsi-changer.rst | ||
scsi-generic.rst | ||
scsi-parameters.rst | ||
scsi.rst | ||
sd-parameters.rst | ||
smartpqi.rst | ||
st.rst | ||
sym53c8xx_2.rst | ||
sym53c500_cs.rst | ||
tcm_qla2xxx.rst | ||
ufs.rst | ||
wd719x.rst |