Linux USB
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Dave Carey <carvsdriver@gmail.com>
Cc: linux-usb@vger.kernel.org, oneukum@suse.com, guanwentao@uniontech.com
Subject: Re: [PATCH] USB: cdc-acm: start bulk-IN polling when ALWAYS_POLL_CTRL is set
Date: Fri, 22 May 2026 10:41:38 +0200	[thread overview]
Message-ID: <2026052259-cricket-vertigo-329f@gregkh> (raw)
In-Reply-To: <20260515130432.714861-1-carvsdriver@gmail.com>

On Fri, May 15, 2026 at 09:04:32AM -0400, Dave Carey wrote:
> The INGENIC 17EF:6161 touchscreen composite device has a ~55-second
> watchdog that resets the USB device if the bulk-IN endpoint on the CDC
> data interface goes unread.  The existing ALWAYS_POLL_CTRL quirk keeps
> the notification endpoint (ctrlurb / EP 0x82) polling continuously, but
> that alone is insufficient: the firmware monitors bulk-IN activity, not
> just notification-endpoint activity.
> 
> Add acm_submit_read_urbs() calls to the two ALWAYS_POLL_CTRL paths that
> already restart the ctrlurb:
> 
>   1. acm_probe(): start bulk reads at probe time alongside the ctrlurb,
>      so the watchdog is satisfied from first bind without requiring a
>      userspace process to open /dev/ttyACMn.
> 
>   2. acm_port_shutdown(): restart bulk reads after port close alongside
>      the ctrlurb restart, so the watchdog keeps running when the last
>      TTY user closes the port.
> 
> acm_read_bulk_callback() already resubmits each URB unconditionally on
> normal completion, so once submitted the reads remain active until an
> explicit kill (disconnect, suspend).  acm_submit_read_urb() is a no-op
> for URBs that are already in flight (read_urbs_free bit clear), so the
> existing acm_port_activate() call remains correct and races are avoided.
> 
> Tested on Lenovo Yoga Book 9 14IAH10 (83KJ): without this patch the
> device resets every ~55 s when no TTY is open; with it the device
> remains stable indefinitely.
> 
> Signed-off-by: Dave Carey <carvsdriver@gmail.com>
> Tested-by: Dave Carey <carvsdriver@gmail.com>

It's implied when you sign off that you had tested, so no need to have
the tested-by.


  reply	other threads:[~2026-05-22  8:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-15 13:04 [PATCH] USB: cdc-acm: start bulk-IN polling when ALWAYS_POLL_CTRL is set Dave Carey
2026-05-22  8:41 ` Greg KH [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-05-15 14:19 Dave Carey
     [not found] <CALPvROTsnvWJZVmW6L_gdF5_Pv4ic3gKbAKYyyC_-n0mffmnAg@mail.gmail.com>
2026-05-15  5:58 ` 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=2026052259-cricket-vertigo-329f@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=carvsdriver@gmail.com \
    --cc=guanwentao@uniontech.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=oneukum@suse.com \
    /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