From patchwork Tue Jun 29 08:55:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huacai Chen X-Patchwork-Id: 12349555 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2936C11F66 for ; Tue, 29 Jun 2021 08:54:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 99F46613FE for ; Tue, 29 Jun 2021 08:54:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232566AbhF2I5A (ORCPT ); Tue, 29 Jun 2021 04:57:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:57064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232491AbhF2I46 (ORCPT ); Tue, 29 Jun 2021 04:56:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E512361D9E; Tue, 29 Jun 2021 08:54:29 +0000 (UTC) From: Huacai Chen To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Xuefeng Li , Huacai Chen , Jiaxun Yang , Huacai Chen , Tiezhu Yang , Jianmin Lv Subject: [PATCH V5 0/4] PCI: Loongson-related pci quirks Date: Tue, 29 Jun 2021 16:55:17 +0800 Message-Id: <20210629085521.2976352-1-chenhuacai@loongson.cn> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org This patchset resolve some Loongson-related pci problems (however, some of them affect not only Loongon platform). The first patch has been sent before, and nearly all reviewers' questions had been answered at that time [1]. The second patch move some LS7A quirks to quirks.c, where can be shared by multi architectures. The third patch improve the mrrs quirk for LS7A chipset, and the fourth patch add a new quirk for LS7A chipset. [1] http://patchwork.ozlabs.org/project/linux-pci/patch/1600680138-10949-1-git-send-email-chenhc@lemote.com/ V1 -> V2: 1, Rework the 4th patch; 2, Improve commit messages; 3, Remove the last patch since there is better solutions. V2 -> V3: 1, Add more affected device ids for the 4th patch; 2, Improve commit messages to describe root causes. V3 -> V4: 1, Rework the MRRS quirk patch; 2, Improve commit messages to describe root causes, again. V4 -> V5: 1, Improve the MRRS quirk patch; 2, Change the order of 2nd and 3rd patch; 3, Improve commit messages to describe root causes, again. Huacai Chen, Tiezhu Yang and Jianmin Lv(4): PCI/portdrv: Don't disable device during shutdown. PCI: Improve the MRRS quirk for LS7A. PCI: Move loongson pci quirks to quirks.c. PCI: Add quirk for multifunction devices of LS7A. Signed-off-by: Huacai Chen Signed-off-by: Tiezhu Yang Signed-off-by: Jianmin Lv --- drivers/pci/controller/pci-loongson.c | 69 ----------------------------- drivers/pci/pci.c | 6 +++ drivers/pci/pcie/portdrv.h | 2 +- drivers/pci/pcie/portdrv_core.c | 6 ++- drivers/pci/pcie/portdrv_pci.c | 15 ++++++- drivers/pci/quirks.c | 81 +++++++++++++++++++++++++++++++++++ include/linux/pci.h | 1 + include/linux/pci_ids.h | 11 +++++ 8 files changed, 117 insertions(+), 74 deletions(-) -- 2.27.0