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=1796310165; b=jrT3+ETKsiFBTboXfAk5fclojalGzfn8N8dkSeRBCNCwnumlB8O9lQ5+WDx4VEuFZZv2 LWugTIdXFb8VEgp5y/Ndpj2w7aQ5PbHabsLgwErmcBkHFtApdiGub4Vts1WzN3mXoMLlV zJ+HhW6whnecg8SwpuY7WXuapc3ca2LRWCljGMfJBY1hm4q3dKz4EkedzEdYyhtv2cOk5 nqZiX3M9ouWTq/NZur9Aa7c+UjV+wArAIwI/d4y1YL2HQ0QrnRiDLDICROIDGMAp1K4m5 Dz9weQFgE+cg0e7+9yXJB4cP9u2JMRuxO5m7oalpg0vT8oDUJzNYTB1FAVKyyCZSfFg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796310165; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=0s4G3ebQ8PQLuVtJuBZujwPiyCCBXhDh2vaai0MoNV4=; b=KntADAaxIQO8yJtpO66PYjMrahVMSqFkTrwfik2Hz5oPykhrZsys2JU4/zZ/EPKXN3qR Qo0xkGqiM+gbB+8SCcVkIqaD3K9zm8DN77V+ePHNNbHBGkguvtmPbIPxDeGESYK2yJ1cA 2cNl8MTrTjg7qU9Do67zIs7nXm+0pknes9c637qQLowi4oG1iKaQTs7GJwMZ/tOXMH56/ 6AgYgVtbUaIJ4awqeYtCpTEYiVktymfr07r21GxpnnBslhDSHlufvj2DU1+sPtEkeYbWd 7+ueYXUtPJQcTxJKiwAqkpmXKLeRAj/xLq6Vn/CnRa28bUw7OvzlY8d/v/dG608/VWg== 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=SIFIHNSv; 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 4DC8E606A32F for ; Thu, 3 Dec 2026 15:02:45 +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=SIFIHNSv Received: by smtp.kernel.org (Postfix) with ESMTPSA id 839C01F00896; Thu, 3 Dec 2026 15:02:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796310164; bh=0s4G3ebQ8PQLuVtJuBZujwPiyCCBXhDh2vaai0MoNV4=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=SIFIHNSvoMQ5rPQnQ25PKmvFbejbui1cGBurh6aBNPJrYT1zSKLFgEXOENZF7g4nt o73TvsAY9mkKdpTol4vogpzNVG+tgqEe04TJBTY6ufi7HiWoCEctEI/9gtPAlPPLwe aeTNurz7+UuRPaSzTU87oPeeqkhdHzRSa37cI56SkydRRB4n/piNFYq1+D8eElabvb QhMROW+JJTgleNGHQe9QYS6w48JXY+XWG9U6H3WbuDuXwjhAzD3WyWhiUttpnNH7Bb G4nucavuDm6m/FvCX7VRvDqJx83wepoH+nN70jc+VMjaFaVwQQYfSv7wRr31xRQzRq GySvi+y2RVA2w== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] PCI: mt7621: Release port reset controls on host registration failure Reply-To: sashiko-reviews@lists.linux.dev To: "Yige Jiang" Cc: linux-pci@vger.kernel.org In-Reply-To: <179630907465.68028.13430770028885227002.mt7621-v2@gmail.com> References: <179630907465.68028.13430770028885227002.mt7621-v2@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 15:02:44 +0000 X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > mt7621_pcie_parse_port() takes an exclusive reset control for each > root port. If pci_host_probe() fails, mt7621_pcie_probe() returns the > error from mt7621_pcie_register_host() without releasing the reset > controls for the ports on pcie->ports. A subsequent probe can then > fail to acquire those controls. >=20 > Use the existing remove_resets path on host registration failure to > release the controls and return the original error. >=20 > Fixes: 2bdd5238e756 ("PCI: mt7621: Add MediaTek MT7621 PCIe host controll= er driver") > Cc: stable@vger.kernel.org > Signed-off-by: Yige Jiang Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/179630907465.68028.= 13430770028885227002.mt7621-v2@gmail.com?part=3D1