Commit 212e119d authored by David Brownell's avatar David Brownell Committed by Kevin Hilman

mmc cleanups, mostly DMA/scatterlists

Minor MMC cleanup, mostly for DMA:

 - Tighten some parts of scatterlist handling:
     * switch to a NR_SG parameter (like other drivers), and use
       it to disable some code;
     * make max_seg_size reflect the EDMA limit (usually 2 MBytes)
       not the controller's multiblock request limit (64x bigger);
     * use standard scatterlist accessors.

 - Use more section annotations to shrink runtime driver footprint.

 - Fix whitespace glitches and remove an unused struct member, both
   left over from the "rip out 1/4..." patch.

 - Move some bits of code earlier, to simplify later patches.

 - Fix a few messages to terminate properly, with just a newline.

 - Report -EIO for DMA errors.

There should be at most very minor functional changes here.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent 4b833f98
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment