Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp410068ybt; Wed, 17 Jun 2020 04:21:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtG8AL1Ki87NruFNhwxOTL4Z6thai/o9lTn9siOtFUaYEsvVNDk6Mq6ueKnZMLcq4HHbrv X-Received: by 2002:a17:906:7283:: with SMTP id b3mr7349972ejl.163.1592392917760; Wed, 17 Jun 2020 04:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592392917; cv=none; d=google.com; s=arc-20160816; b=F+SZn4+iuPTUvdQgwGOoVQEWDGVDgK4BVN0SN0vv1QMZfKgnuVeUABvRekY2urFz9j jlNHJdro9kO+a8DuEDaamnK9zVP1zQWuHHpMWc01EjNoDmLemNdU9/0TyNxlOWQyQb8z tWohPCaf3BaYV2ntFvJJfHhQe1TJ6XUby9nSV4/u4CXVCqt/QyPN+/i8Zro/YBz3pF+U LEPQrgYktGAMVDTEhJxyrYfMkDEEGkm4nQxUoqw6nglrLjf9L7T66uRLeRsC0jwFLgaK 21Xkhq/jFi7/PAFarZdMqb6ln2IJMlUWILuJI/azbA4a9kp1khBMWAOE2HuPZE+rRbJE QKhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=biBA38YB/8Ba15rtF3iLiKt3STg88p4BoP9ttgPQvdw=; b=ZjjMszrW5TglkRROzBUuOTzZN/f59/OH5OX78uPxyKULr5ZePjhR3smwvrmB3sRGPZ 5tvqXlwWuV02q26px1f1l2zh5R8QonWJitBTH4MUI2dSdtyqL8Viz9bTEIHf6BQ5sSu5 zdeSlQ9UD4n8GGUoKNNmpFi8wCvAZSeGlgmBfJQMPDirDNIc2p3u8pqBafrjQTxNe+/I 4pumMJ/PlE4ovfnXnBvWuPiEzjdlJoLfYzP2qNhCpnyu8C9XiHBYGzZy/zvqPz4hZ8jR l8YmUanmHeo5tgGO5uvnOzE9QWDx/0Gvfij8yZ9l6GUmDCzmAmRGh8p0ukxMIku/S4hi AJ3g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p6si12323543ejb.575.2020.06.17.04.21.35; Wed, 17 Jun 2020 04:21:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726974AbgFQLRj (ORCPT + 99 others); Wed, 17 Jun 2020 07:17:39 -0400 Received: from elvis.franken.de ([193.175.24.41]:35911 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726905AbgFQLRe (ORCPT ); Wed, 17 Jun 2020 07:17:34 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1jlW4P-0006Ho-01; Wed, 17 Jun 2020 13:17:29 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 9B32DC06C3; Wed, 17 Jun 2020 13:09:13 +0200 (CEST) Date: Wed, 17 Jun 2020 13:09:13 +0200 From: Thomas Bogendoerfer To: =?iso-8859-1?Q?=C1lvaro_Fern=E1ndez?= Rojas Cc: bhelgaas@google.com, robh+dt@kernel.org, lorenzo.pieralisi@arm.com, p.zabel@pengutronix.de, jiaxun.yang@flygoat.com, paulburton@kernel.org, info@metux.net, allison@lohutok.net, kstewart@linuxfoundation.org, tglx@linutronix.de, jonas.gorski@gmail.com, f.fainelli@gmail.com, bcm-kernel-feedback-list@broadcom.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: Re: [PATCH 1/3] mips: bmips: add PCI support Message-ID: <20200617110913.GB9940@alpha.franken.de> References: <20200617102556.3792821-1-noltari@gmail.com> <20200617102556.3792821-2-noltari@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200617102556.3792821-2-noltari@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 17, 2020 at 12:25:54PM +0200, ?lvaro Fern?ndez Rojas wrote: > BMIPS SoCs with PCI: BCM6358, BCM6368. > BMIPS SoCs with PCIe (gen1): BCM6328, BCM6362, BCM63268. > BMIPS SoCs with PCIe (gen2): BCM6318. > > Signed-off-by: ?lvaro Fern?ndez Rojas > --- > arch/mips/Kconfig | 1 + > arch/mips/pci/Makefile | 1 + > arch/mips/pci/fixup-bmips.c | 17 +++++++++++++++++ > 3 files changed, 19 insertions(+) > create mode 100644 arch/mips/pci/fixup-bmips.c > > diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig > index 6fee1a133e9d..357026cb51de 100644 > --- a/arch/mips/Kconfig > +++ b/arch/mips/Kconfig > @@ -230,6 +230,7 @@ config BMIPS_GENERIC > select ARCH_HAS_SYNC_DMA_FOR_CPU_ALL > select ARCH_HAS_PHYS_TO_DMA > select BOOT_RAW > + select HAVE_PCI > select NO_EXCEPT_FILL > select USE_OF > select CEVT_R4K as everything is using DT in your patch, can't you use PCI_DRIVERS_GENERIC here and drop fixup-bmips ? Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]