Comment 48 for bug 53923

Revision history for this message
Andrew Waldram (andrew-waldram) wrote : Re: tifm: Texas Instruments Card reader not working

Ah found what I did to get it to compile besides the protocol.h

rem'd out the max sector function in tifm_sd.c

// mmc->max_blk_count = 2048;
// mmc->max_hw_segs = mmc->max_blk_count;
        mmc->max_hw_segs = 16;
// mmc->max_blk_size = min(2048, PAGE_SIZE);
// mmc->max_seg_size = mmc->max_blk_count * mmc->max_blk_size;
        mmc->max_seg_size = 127 * 2048;

        mmc->max_phys_segs = mmc->max_hw_segs;
// mmc->max_sectors = 127 * mmc->max_phys_segs;

// mmc->max_req_size = mmc->max_seg_size;

guess that was cheating ;-)