diff options
author | Per Forlin <per.forlin@linaro.org> | 2011-07-01 18:55:31 +0200 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-07-20 17:21:15 -0400 |
commit | 04296b7bfda45295a568b4b312e03828fae801dc (patch) | |
tree | d7e61107bab3cb25d3f881506056ba2754eb2284 /drivers/mmc/card/queue.h | |
parent | d78d4a8ad53f345dd3c0bb5f8d377baa523739f7 (diff) | |
download | op-kernel-dev-04296b7bfda45295a568b4b312e03828fae801dc.zip op-kernel-dev-04296b7bfda45295a568b4b312e03828fae801dc.tar.gz |
mmc: queue: add a second mmc queue request member
Add an additional mmc queue request instance to make way for two active
block requests. One request may be active while the other request is
being prepared.
Signed-off-by: Per Forlin <per.forlin@linaro.org>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Venkatraman S <svenkatr@ti.com>
Tested-by: Sourav Poddar <sourav.poddar@ti.com>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/card/queue.h')
-rw-r--r-- | drivers/mmc/card/queue.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/card/queue.h b/drivers/mmc/card/queue.h index c1a69ac..1a637d2 100644 --- a/drivers/mmc/card/queue.h +++ b/drivers/mmc/card/queue.h @@ -29,8 +29,9 @@ struct mmc_queue { int (*issue_fn)(struct mmc_queue *, struct request *); void *data; struct request_queue *queue; - struct mmc_queue_req mqrq[1]; + struct mmc_queue_req mqrq[2]; struct mmc_queue_req *mqrq_cur; + struct mmc_queue_req *mqrq_prev; }; extern int mmc_init_queue(struct mmc_queue *, struct mmc_card *, spinlock_t *, |