opnsense-src/sys/dev/mmc
Yang Zhong 50b26566c7 mmc: Drain the intrhook in mmc_detach()
Buggy SD card drivers may attach and detach a mmc(4) driver instance in
quick succession.  In this case mmc(4) must disestablish its intrhook
callback during detach.  Thus, this change adds a call to
config_intrhook_drain(), which blocks or does nothing if the intrhook is
running or has already ran (the SD card was plugged in), and
disestablishes the hook if it hasn't ran yet (the SD card was not
plugged in).

PR:		254373
Reviewed by:	imp, manu, markj
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit d5341d72a1)
2021-07-29 08:11:50 -04:00
..
host dwmmc: Add bus_generic_add_child in the methods 2021-07-22 19:25:54 +02:00
bridge.h Regularize my copyright notice 2019-12-04 16:56:11 +00:00
mmc.c mmc: Drain the intrhook in mmc_detach() 2021-07-29 08:11:50 -04:00
mmc_fdt_helpers.c mmc_fdt_helper: Add mmc_fdt_set_power 2021-07-22 19:09:41 +02:00
mmc_fdt_helpers.h mmc_fdt_helper: Add mmc_fdt_set_power 2021-07-22 19:09:41 +02:00
mmc_ioctl.h o Add support for eMMC HS200 and HS400 bus speed modes at 200 MHz to 2017-07-23 16:11:47 +00:00
mmc_private.h Regularize my copyright notice 2019-12-04 16:56:11 +00:00
mmc_pwrseq.c mmc: Add mmc-pwrseq driver 2021-07-22 19:09:38 +02:00
mmc_pwrseq_if.m mmc: Add mmc-pwrseq driver 2021-07-22 19:09:38 +02:00
mmc_subr.c Regularize my copyright notice 2019-12-04 16:56:11 +00:00
mmc_subr.h Regularize my copyright notice 2019-12-04 16:56:11 +00:00
mmcbr_if.m Regularize my copyright notice 2019-12-04 16:56:11 +00:00
mmcbrvar.h Regularize my copyright notice 2019-12-04 16:56:11 +00:00
mmcbus_if.m Regularize my copyright notice 2019-12-04 16:56:11 +00:00
mmcreg.h Regularize my copyright notice 2019-12-04 16:56:11 +00:00
mmcsd.c mmcsd(4): properly set BIO error when partition switching fails 2021-01-22 00:18:40 +01:00
mmcvar.h Regularize my copyright notice 2019-12-04 16:56:11 +00:00