]> git.ipfire.org Git - thirdparty/linux.git/commit
mmc: sdhci-cadence: use of_property_present
authorBenoît Monin <benoit.monin@bootlin.com>
Thu, 26 Jun 2025 14:43:31 +0000 (16:43 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 3 Jul 2025 11:30:34 +0000 (13:30 +0200)
commit57cd4af7654eed26e48984dd34f6997fcd83c841
tree7f2bd74cce52a65980db830c48a02c508e46449e
parentd0f8e961deae82e077d7f2ced1a20106605cf4e9
mmc: sdhci-cadence: use of_property_present

Instead of using of_property_read_bool to check the presence of the
cdns,phy-* properties in the device tree, use of_property_present in
function sdhci_cdns_phy_param_count.

This silences the following warning messages since the cdns,phy-*
properties are all u32, not boolean.

OF: /soc/sdhci@d8010000: Read of boolean property 'cdns,phy-input-delay-legacy' with a value.
OF: /soc/sdhci@d8010000: Read of boolean property 'cdns,phy-input-delay-mmc-highspeed' with a value.
OF: /soc/sdhci@d8010000: Read of boolean property 'cdns,phy-input-delay-mmc-ddr' with a value.
OF: /soc/sdhci@d8010000: Read of boolean property 'cdns,phy-dll-delay-sdclk' with a value.
OF: /soc/sdhci@d8010000: Read of boolean property 'cdns,phy-dll-delay-sdclk-hsmmc' with a value.

Signed-off-by: Benoît Monin <benoit.monin@bootlin.com>
Link: https://lore.kernel.org/r/e244c1377f7b2ad5d026c9d9368a08de3887129f.1750943549.git.benoit.monin@bootlin.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-cadence.c