]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r283263, r289359, r308187, r311660, r311693, r311727, r311797:
authorian <ian@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 15 Jan 2017 22:30:59 +0000 (22:30 +0000)
committerian <ian@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 15 Jan 2017 22:30:59 +0000 (22:30 +0000)
commit3a8c5508516c6c8059bd3b7ed230fe9c3ade188d
treec4bb6fc7cf6f65a00803cd559e3cc7260c2eafaf
parent4be832975c333a1b898033d91eb564e1caa99ee3
MFC r283263, r289359, r308187, r311660, r311693, r311727, r311797:

Raise the SDHCI timeout to 10 seconds and add a sysctl to allow changing
this value at runtime.

Add support for the BCM57765 card reader.

Toggle card insert/remove interrupt enable bits on events.

Add a new sdhci interface method, get_card_present().

Now that the PRESENT_STATE register is only used for the inhibit bits loop
in this function, sdhci_start_command(), eliminate the state variable and
restructure the loop to read the register just once at the top of the loop.

Add support for non-removable media, and a quirk to use polling to detect
card insert/remove events on controllers that don't implement the insert
and remove interrupts.

Add sdhci_handle_card_present_locked() that can be called from the interrupt
handler which already holds the mutex, and have sdhci_handle_card_present()
be just a tiny wrapper that does the locking for external callers.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312245 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/sdhci/sdhci.c
sys/dev/sdhci/sdhci.h
sys/dev/sdhci/sdhci_if.m
sys/dev/sdhci/sdhci_pci.c