mmc: sh_mmcif: Support MMC_SLEEP_AWAKE command
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 12 Jun 2012 20:56:09 +0000 (22:56 +0200)
committerChris Ball <cjb@laptop.org>
Sat, 21 Jul 2012 04:02:07 +0000 (00:02 -0400)
commit7541ca98477862e2e9988c6c2ceadbdccefa9d77
treea1a98f8dba20ed272b9c7acbd7cd2ed2e4da60de
parent94c6cee91bebfc17596243b6a5f4fe910feec426
mmc: sh_mmcif: Support MMC_SLEEP_AWAKE command

The MMC_SLEEP_AWAKE and SD_IO_SEND_OP_COND commands share the same
opcode. SD_IO_SEND_OP_COND isn't supported by the SH MMCIF, but
MMC_SLEEP_AWAKE is. Discriminate between the two commands using the
command flags, and reject SD_IO_SEND_OP_COND only.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sh_mmcif.c