Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp7190063imm; Tue, 24 Jul 2018 09:51:23 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf9Snevgnpud1T/nX+vFVEuxuFW1KqeTod7FFBm+bqXyY6YfoOsxfdHZKT81/JrA9gMS0OQ X-Received: by 2002:a17:902:6845:: with SMTP id f5-v6mr17620686pln.173.1532451083767; Tue, 24 Jul 2018 09:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532451083; cv=none; d=google.com; s=arc-20160816; b=gEm5phskJ4bFioROXpc87DhLIkUcx6uv/xo2PclXx8oiRu46JioPzvnDiI1oEJmwiU sjaNRaemZj0j1KnAjtLG7AlKgphDXKgv7odqgbUcnITmdnV49bVrBVx8JXQnipC/w4Et eooYLumAw1NgdiEJe/I0DUT0DSHcIYR/3xEzuKE2MU26qqVuuNQxzoR1WDPGf56bD4Kr Xtxbv55ZwWPV3/FEB+GGIOG/UbnVXrtJIILpZC/wFxmTTJqomgMHNnaotPXnofGZYMFW D08aGQqdveEHX8v4ZHOWXLLv3y1CLezilQIs/gnVcwROTJthK1mURqNRkj3MxN3MHuxN dGUQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=5i/oM0jpesYxOf5RcEVM8UFHMpPLYpGQ23P31QmgjrQ=; b=snPTCXAAtnpEWYcMiprC1K+FWkBJ8PZVI50SAvqjMAr4gP02aXAJMioGOaaqnX2fI8 FiSGJgWE1lrwaYrIBmUWVjawECUN9EXbp8Fb3KTowp/ZF8xqqJX9o9xYKjDKZrWPgMpV afFtoNwfP4vhPdvDz6/+YfJ2HlU2aUO6KgIllSdPxovSCULe8He+DTFxqewWKjqbbI7o 1jeJXlgLLQBOtXbN1eRbkSTl4gtfDRUl9oUGNRfnbqpC+1nLwHJAX7+Af/t8XzqgSFJu TQInrggctZESidKXs7036Wv0KSw8/8ZiLyqAu6ZSfTVPqfvkcmW2R9stN6RrL6yh1gOf /tIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=nssjboNO; 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 l18-v6si11870673pgg.152.2018.07.24.09.51.08; Tue, 24 Jul 2018 09:51:23 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=nssjboNO; 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 S2388782AbeGXR53 (ORCPT + 99 others); Tue, 24 Jul 2018 13:57:29 -0400 Received: from merlin.infradead.org ([205.233.59.134]:34402 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388746AbeGXR52 (ORCPT ); Tue, 24 Jul 2018 13:57:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=5i/oM0jpesYxOf5RcEVM8UFHMpPLYpGQ23P31QmgjrQ=; b=nssjboNOchbVH669+X7nP3752r 66PkosbEnXQZAMDUlSqxYLjXbVqdCzvcwoL5g6MezHnIbdxyv/FrxFILF99Np/r8XIKkJjrcxjlRK TTKmYn9t43w7cB7u+jEqfdIBaDIHvLggm8dIgDCTg7vbVvrQ0jUggXndb7733pDEkXy75+lPMPJrC WbeEHaF3iy4u2Pm91MAqYCVsr6oHIjeaCRmnKRqZJkYDxfMFscm13SFAzNffuBmT8cwKBAoQr6v68 HvHceK6OgUTU4kxrWv2HKVXmwvi/AGopuYMP5PQJYpGr9w0oneeUsPMJScBBRplDhHAVIFO7xoAlS OBn43OAA==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fi0VX-0002Lz-BW; Tue, 24 Jul 2018 16:49:55 +0000 Subject: Re: [PATCH] arm64: enable RapidIO config options in Kconfig To: Will Deacon , Alexei Colin Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Catalin Marinas , Alex Bounine , Barry Wood , John Paul Walters References: <20180724134513.86796-1-acolin@isi.edu> <20180724151458.GE25412@arm.com> From: Randy Dunlap Message-ID: <71f6f129-4151-1603-10aa-9e600d6389ed@infradead.org> Date: Tue, 24 Jul 2018 09:49:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180724151458.GE25412@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/24/2018 08:14 AM, Will Deacon wrote: > 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. Both Arnd and Russell King asked for moving CONFIG_RAPIDIO to drivers/rapidio/Kconfig, and I also think that would be better. -- ~Randy