]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mmc(4): Don't call bridge driver for timings not requiring tuning
authorMarius Strobl <marius@FreeBSD.org>
Wed, 12 Apr 2023 21:46:02 +0000 (23:46 +0200)
committerMarius Strobl <marius@FreeBSD.org>
Tue, 18 Apr 2023 17:17:24 +0000 (19:17 +0200)
commitbd15d31cef50060d90356384ba7b878d398fc9f3
treec48785511aaf60a8977ffb8aaf15788c08a5da66
parent1bc6dcc287fa80af74768c4e2b2a1d7511ba1729
mmc(4): Don't call bridge driver for timings not requiring tuning

The original idea behind calling into the bridge driver was to have the
logic deciding whether tuning is actually required for a particular bus
timing in a given slot as well as doing the sanity checking only on the
controller layer which also generally is better suited for these due to
say SDHCI_SDR50_NEEDS_TUNING. On another thought, not every such driver
should need to check whether tuning is required at all, though, and not
everything is SDHCI in the first place.
Adjust sdhci{,_fsl_fdt}(4) accordingly, but keep sdhci_generic_tune() a
bit cautious still.
sys/dev/mmc/mmc.c
sys/dev/sdhci/sdhci.c
sys/dev/sdhci/sdhci_fsl_fdt.c