From patchwork Thu Jul 1 07:44:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huacai Chen X-Patchwork-Id: 12353651 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 95D5AC11F64 for ; Thu, 1 Jul 2021 07:44:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7908B61492 for ; Thu, 1 Jul 2021 07:44:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234684AbhGAHq6 (ORCPT ); Thu, 1 Jul 2021 03:46:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:50566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229906AbhGAHq6 (ORCPT ); Thu, 1 Jul 2021 03:46:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5F1FF61417; Thu, 1 Jul 2021 07:44:26 +0000 (UTC) From: Huacai Chen To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Xuefeng Li , Huacai Chen , Jiaxun Yang , Huacai Chen , Jianmin Lv , Tiezhu Yang Subject: [PATCH V6 0/4] PCI: Loongson-related pci quirks Date: Thu, 1 Jul 2021 15:44:54 +0800 Message-Id: <20210701074458.1809532-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: The first patch improve the mrrs quirk for LS7A chipset. The second patch move some LS7A quirks to quirks.c, where can be shared by multi archi- tectures. The third patch add a new quirk for LS7A chipset to avoid poweroff/reboot failure, and the fourth patch add a new quirk for LS7A chipset to fix multifunction devices' irq pin mappings. 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. V5 -> V6: 1, Rework the 1st patch; 2, Adjust the order of the series. Huacai Chen, Tiezhu Yang and Jianmin Lv(4): PCI: Improve the MRRS quirk for LS7A. PCI: Move loongson pci quirks to quirks.c. PCI: Add quirk for LS7A to avoid reboot failure. PCI: Add quirk for multifunction devices of LS7A. Signed-off-by: Huacai Chen Signed-off-by: Jianmin Lv Signed-off-by: Tiezhu Yang --- drivers/pci/controller/pci-loongson.c | 69 ----------------------- drivers/pci/pci.c | 6 ++ drivers/pci/pcie/portdrv_core.c | 6 +- drivers/pci/quirks.c | 102 ++++++++++++++++++++++++++++++++++ include/linux/pci.h | 2 + include/linux/pci_ids.h | 11 ++++ 6 files changed, 126 insertions(+), 70 deletions(-) -- 2.27.0