All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Benjamin Marty <benjamin.marty@gmail.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: USB Gadget Filesystem HID stuck on write when using mass storage at the same time
Date: Tue, 29 Jun 2021 19:19:46 +0200	[thread overview]
Message-ID: <YNtWMnNUsuL5YE3g@kroah.com> (raw)
In-Reply-To: <CABSdY3LGN202SN5YJxnk_bMAx2-js=AB0hictqo69ENgWbMQSw@mail.gmail.com>

On Tue, Jun 29, 2021 at 03:45:46PM +0200, Benjamin Marty wrote:
> Hello
> 
> In my application, I boot a Linux System through USB Gadget mass
> storage and at the same time pass in USB Touch commands via USB HID
> Device. Both over the same USB OTG Gadget Link.
> 
> If I execute USB HID commands during high traffic over the USB Mass
> Storage, the HID device gets stuck. Writes to it are then blocking
> forever. I'm not sure if I use something wrong or if this is a Kernel
> issue. Do I maybe need to check something before I'm allowed to write
> to the HID device?
> 
> Hardware issue are unlikely, I tried it on the Raspberry Pi Platform
> and also on the NXP iMX8MM platform. Both have this HID device stuck
> issue. I have also tried multiple Intel Computers as USB Host.
> 
> I tried to document my issue here with test scripts to replicate what
> I do in my C Application with the same result:
> https://github.com/raspberrypi/linux/issues/4373

What kernel version are you using for your device?

What is locking up, the kernel on the device, or the kernel on the USB
host side?

And have you used usbmon to look at the USB traffic to ensure that you
really are sending the data you think you are sending?

thanks,

greg k-h

  reply	other threads:[~2021-06-29 17:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-29 13:45 USB Gadget Filesystem HID stuck on write when using mass storage at the same time Benjamin Marty
2021-06-29 17:19 ` Greg KH [this message]
2021-06-30  8:55   ` Benjamin Marty
2021-06-30  9:28     ` Greg KH
2021-06-30 10:25       ` Benjamin Marty
2021-07-01 11:04         ` Greg KH

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=YNtWMnNUsuL5YE3g@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=benjamin.marty@gmail.com \
    --cc=linux-usb@vger.kernel.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.