Looking at Linux source code for SD card drivers. Holy fuck. Hundreds upon hundreds of lines of code that will only ever execute once.
Conversation
Replying to
I wish I could tell you for sure. I reads the SD card's CSD and CID registers, and parses their values into structs, but...
1
Replying to
... how that data is used is beyond me. The source is > 1000 LOC, and 99% of it is just card capability discovery.
1
Show replies

