mmc: omap_hsmmc: consolidate error report handling of HSMMC IRQ
authorVenkatraman S <svenkatr@ti.com>
Thu, 9 Aug 2012 15:06:07 +0000 (20:36 +0530)
committerChris Ball <cjb@laptop.org>
Tue, 4 Sep 2012 17:58:24 +0000 (13:58 -0400)
commitae4bf788ee9bf7c2d51b0309117d1fcccbdd50a2
tree6b1f9d252d3cbb32252dd1749c213f101157095b
parent1f6b9fa40e76fffaaa0b3bd6a0bfdcf1cdc06efa
mmc: omap_hsmmc: consolidate error report handling of HSMMC IRQ

Consolidate the duplicated code around the handling of CMD_TIMEOUT,
CMD_CRC, DATA_TIMEOUT, DATA_CRC and CARD_ERR handling into a single
function.

This generally shrinks code bloat, but is also required for implementing
software based guard timers.

Signed-off-by: Venkatraman S <svenkatr@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/omap_hsmmc.c