]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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, 24 May 2021 13:40:54 +0000 (15:40 +0200)
commit1f3d5758d0a77aa4ca4c744c7e1b01b19e8a3153
tree5d4bd8b345cc1099f6a33a1a3743ef9cceb9b252
parent094c0a75403923886309688ad49148dd1f764b94
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