Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp7092833imm; Tue, 24 Jul 2018 08:16:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcYKXsUxgYDbhqPaCtgAOO39bpr6EP9sX5/V+vwRF2fNQ4L3Rj7EfUOiOUE7E2n6L5eL80k X-Received: by 2002:a63:6c05:: with SMTP id h5-v6mr16997377pgc.367.1532445376879; Tue, 24 Jul 2018 08:16:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532445376; cv=none; d=google.com; s=arc-20160816; b=eeVgN07hI6LEGQM6uvuxOwszmzC1hZ75vXmYRwret2wjek7jEwj92ATZdOyRoRxw3H /IZ49kKeKHgyYoOejDigl24gscgY0on5V/5gDVIbx5XPEOLFW+RLW/TFEHrQb3KANuzu PJm+kuv8E8uRzSVueWuum/iOGdGZ2ybheA/W54oMqdS8Bzrvt7bQ/ui4vaSHJs8Jj8dJ AiGviH0QjilRkignpfOwDnw/wIF2dxMEfK8zi3kdoP5ZchVOFQGIvPhHPc7+Kb1CaYCm XCNON/bSXrg1iy/Jxjs7v/tnRDe+jmeLvDC8xt0gEeMgvPIvHVYkJQrt+erjxedsRyCY 0uLg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=HwqA0+y2la7qAeC4ZdSL0nHm8XCVKshagVNLEjXGiuE=; b=HdLZBaqLFJHvGqBfk8NMMghOzZqjR8v6Ncwp6JBQ9xvawYGfJjpit7JO+5oA7pg/Au qdw978UAKWjFvB8E7PxN/0vNXP1XM+BhnjenNQFF5nH6vuZgA5kU5N0HaZMbs5zDOtte g1KLhOizjYd9cA9qWC31SuxMHvinhOZyMJoHI/PsjLFdFZfyd8eyZ1t8gwWh/uwi9j0b LPt9AIENEvuHZ3vD1aHfylohXhoTQer/apSP3UsOUX4ztGfx6BOTORF1N3OgHsB+JErM aCgtnj9jy2cI/yIf6sM1H1rUBgBPdgtixiT6olz+iDl4SxpeyesWWAx7KaXSkKD2fnuz Y/yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b7-v6si12768926plk.29.2018.07.24.08.16.01; Tue, 24 Jul 2018 08:16:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388483AbeGXQV5 (ORCPT + 99 others); Tue, 24 Jul 2018 12:21:57 -0400 Received: from foss.arm.com ([217.140.101.70]:53622 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388332AbeGXQV4 (ORCPT ); Tue, 24 Jul 2018 12:21:56 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EB4EA15AB; Tue, 24 Jul 2018 08:14:59 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id BD6503F237; Tue, 24 Jul 2018 08:14:59 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 6B57A1AE3B5E; Tue, 24 Jul 2018 16:14:59 +0100 (BST) Date: Tue, 24 Jul 2018 16:14:59 +0100 From: Will Deacon To: Alexei Colin Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Catalin Marinas , Alex Bounine , Barry Wood , John Paul Walters Subject: Re: [PATCH] arm64: enable RapidIO config options in Kconfig Message-ID: <20180724151458.GE25412@arm.com> References: <20180724134513.86796-1-acolin@isi.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180724134513.86796-1-acolin@isi.edu> 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 Tue, Jul 24, 2018 at 09:45:14AM -0400, Alexei Colin wrote: > ARM64 SoCs with a PCI bus present the RapiodIO options; SoCs with > RapidIO IP blocks but without a PCI bus, need to select HAS_RAPIDIO in > Kconfig.platforms. > > HAS_RAPIDIO was chosen over HAVE_RAPIDIO to be consistent with > other architectures which already define this flag (powerpc). > > Signed-off-by: Alexei Colin > --- > > Tested that kernel builds with RapidIO subsystem and switch drivers and that > modules insert successfully in a custom Qemu hardware model. > Maintainers for RapidIO subsystem CCed. > Similar patch for ARM has been submitted. > > arch/arm64/Kconfig | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 42c090cf0292..8dceaa5b674c 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -293,6 +293,22 @@ config PCI_SYSCALL > > source "drivers/pci/Kconfig" > > +config HAS_RAPIDIO > + bool > + default n > + > +config RAPIDIO > + tristate "RapidIO support" > + depends on HAS_RAPIDIO || PCI > + help > + This feature enables support for RapidIO high-performance > + packet-switched interconnect. > + > + If you say Y here, the kernel will include drivers and > + infrastructure code to support RapidIO interconnect devices. It feels a bit weird to push this help text into the arch Kconfig files, rather than just have them provide the HAS_RAPIDIO symbol, but if that's what everybody else is doing then I guess it's fine. Will