From patchwork Fri Aug 23 04:25:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mario Limonciello X-Patchwork-Id: 13774588 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8676513C66A; Fri, 23 Aug 2024 04:26:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724387162; cv=none; b=QR6u6LcXg2bJTfhT9jKdN6QjkopmjqwvU+izqW3GBmsn6Y8tXHqe8WtCmyUxWzyX3l/+KJxEUDgKdGMcLog4xFP+2mSZ5JL3PWCt5Y5A92yfyePkcjTDr70zO6QQerQs+x4yDTeVaMU/UQEPgCOEHuRiKwKPfvgsu4Hcne8KQH8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724387162; c=relaxed/simple; bh=Rzi8UdSIlhz3Lz27Lgf4llrXyRuDGgJEajx2s+fq7bM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hVkgyJbNhJC/Yf4am+LxAAY/1KVecrxpCc+CD2IwM3C1CgvzlInWKTNYXX569RGH/8ldV6y8ajw4AM8EAjp+UGbPe57b08Bd8xByXWrwF92OrgT0IjZ6rIUhFlI28579hGcpNZT7yG8GKzMPsE+C+FRPQNUcu5SIe3i2BVu23nE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uX1Hcz5d; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uX1Hcz5d" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08774C32786; Fri, 23 Aug 2024 04:26:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724387162; bh=Rzi8UdSIlhz3Lz27Lgf4llrXyRuDGgJEajx2s+fq7bM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uX1Hcz5dZVuGVBg+ODao+DPp4pCyuYwuvpA9Tuoa5xHlmEEVneOVXni4DQ5Mc3FY1 fRb6iFq6dKHCput+mUtlG3BoHxfbJBBaaJWfSpUGSZ6LTh+oW/g6BnWik+hoyq491Y lji4oUQhHQRzrBWOyhuGbBE+zJhJRjmFgoDPqi/YtpLGGQXiVEKCL3Dhvho+/ZM1wt TBIryOBvPp55dGnXeu6qm33D1u/sK77f0VUpwIdNJtngG4tmWQzGKR9CKxhNeA5w7x 8zQGL+Sn8vHTJ/c8PPDW2hy8NXOcpKJ+JDJJFo20C+UX16xINyLN5h0XaO4E+0RQaN gOZtD5dVdn8Dg== From: Mario Limonciello To: Bjorn Helgaas , Mathias Nyman , Mika Westerberg Cc: "open list : PCI SUBSYSTEM" , open list , "open list : USB XHCI DRIVER" , Daniel Drake , Gary Li , Greg Kroah-Hartman , =?utf-8?q?Ilpo_J=C3=A4rvin?= =?utf-8?q?en?= , Mario Limonciello Subject: [PATCH v4 5/5] PCI: Drop Radeon quirk for Macbook Pro 8.2 Date: Thu, 22 Aug 2024 23:25:08 -0500 Message-ID: <20240823042508.1057791-7-superm1@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240823042508.1057791-1-superm1@kernel.org> References: <20240823042508.1057791-1-superm1@kernel.org> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Mario Limonciello commit 5938628c51a7 ("drm/radeon: make MacBook Pro d3_delay quirk more generic") introduced a generic quirk for Macbook Pro 8.2s that contain Radeon graphics to ensure that enough time had past when the device was powered on. As the PCI core now verifies the device is in D0 during power on this extra artificial delay is no longer necessary. Signed-off-by: Mario Limonciello --- drivers/pci/quirks.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 3480a0445ff50..e76ff1037fb35 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -2038,14 +2038,6 @@ static void quirk_d3hot_delay(struct pci_dev *dev, unsigned int delay) dev->d3hot_delay); } -static void quirk_radeon_pm(struct pci_dev *dev) -{ - if (dev->subsystem_vendor == PCI_VENDOR_ID_APPLE && - dev->subsystem_device == 0x00e2) - quirk_d3hot_delay(dev, 20); -} -DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x6741, quirk_radeon_pm); - /* * NVIDIA Ampere-based HDA controllers can wedge the whole device if a bus * reset is performed too soon after transition to D0, extend d3hot_delay