Linux USB
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "YuanZhe Liu" <25031212351@stu.xidian.edu.cn>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH v2] USB: serial: f81534: fix write urb reuse while still in flight
Date: Mon, 30 Nov 2026 10:48:02 +0000	[thread overview]
Message-ID: <sashiko-outbox-240885@kernel.org> (raw)
In-Reply-To: <20261130103950.22937-1-25031212351@stu.xidian.edu.cn>

> The driver uses the device's TX_EMPTY notification as the only gate for
> reusing the single bulk-out urb.  That notification only tells that the
> device transmitter has drained; it does not guarantee that the host has
> retired the previous transfer, which is completed asynchronously.
> 
> When a TX_EMPTY block is received while the tty layer is submitting the
> next transfer, the block is parsed in the bulk-in completion handler and
> f81534_submit_writer() submits the same urb again:
> 
>   URB 00000000f03a9f3b submitted while active
>   WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb
>   ...
>   f81534_submit_writer
>   f81534_process_read_urb
>   ...
> [ ... ]
> Co-developed-by: Bin Yu <byu@xidian.edu.cn>
> Signed-off-by: Bin Yu <byu@xidian.edu.cn>
> Co-developed-by: Cheng Wen <wencheng@xidian.edu.cn>
> Signed-off-by: Cheng Wen <wencheng@xidian.edu.cn>
> Signed-off-by: YuanZhe Liu <25031212351@stu.xidian.edu.cn>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261130103950.22937-1-25031212351@stu.xidian.edu.cn?part=1

      reply	other threads:[~2026-11-30 10:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 10:39 [PATCH v2] USB: serial: f81534: fix write urb reuse while still in flight YuanZhe Liu
2026-11-30 10:48 ` sashiko-bot [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=sashiko-outbox-240885@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=25031212351@stu.xidian.edu.cn \
    --cc=linux-usb@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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