From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796051388; b=mM37hgGeRlJ7UjVgu0pOqnPQgW4qoHKbRGjJBWckMl2V8vq/Hg6ifolTrwH+Ea9DKusb v3OpXOVKcNdp+LlBNgu1f46KGHbrOLxhW4wMRGgoXb7oUjXsVJXOxb7sRKNc24Q4dRZ90 J8/V3fyN1UquttIJn3X8UuOIdf9LLTNdoVBHci3I0NmMqQsLDS8pThFJxBDqIr6LAMY6D 9zMsVCNDFkl69ukOvfICfEeQjsGx+BB5TKtYdp+SrjBqLmWoEho6uvEDxSKZNTU8OvVjB fngooAgwCb30FMXk512R0LWLMk7nAM26LE+OXUSA4JzrjckkuU/rJxpr16+gaNQsL8g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796051388; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=0BK/n0As/rIcymLLvD6wz27eLaRprq6coi/6q6ACd8A=; b=ii+jR9MnpxTYhbnd8E1vMX/s+B3Z6Xn7sqMODg9DZRSZLF1LiK/1mEjKQ2FLI2bW1Kks ul3IHgpsl+riEAH13ys709LbHWfbIfXULkmegMPEFEdkByy3x8ZNAXvs2uvwbtiUFFF8t dXmwJRVskYud5f6jmOHYCPO7B9QuEyCJ0mWvZQFrk4rxtIr0bgrOY/ZvORUSrQamhjjR/ ijbVucOB5zX2BDL8H03In9pkAfraAab3FBpMNLRf38REDKWbT5cXyGjYuUfdqOE9T3LRy YXad/2vBP6gBgjHXrO0MBZ2pRUYqpHLKUNtA43jCeYzCv/4B03PmK18UU7+WsTHaq9w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LLs9UqeC; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 192BD606A327 for ; Mon, 30 Nov 2026 15:09:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LLs9UqeC Received: by smtp.kernel.org (Postfix) with ESMTPSA id C05C61F0089A; Mon, 30 Nov 2026 15:09:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796051387; bh=0BK/n0As/rIcymLLvD6wz27eLaRprq6coi/6q6ACd8A=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=LLs9UqeCbAxCd+iGHrM8qy++ovTuybUPp+VHLAvnneOCmNqM+uxXHBAeussrjiRLW eXIw1bJaP/8aNb4I49nWzqVahNO9Flr4dzVhHMHmrwI7NGwYL1bHjaLN1Xz0njjMk3 inPvFBrVWF3M8iTqXGgW9OeZ2ihpHJuT/epse13vmlVa7ZwX2AYiwyvZUYImZgxuts XwYqf+S7DPEYv67/qbrNksNd3LFmulTZY8Gy8uQ8y5fUqmyVyuCUFgmZO4vGrfCYUR RX4jkG4lIePAkikWlfZRCAgj/KJZxNZ7G8xOS+FWi9q5Jfn7HlMYy3R8FDjcdeX/1w vu7zw/ijHfQnw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] USB: serial: ti_usb_3410_5052: fix read urb resubmission at open Reply-To: sashiko-reviews@lists.linux.dev To: "YuanZhe Liu" <25031212351@stu.xidian.edu.cn> Cc: linux-usb@vger.kernel.org In-Reply-To: <20261130150117.7301-1-25031212351@stu.xidian.edu.cn> References: <20261130150117.7301-1-25031212351@stu.xidian.edu.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 15:09:47 +0000 X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > A port that has been throttled keeps TI_READ_URB_STOPPED across close as > the read urb state is never reset. >=20 > 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(): >=20 > URB 00000000b0fe02b4 submitted while active > WARNING: CPU: 0 PID: 1840 at drivers/usb/core/urb.c:379 usb_submit_urb+0= x14c5/0x1790 > ti_usb_3410_5052_2 ttyUSB0: ti_open - submit read urb failed, -16 >=20 > 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. >=20 > 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. >=20 > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") > Cc: stable@vger.kernel.org # 2.6.12 > Co-developed-by: Bin Yu > Signed-off-by: Bin Yu > Co-developed-by: Cheng Wen > Signed-off-by: Cheng Wen > Signed-off-by: YuanZhe Liu <25031212351@stu.xidian.edu.cn> Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130150117.7301= -1-25031212351@stu.xidian.edu.cn?part=3D1