• Russell King's avatar
    [MMC] Clean up MMC card CID/CSD decoding, stage 1. · b41465f9
    Russell King authored
    Now that the raw CSD and CID information are available in mmc_card,
    there's little point not passing the mmc_card structure into the
    decode functions themselves.
    
    This will be necessary, since there's several different formats of
    CID decode, and the format appears to depend on data in the CSD.
    
    If we are unable to decode the CID or CSD, we can mark the card bad
    and refuse to bind it to any drivers.  Users can then retrieve the
    raw undecoded CID and CSD from sysfs for debugging purposes.
    b41465f9
mmc.c 17.6 KB