public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@bugzilla.kernel.org
To: linux-usb@vger.kernel.org
Subject: [Bug 212045] New: dwc2 gadget mode read call blocks
Date: Wed, 03 Mar 2021 23:51:23 +0000	[thread overview]
Message-ID: <bug-212045-208809@https.bugzilla.kernel.org/> (raw)

https://bugzilla.kernel.org/show_bug.cgi?id=212045

            Bug ID: 212045
           Summary: dwc2 gadget mode read call blocks
           Product: Drivers
           Version: 2.5
    Kernel Version: 5.9
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: USB
          Assignee: drivers_usb@kernel-bugs.kernel.org
          Reporter: tomasz@grobelny.net
        Regression: No

When implementing USB gadget on Odroid N2 I write descriptors for two endpoints
so I get ep0, ep1 and ep2 files. I open those files and try to read from ep0
and ep2. While ep0 more or less works, for ep2 I get weird behaviour: the
select() call returns 1 indicating that there is data to read and then read()
call blocks. It happens even if I set the file descriptor to O_NONBLOCK. Here
is the kernel log: https://pastebin.pl/view/aaa2d7f0

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

             reply	other threads:[~2021-03-04  0:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-03 23:51 bugzilla-daemon [this message]
2021-03-05  9:30 ` [Bug 212045] dwc2 gadget mode read call blocks bugzilla-daemon
2021-03-05 10:37 ` bugzilla-daemon
2021-03-10 10:13 ` bugzilla-daemon

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=bug-212045-208809@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@bugzilla.kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox