mmc: queue: Introduce queue depth and use it to allocate and free
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 29 Nov 2016 10:09:15 +0000 (12:09 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 5 Dec 2016 09:31:07 +0000 (10:31 +0100)
commitc5bda0ca6fab8e040c8ea3c71fdd16deee0f132f
treed1cf7272bc96b59f524048e8788397dc898c76f2
parentc09949cff5eb408c30f154207ebdc706d94fe1f3
mmc: queue: Introduce queue depth and use it to allocate and free

Add a mmc_queue member to record the size of the queue, which currently
supports 2 requests on-the-go at a time. Instead of allocating resources
for 2 slots in the queue, allow for an arbitrary number.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/card/queue.c
drivers/mmc/card/queue.h