mmc: virtual SDIO host for testing without hardware
Hi,
I've been working on a virtual SDIO host and card simulator that allows testing the MMC/SDIO core and SDIO drivers without needing physical hardware.
It uses the existing MMC core and supports normal card enumeration, CMD52/CMD53 transfers, interrupts, insertion/ removal, and fault injection. There's also configfs/debugfs support, KUnit tests, and kselftests.
The implementation currently adds around 8,000 lines (I know that's a lot, it will be smaller), including tests and documentation. It's working, but I'm still reviewing and cleaning it up, and I'm open to reducing its scope significantly.
Before spending more time on it, I'd appreciate some feedback:
- Would something like this be accepted upstream?
- Does the overall approach make sense, and would you prefer a smaller initial implementation?
- What kind of use case or demonstration would you want to see before considering it for acceptance?
I'd also be happy to take full responsibility for maintaining it long-term, including reviews, bug fixes, and keeping it working as the MMC core changes.
Thanks for any thoughts or suggestions.
Best regards,
Luka Gejak