sdio: add new function for RAW (Read after Write) operation
authorGrazvydas Ignotas <notasas@gmail.com>
Wed, 26 May 2010 21:42:09 +0000 (14:42 -0700)
committerDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Sat, 24 Jul 2010 16:11:40 +0000 (18:11 +0200)
commit03e2cd19cb8b0a486ef8b8f2bec60d3c1b88d8b4
treea3b755560e745e63817e077b37408086b429f7f7
parent1ee84e3fcdf91917842c150ded113c540ece1841
sdio: add new function for RAW (Read after Write) operation

SDIO specification allows RAW (Read after Write) operation using
IO_RW_DIRECT command (CMD52) by setting the RAW bit.  This operation is
similar to ordinary read/write commands, except that both write and read
are performed using single command/response pair.  The Linux SDIO layer
already supports this internaly, only external function is missing for
drivers to make use, which is added by this patch.

This type of command is required to implement proper power save mode
support in wl1251 wifi driver.

Android has similar patch for G1 in it's tree for the same reason:

http://android.git.kernel.org/?p=kernel/common.git;a=commitdiff;h=74a47786f6ecbe6c1cf9fb15efe6a968451deb52

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Acked-by: Kalle Valo <kalle.valo@iki.fi>
Cc: Dmitry Shmidt <dimitrysh@google.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mmc/core/sdio_io.c
include/linux/mmc/sdio_func.h