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=1796099176; b=cDGeMcmj5QfEpaXXM43FI6boBCB9bKLrthHvhi9+ACf/RjPiAXJO19OtJmNSt8UftSuJ xVwF9IWXNLKJ5bcaeGC2pmFBqEYkhdZrjKfEccJfwcqIJmNI+C1Fc0f3JA6qWWp0NCK0g Eh+JZGKW3vqD5yMW4d/hL2kC98KLQop/0m1SEVnngQaqcb8tbCPbz3BvpQTQoass2VouO hL75IhCCbBoWuXMeiDMM2XdARe/g/dZQn0uufqUw6MHju35dEXzMEeFzxiVKtUZDxqPeg WuXYvpbvtS4q59maCo7QSfIMiu/Jh3zxX4elMMDIYrrIphuhCKypSO22PN+JoyLCgtQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796099176; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=AXegDUHLmpn0Kbu8pJYpSostMJDpMYxoWY8whSlvRE4=; b=BYQjHoqzEai++PBxXii6QEzY4GddD38Nx6/ub6gnFX0CPGoabKiSVL3/+9yr1JB9Syg0 4NsI9mq7aYVAXQRddxnjsCmfcn9G3bHxinptKgy60+TCm4723R1et74OAFRZD5b3C5bCq HEBpKZlfSzGr1LJFrs9yzwAbBb5ribcnOIxVHmeLD5mIrlLfnsMulzjfkjoDpOuM+oan+ rLOv/PzVd3Q0efeU3MXwsNJqi0+I1XxbRga0hA1Yp6QwJIQN7ziTzRs2cH4fCxoo0LlGg DYo1cI8Smwis8I3M6xE5Ec7mwxLbr/Gfz3h/vneFu4G2ucB1/x9RLbzpINiKykxX+6g== 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=CZ8xW8VV; 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 9C877606A31A for ; Tue, 1 Dec 2026 04:26:16 +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=CZ8xW8VV Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7DDD1F00893; Tue, 1 Dec 2026 04:26:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796099176; bh=AXegDUHLmpn0Kbu8pJYpSostMJDpMYxoWY8whSlvRE4=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=CZ8xW8VVRjYxUa13kmS+fxD1vQok5Mtffd6MMrJWIHKyX4C6nj4Q/jKyONFJK5dtZ 1/kPbE9pYMA2W6VG+t9XcJmmGsw6wvRepnFgkQqGnCzS5027/q9Gis2kET2YZFKhjv xbfstzBy6Y612gbydWa031qRLPZ+vU2xSGmrMs/tqXVqNIEJ8Gq/4Q3vjOkXwgOSzR psUc/o5HqdIetdZ2sQYzDSDQ5jt80HPPM59x/d8sgqE9R36Loc7QfZ/jbtI2sG6nxL It5DSEBayecZQ08owpAv5OZj+kE1Nvt/W5Z5HWg12rzFvfHkVrJsxSKdd5xNuPCUbR 10txOOzeQSy1A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] usb: typec: tipd: do not fail probe on a connect() error in polling mode Reply-To: sashiko-reviews@lists.linux.dev To: "Cong Nguyen" Cc: linux-usb@vger.kernel.org In-Reply-To: <20261201042142.3169367-1-congnt264@gmail.com> References: <20261201042142.3169367-1-congnt264@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 04:26:15 +0000 X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > In polling mode tps6598x_probe() queues wq_poll and then tests ret, > which still holds the error from the connect() callback. Probe fails > with the poll work queued, and nothing cancels it before the > devm-allocated tps is freed. >=20 > In IRQ mode a failed connect() is only logged, because > devm_request_threaded_irq() overwrites ret. Test ret only for the IRQ > request, so polling mode behaves the same and never fails probe after > queueing the work. >=20 > Fixes: 0d6a119cecd7 ("usb: typec: tps6598x: Add support for polling inter= rupts status") > Signed-off-by: Cong Nguyen Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201042142.3169= 367-1-congnt264@gmail.com?part=3D1