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=1796460925; b=x0UNZrpIQkWG/DWaVXgiJRI3P0esGxFhVpjku9i2XgyanXAEKfUC0gH5SzjGk88XqLat F9b2mga8gs9noN/DNh1JWHv3IlwGrtxw+81ycHy/a+ZERkPRLUOpoTW2Ac6uTM4dEZSLV R+1oNNbfVp2TzsaS+l3ycPvgJysZEFyBKd/81KWCSK20KDpzFF5mEzDwpA7ZAvR6omyG1 d9Cwy9TfbBEGlZKN1Cvi77QNAeK+ScvMOZqQMmGJzhJL8FKLFxJDoF5ijtydggAN2IQP1 WTy/W64X0yXHT/XPVCE56FqL5YTbBnRbEdrb6E9w3taomKtLkExqvKWsKdhd++u0/fw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796460925; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=PVx3iLA0Ry/P3e+/C/c2XJzBsC8wZ5bx/mAqmHVHhKw=; b=wFbP1fR6YE/0GTeqLUyUEbios70dUYr2F3x7Ddana05JI/W467YuA7n1vdxgM0EULaOL Mq/ILPjfkwhddjFnd4gSfdJsAsbpMjDJIcOTHobauch8qW7VojiITOMlcQxVohfPk8H0j FP+oYCJHP3ilvtA7JOvqytDGGpjRBRRj7tPyKlvem3Vu5Y59iWnNYCXCn6km7iO0nHKK1 5fuE+zolyyrzQ6LANLt0mNpdgi2N3KLkXA9IEPLbKulsYKzBz0zoJD+cim+f5RQ3a0AGk 4PLPjJ3UXOx5GVHeQZ7T5SWBT1RaTTgv6sTDjfNQ05QKV+b5FRFjrpQuH0k+m0Z8pPw== 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=a61k4I3n; 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 83D55606A322 for ; Sat, 5 Dec 2026 08:55:25 +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=a61k4I3n Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15F541F00A07; Sat, 5 Dec 2026 08:55:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796460925; bh=PVx3iLA0Ry/P3e+/C/c2XJzBsC8wZ5bx/mAqmHVHhKw=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=a61k4I3n4rcxyoi+Yddj4KjTlTEd/CXC885TPrNYsNx+kZlF97AvxT9tuivCBnHD4 wIw4Skk+Jc1zt1hu42ZX85h8ShVoTe0oJbq8yLz279fLa/ulggAslLFp8Dvom0SC3L yEttIT4cMEaA1LsIRWRURp9+640N69jfn5ACbvD9mtwlUvWp8+N5mcglJkA1FocorQ TAAM9jPrkdFIWE4jJoN8Z4obw86Lhsj4RRsvb/VIbvglxDz8TB0dMNChII1zSIvbqZ 0o3s+MS4gkUG5mvlCJlus3SFe+brbCFbci4ESsA7608AH7pct1bUS++bnto/O5+bJV SPxW/PA48qigw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4 14/14] thunderbolt: Drop WARN_ON() in tb_disconnect_pci() Reply-To: sashiko-reviews@lists.linux.dev To: "Chunfeng Yun" Cc: linux-usb@vger.kernel.org In-Reply-To: <20261205083342.4009278-15-chunfeng.yun@mediatek.com> References: <20261205083342.4009278-1-chunfeng.yun@mediatek.com> <20261205083342.4009278-15-chunfeng.yun@mediatek.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 08:55:24 +0000 X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] thunderbolt: commit message misstates tunnel activation failure path -- commit 16fea81347e049131d20cafc2ed656d8608d6787 Author: Chunfeng Yun thunderbolt: Drop WARN_ON() in tb_disconnect_pci() This commit removes the WARN_ON() checks for a missing upstream PCIe port or PCIe tunnel in tb_disconnect_pci(), keeping the -ENODEV return. > - If PCIe tunnel activation previously failed (e.g., due to link > training or Type-C handshake hiccups), the tunnel was never > established in the first place. [Severity: Low] Is this example accurate? When tb_tunnel_activate() fails in tb_tunnel_pci(), it returns -EIO, so tb_switch_set_authorized() leaves sw->authorized at 0. Deauthorization then returns early in tb_switch_set_authorized() and disapprove_switch() skips the switch, so tb_disconnect_pci() is not reached. Instead, an authorized switch can reach tb_disconnect_pci() without a PCIe tunnel when tb_tunnel_pci() finds no upstream or downstream PCIe port and returns 0, setting sw->authorized to 1 without creating a tunnel. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205083342.4009= 278-1-chunfeng.yun@mediatek.com?part=3D14