mmc: meson-gx: set max block count and request size
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 7 Feb 2017 21:34:58 +0000 (22:34 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 14 Feb 2017 08:10:57 +0000 (09:10 +0100)
commitefe0b669716314072f0467368c2be2f501f04afc
treedd3be471d1275af80fe5b5c4cc87261e3e3c589c
parent92763b997e468700b26a8fdddc5bee3e3c2a39fa
mmc: meson-gx: set max block count and request size

So far max_blk_count isn't set what results in a default of value 8
to be used (PAGE_SIZE / block size).

Block length field has 9 bits, so set max_blk_count to 2^9-1 = 511.
In addition set max_req_size because max_blk_count is also limited
by max_req_size / block_size.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-gx-mmc.c