From: sashiko-bot@kernel.org
To: "YuanZhe Liu" <25031212351@stu.xidian.edu.cn>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH] USB: serial: ti_usb_3410_5052: fix read urb resubmission at open
Date: Mon, 30 Nov 2026 15:09:47 +0000 [thread overview]
Message-ID: <sashiko-outbox-241474@kernel.org> (raw)
In-Reply-To: <20261130150117.7301-1-25031212351@stu.xidian.edu.cn>
> A port that has been throttled keeps TI_READ_URB_STOPPED across close as
> the read urb state is never reset.
>
> During the next open(), ti_set_termios() is called before the port has
> been started and would therefore restart the read urb, which is then
> submitted a second time at the end of open():
>
> URB 00000000b0fe02b4 submitted while active
> WARNING: CPU: 0 PID: 1840 at drivers/usb/core/urb.c:379 usb_submit_urb+0x14c5/0x1790
> ti_usb_3410_5052_2 ttyUSB0: ti_open - submit read urb failed, -16
>
> The failed submit also leaves the read urb running after open() returns
> and, as the port is never marked initialized, close() will not kill it.
>
> Fix this by resetting the read urb state before termios is applied so
> that the read urb is only submitted once, after the port has been
> started.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Cc: stable@vger.kernel.org # 2.6.12
> 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/20261130150117.7301-1-25031212351@stu.xidian.edu.cn?part=1
prev parent reply other threads:[~2026-11-30 15:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 15:01 [PATCH] USB: serial: ti_usb_3410_5052: fix read urb resubmission at open YuanZhe Liu
2026-11-30 15:09 ` 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-241474@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