mmc: meson-gx: simplify bounce buffer setting in meson_mmc_start_cmd
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 4 Mar 2017 12:19:23 +0000 (13:19 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:07 +0000 (21:41 +0200)
commit94d765bbfb1910ef8db5699d19907a0756a99d03
treea4eed35880412d9da8970174ee3124046662bdc7
parentbc2dcc1a2a5e3e796b71f742d6d241ba0523739b
mmc: meson-gx: simplify bounce buffer setting in meson_mmc_start_cmd

Core ensures that there are no commands with cmd->data being set and
nothing to transfer. And we don't have to reset bit CMD_CFG_DATA_NUM
because cmd_cfg was zero-initialized and this bit isn't set.

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