From patchwork Mon Mar 30 11:42:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 11465345 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 60C201392 for ; Mon, 30 Mar 2020 11:44:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3F54320757 for ; Mon, 30 Mar 2020 11:44:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=flygoat.com header.i=jiaxun.yang@flygoat.com header.b="gwPJW4wQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729669AbgC3LoZ (ORCPT ); Mon, 30 Mar 2020 07:44:25 -0400 Received: from sender3-op-o12.zoho.com.cn ([124.251.121.243]:17803 "EHLO sender3-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729871AbgC3LoY (ORCPT ); Mon, 30 Mar 2020 07:44:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1585568612; s=mail; d=flygoat.com; i=jiaxun.yang@flygoat.com; h=From:To:Cc:Message-ID:Subject:Date:MIME-Version:Content-Transfer-Encoding:Content-Type; bh=YSRf2S10R5lfweo4/h3clj4CyqQaWqLr3lMMzNGRYBY=; b=gwPJW4wQ/qwVcYA7YxNkRMCoXUguo7DDjST72u6diSUbh/+ceVUV0MCoOuXzMCUm atSMLhu6AjkEt/GtocsDB5hRmtfFLNuMnxmEs5RpjobYpsUdV6KWKtXE239PN9JEtSS 3JoLgIP1uU6GhGxHvlGu8jy1h8GBpj1yuON0hb78= Received: from localhost.localdomain (39.155.141.144 [39.155.141.144]) by mx.zoho.com.cn with SMTPS id 1585568609395637.4466513352797; Mon, 30 Mar 2020 19:43:29 +0800 (CST) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: Jiaxun Yang , Bjorn Helgaas , Rob Herring , Thomas Bogendoerfer , Huacai Chen , Lorenzo Pieralisi , Andrew Murray , Paul Burton , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <20200330114239.1112759-1-jiaxun.yang@flygoat.com> Subject: [PATCH 0/5] Loongson64 Generic PCI driver Date: Mon, 30 Mar 2020 19:42:25 +0800 X-Mailer: git-send-email 2.26.0.rc2 MIME-Version: 1.0 X-ZohoCNMailClient: External Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Jiaxun Yang (5): PCI: OF: Don't remap iospace on unsupported platform PCI: Add Loongson PCI Controller support dt-bindings: Document Loongson PCI Host Controller MIPS: DTS: Loongson64: Add PCI Controller Node MIPS: Loongson64: Switch to generic PCI driver .../devicetree/bindings/pci/loongson.yaml | 52 ++++ arch/mips/Kconfig | 1 + arch/mips/boot/dts/loongson/rs780e-pch.dtsi | 17 +- arch/mips/loongson64/Makefile | 2 +- arch/mips/loongson64/vbios_quirk.c | 29 ++ arch/mips/pci/Makefile | 1 - arch/mips/pci/fixup-loongson3.c | 71 ----- arch/mips/pci/ops-loongson3.c | 116 -------- drivers/pci/controller/Kconfig | 10 + drivers/pci/controller/Makefile | 1 + drivers/pci/controller/pci-loongson.c | 263 ++++++++++++++++++ drivers/pci/of.c | 9 + 12 files changed, 382 insertions(+), 190 deletions(-) create mode 100644 Documentation/devicetree/bindings/pci/loongson.yaml create mode 100644 arch/mips/loongson64/vbios_quirk.c delete mode 100644 arch/mips/pci/fixup-loongson3.c delete mode 100644 arch/mips/pci/ops-loongson3.c create mode 100644 drivers/pci/controller/pci-loongson.c