]> 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>
Sun, 6 Aug 2023 17:03:45 +0000 (19:03 +0200)
commita6222e182c7464903f60f288b7784a31d702ce8c
treeb3ac48216d71e4292a0686efb9864f776c5288d9
parent5fb88aba6c9aed4c105add652adc8b74b5ee977b
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(4) accordingly keeping sdhci_generic_tune() a bit cautious
still.

(cherry picked from commit bd15d31cef50060d90356384ba7b878d398fc9f3)
sys/dev/mmc/mmc.c
sys/dev/sdhci/sdhci.c