Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2558265ybz; Sun, 26 Apr 2020 23:07:50 -0700 (PDT) X-Google-Smtp-Source: APiQypJOrp2SkWlLzvuDRW9/B7OvSjSjgL1dzvgPBEV5cz8086iD1OcSRYvRMFdXGwOITyTa8pzX X-Received: by 2002:aa7:c2d2:: with SMTP id m18mr17716347edp.142.1587967670744; Sun, 26 Apr 2020 23:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587967670; cv=none; d=google.com; s=arc-20160816; b=ieAv3aJbPGFb4Mc7EFZXWEVwJEkODbfvxGvQB8XVPuPxEWGt4jTc/ea1doOVGD+kKa iEWSUZ2m4ny/PKHw1YhW0oTaLbl4xIj4T8SoV1tHer/VFZJJxtt3cTlT/OETW+Dvh4p2 KEFGF5awSm+xawAiCGGbalvV/I5rGQZqTBl+sIj3RYHFMSnKtBD035/na/nMxdfEhSnZ AiakQ9h/6vmZFf/NTn2+giND1MsxA7Mc763+//+eMQrNOQJSoKy0lGjV1p5uBzkmj2kx /wgQu3Dn0ET8RRyUGrRvv4hZIe4BDzm8p0Ti7Y3eq4HP59uUvJ+QQh9ojfW8Uuy68qv8 g1Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=zHUu0sZ5J+Wj688fW4lLSPEasof5JaAx5orFY6aOffw=; b=jUpnVqBt92SJFB1BUWtD/e2AMkfEfKLd7Zgideub1u0HMUd+8y3Pw4YdHcldQr0ZMk wigqZKHxSOh3UOClvjDXodRIdARvhNf7Dq9zHd5de6mfetiKt93IbtVTlAHNuoHtzrhu KVl6swrqCvJqnj6f6hb3EzrlVQb45E9xIhNFmNu8ovhRv7SBIO9gCM+q7nrxqt8Gg3zP L26Z7MdiCpocTmHFFbbV1VpCCw4PDOwHpD5Oh7g6PEsx0j5zukbTx2HWNFLJQI77MILh CjgSHsgFo6bbwsUMtyP75ox/LvsJ7j2UXlntkuSUBYhyb6H1ht67wZZEBBsq0ILnoG1S BU/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=OKelKojN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si7436644edv.534.2020.04.26.23.07.27; Sun, 26 Apr 2020 23:07:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=OKelKojN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726431AbgD0GGE (ORCPT + 99 others); Mon, 27 Apr 2020 02:06:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726221AbgD0GGE (ORCPT ); Mon, 27 Apr 2020 02:06:04 -0400 Received: from vultr.net.flygoat.com (vultr.net.flygoat.com [IPv6:2001:19f0:6001:3633:5400:2ff:fe8c:553]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 266CBC061A0F; Sun, 26 Apr 2020 23:06:04 -0700 (PDT) Received: from localhost.localdomain (unknown [IPv6:2001:da8:20f:4430:250:56ff:fe9a:7470]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 3DEEC20CF2; Mon, 27 Apr 2020 06:06:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1587967563; bh=QAo1cw4WCgJFDVWUxM13VAcvn+SmYxagV5M4P3ljeig=; h=From:To:Cc:Subject:Date:From; b=OKelKojNCASZ2oq0SZiu0mHP7rZzWiA7Y5/50p+fmagXxuCSJScOXac5kLs5YD8CT BkeBdTjGGBhTAiSzynpJmr1Ra+y6DCqE6fieItbq2CJYB/daMGvEg65lZnA3SHJn2z AtnM5pv87sn4OafBTsvOT7rOiq8yHuVzyL9lvXQrAn/0PbiBDi5YZx+XB43Skb3z2J BSx4EAdmifdXb86QLuHEG3LeQfhQQH6NA4s39Z7ufiNUpdx1xjuBbz8uyxslxfnsy6 rQ91TT4Zimvge8oJ22M2df3ZoiX2/P6YZdlpt8TUlH4yjgnpp4hpp3qvfx886lkmsx KUirX4FGAWnVA== From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: Jiaxun Yang , Bjorn Helgaas , Rob Herring , Thomas Bogendoerfer , Huacai Chen , Lorenzo Pieralisi , Paul Burton , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 0/5] Loongson PCI Generic Driver Date: Mon, 27 Apr 2020 14:05:37 +0800 Message-Id: <20200427060551.1372591-1-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.0.rc2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This series converts Loongson PCI into a generic PCI controller driver and adds support for LS2K SoC and LS7A PCH's PCI support. Is it possible to let patch 1~3 go through PCI tree and patch 4~5 go through MIPS tree? Thanks. v6: Drop first the patch of previous versions. Driver code clean-ups according to rob's suggestion. It looks like I had a wrong impression on generic IO port handeling and now the issue has been fixed, I implemented PCI_IOBASE for MIPS[1]. Now the address is uniform here. [1]: https://patchwork.kernel.org/cover/11510499/ Jiaxun Yang (5): PCI: Don't disable decoding when mmio_always_on is set 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 | 62 +++++ arch/mips/Kconfig | 1 + arch/mips/boot/dts/loongson/rs780e-pch.dtsi | 12 + 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 | 251 ++++++++++++++++++ drivers/pci/probe.c | 2 +- 12 files changed, 368 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 -- 2.26.0.rc2