From: Ulf Hansson <ulf.hansson@linaro.org> To: Johan Hovold <johan@kernel.org> Cc: linux-mmc <linux-mmc@vger.kernel.org>, Linux USB List <linux-usb@vger.kernel.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, "# 4.0+" <stable@vger.kernel.org> Subject: Re: [PATCH] mmc: vub3000: fix control-request direction Date: Mon, 24 May 2021 16:11:00 +0200 [thread overview] Message-ID: <CAPDyKFpw-ydfWXM0+Lz3KHq2X3f2S_47XA-43Rw4e6ZgOrobWw@mail.gmail.com> (raw) In-Reply-To: <20210521133026.17296-1-johan@kernel.org> On Fri, 21 May 2021 at 15:30, Johan Hovold <johan@kernel.org> wrote: > > 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> Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/vub300.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/vub300.c b/drivers/mmc/host/vub300.c > index 739cf63ef6e2..4950d10d3a19 100644 > --- a/drivers/mmc/host/vub300.c > +++ b/drivers/mmc/host/vub300.c > @@ -2279,7 +2279,7 @@ static int vub300_probe(struct usb_interface *interface, > if (retval < 0) > goto error5; > retval = > - usb_control_msg(vub300->udev, usb_rcvctrlpipe(vub300->udev, 0), > + usb_control_msg(vub300->udev, usb_sndctrlpipe(vub300->udev, 0), > SET_ROM_WAIT_STATES, > USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, > firmware_rom_wait_states, 0x0000, NULL, 0, HZ); > -- > 2.26.3 >
prev parent reply other threads:[~2021-05-24 14:11 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-21 13:30 Johan Hovold 2021-05-24 14:11 ` Ulf Hansson [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=CAPDyKFpw-ydfWXM0+Lz3KHq2X3f2S_47XA-43Rw4e6ZgOrobWw@mail.gmail.com \ --to=ulf.hansson@linaro.org \ --cc=johan@kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mmc@vger.kernel.org \ --cc=linux-usb@vger.kernel.org \ --cc=stable@vger.kernel.org \ --subject='Re: [PATCH] mmc: vub3000: fix control-request direction' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.