This was one of the use cases of the SDIO [1] specification.
[1] https://en.wikipedia.org/wiki/SD_card#SDIO_cards