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=1796035683; b=dp9vkuV6YiOuH0bikgz1OhY6FQVuGYNdVSDjNVPePXMZhkrPe/VX1KOaoO8aDpAE1ZM5 0XXGmrmY+sqEMGEw23LMKQk5pXGr8XMpr2rqwL6W7tvnl0MwKSKMRzbnAuDoT7WJD5iDN GCWPZml2E5tO15tUqYoRXZb7cwZerxQsmct1Ob9IbR2DmaIpkB/hoBc0KekOBTyszVs2n eyNA4lMXyRzf5MGPRtIN5S4e5e4DsRiLstI5vFGENQibMNKfwuwqRA2xfZ7mRncPR8B/j 30peJEsDkbA9ebhesZi14E9jwWrxPuncvhcAA6L7G4c+iTsGGWvtG2OxE/kOgD+9L8A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796035683; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=NGQ5MPPUsu88JmNo9FdZ+uE06EeKccPLJKqGqy9Jeh4=; b=EYKnGYGXV8xlFqu42ZBnGdTTuZKcV3wQiVviznM5C6ieWjc2XO48xnj5/m5/hGjmQYbQ o45E1QvtSUXU1RomIcTbYmIqMY3MjUZS8U7vdkl/ya51sCDhGvXWXrmEPGwHHI981a/kd 9C7a0rjGKphg6iPkyDMfOapGe0q2Oo004Jg4G6JR9Gc5v4Szb+tFdnou2P+v5KD+tYW/5 1usVSNs3x91sefPdfK8ZjG8fXjYv+n/OY6i4E/RRB6/xgq8yfh4lU6Emg9G23XcXPTu0Z 4X5dguMWgVCcTY8jrrYyJCIt2BrqvAcNyAdBdtEKMF04c78ZD6Vkx7F0KHN6Fj6PXXw== 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=AbeDuTfB; 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 D4B4E606A327 for ; Mon, 30 Nov 2026 10:48:03 +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=AbeDuTfB Received: by smtp.kernel.org (Postfix) with ESMTPSA id 658A71F00896; Mon, 30 Nov 2026 10:48:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796035683; bh=NGQ5MPPUsu88JmNo9FdZ+uE06EeKccPLJKqGqy9Jeh4=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=AbeDuTfBXI3neWyl/DYggntefL1RZBwLD0U7FSDZX+F5rx3cIk5D4soZbqyhlIxnd ihumCgZNm6GrkoJNGXKDf+ymKh7d4p3DZmHOiYet/r+qDrE7MldUhGQWObcH9iqeln cJfwOTmJG/hrhC9kQIpwjy72RfwA7jBnhC9AR+vENkBox/+LwvQNi4+KcRYYvoPN6z +apDu1tR5ZYFAd/pY4i1hKEvkFMznHxCnA85JSle74bIpSOPXHeSlpGiypYPl9pj23 0wkkp0FJZ6hX7ff+Y2eAPwPeNdyHio2I7WuA329fssgu7CMFcXGJs9qqkyFTT8weAH vKqcUlxkCyBmg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] USB: serial: f81534: fix write urb reuse while still in flight Reply-To: sashiko-reviews@lists.linux.dev To: "YuanZhe Liu" <25031212351@stu.xidian.edu.cn> Cc: linux-usb@vger.kernel.org In-Reply-To: <20261130103950.22937-1-25031212351@stu.xidian.edu.cn> References: <20261130103950.22937-1-25031212351@stu.xidian.edu.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 10:48:02 +0000 X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > 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. >=20 > 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: >=20 > 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 > 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/20261130103950.2293= 7-1-25031212351@stu.xidian.edu.cn?part=3D1