mmc: vub3000: fix control-request direction
authorJohan Hovold <johan@kernel.org>
Fri, 21 May 2021 13:30:26 +0000 (15:30 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 14 Jun 2021 11:57:41 +0000 (13:57 +0200)
commit3c0bb3107703d2c58f7a0a7a2060bb57bc120326
tree7554343121fb7b04dce4eda08e74500a5ac280df
parent809ae4e1ca0a719db29ed747fc2febf099a77b9f
mmc: vub3000: fix control-request direction

The direction of the pipe argument must match the request-type direction
bit or control requests may fail depending on the host-controller-driver
implementation.

Fix the SET_ROM_WAIT_STATES request which erroneously used
usb_rcvctrlpipe().

Fixes: 88095e7b473a ("mmc: Add new VUB300 USB-to-SD/SDIO/MMC driver")
Cc: stable@vger.kernel.org # 3.0
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210521133026.17296-1-johan@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/vub300.c