From patchwork Wed Feb 1 04:30:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huacai Chen X-Patchwork-Id: 13123763 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9053EC05027 for ; Wed, 1 Feb 2023 04:30:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229488AbjBAEa0 (ORCPT ); Tue, 31 Jan 2023 23:30:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbjBAEaX (ORCPT ); Tue, 31 Jan 2023 23:30:23 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEE2FFF3F for ; Tue, 31 Jan 2023 20:30:22 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 487D6CE228C for ; Wed, 1 Feb 2023 04:30:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7528C433EF; Wed, 1 Feb 2023 04:30:16 +0000 (UTC) From: Huacai Chen To: Bjorn Helgaas , Lorenzo Pieralisi , Rob Herring , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= Cc: linux-pci@vger.kernel.org, Jianmin Lv , Xuefeng Li , Huacai Chen , Jiaxun Yang , Huacai Chen , Tiezhu Yang Subject: [PATCH V4 0/2] PCI: Resolve Loongson's LS7A PCI problems Date: Wed, 1 Feb 2023 12:30:16 +0800 Message-Id: <20230201043018.778499-1-chenhuacai@loongson.cn> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org This patchset attempt to resolves Loongson's LS7A PCI problems: the first patch remove pci_disable_device() in pcie_portdrv_remove() to avoid poweroff/reboot failure; the second patch improves the mrrs quirk for LS7A chipset; V1 -> V2: 1, Update commit messages and comments. V2 -> V3: 1, Simply remove pci_disable_device() in pcie_port_device_remove() to solve poweroff/reboot failure. 2, Update commit messages and comments. V3 -> V4: 1, Just remove pci_disable_device() in pcie_portdrv_shutdown() and keep pcie_portdrv_remove() be the same logic as before. Huacai Chen, Tiezhu Yang and Jianmin Lv(2): PCI: Omit pci_disable_device() in .shutdown(). PCI: loongson: Improve the MRRS quirk for LS7A. Signed-off-by: Huacai Chen Signed-off-by: Jianmin Lv Signed-off-by: Tiezhu Yang --- drivers/pci/controller/pci-loongson.c | 44 ++++++++++++----------------------- drivers/pci/pci.c | 6 +++++ drivers/pci/pcie/portdrv.c | 16 +++++++++++-- include/linux/pci.h | 1 + 4 files changed, 36 insertions(+), 31 deletions(-) -- 2.27.0