freebsd-src/sys/dev/mmc
Yang Zhong d5341d72a1 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
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D31262
2021-07-22 13:50:10 -04:00
..
host dwmmc: Fix MMCCAM block size support 2021-07-22 17:03:14 +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-22 13:50:10 -04:00
mmc_fdt_helpers.c mmc:: Undo my conversion of (bool) to !!. 2021-06-03 11:29:04 -06:00
mmc_fdt_helpers.h mmc_fdt_helper: Add mmc_fdt_set_power 2021-05-21 17:38:05 +02:00
mmc_ioctl.h
mmc_private.h Regularize my copyright notice 2019-12-04 16:56:11 +00:00
mmc_pwrseq.c mmc: Add mmc-pwrseq driver 2021-05-21 17:36:20 +02:00
mmc_pwrseq_if.m mmc: Add mmc-pwrseq driver 2021-05-21 17:36:20 +02:00
mmc_subr.c mmc: ignore CRC errors from CMD13 (status) when changing rates 2021-06-02 19:46:23 -06: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