]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r338304
authormarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 5 Sep 2018 20:47:51 +0000 (20:47 +0000)
committermarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 5 Sep 2018 20:47:51 +0000 (20:47 +0000)
commit00ed33c1d1ae3e8b609b76ec2c921294abaf6c14
tree1505fa9e12160ed5fa24311266c64e0fce340eaa
parentab0e2b70153729e1725385c7446102e30b842697
MFC: r338304

The read accessors generated by __BUS_ACCESSOR() have the problem that
they don't check the result of BUS_READ_IVAR(9) and silently return stack
garbage on failure in case a bus doesn't implement a particular instance
variable for example. With MMC bridges not providing MMCBR_IVAR_RETUNE_REQ,
yet, this in turn can cause mmc(4) to get into a state in which re-tuning
seems to be necessary but is inappropriate, causing mmc_wait_for_request()
to fail. Thus, don't use __BUS_ACCESSOR() for mmcbr_get_retune_req() and
instead provide a version of the latter which returns retune_req_none if
reading MMCBR_IVAR_RETUNE_REQ fails.

git-svn-id: svn://svn.freebsd.org/base/stable/10@338477 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/mmc/mmcbrvar.h