mci: define fall-back hw_dev->detect for all MCIs
A barebox environment oftree node may reference its storage by a phandle
to a partition node under a MCI node. barebox will then call the
device's detect method to detect the card if this hasn't happened
before. Out of 17 MCI drivers, 8 host drivers already implement
a detect method, which just calls mci_detect_card.

Provide a generic implementation that does the same.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent c10b20d commit d576796c40aeb7c41691a94d38ef1884d5303f5b
@Ahmad Fatoum Ahmad Fatoum authored on 2 Jun 2020
Sascha Hauer committed on 3 Jun 2020
Showing 1 changed file
View
drivers/mci/mci-core.c