From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9EC3C6778A for ; Tue, 24 Jul 2018 13:54:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 974DE20874 for ; Tue, 24 Jul 2018 13:54:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 974DE20874 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=isi.edu Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388435AbeGXPBG (ORCPT ); Tue, 24 Jul 2018 11:01:06 -0400 Received: from mail-c.ads.isi.edu ([128.9.180.198]:17064 "EHLO mail-c.ads.isi.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388352AbeGXPBG (ORCPT ); Tue, 24 Jul 2018 11:01:06 -0400 X-IronPort-AV: E=Sophos;i="5.51,398,1526367600"; d="scan'208";a="6610500" Received: from guest228.east.isi.edu (HELO localhost) ([65.123.202.228]) by mail-c.ads.isi.edu with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Jul 2018 06:45:03 -0700 From: Alexei Colin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Russell King , Arnd Bergmann Cc: Alex Bounine , Barry Wood , John Paul Walters , Alexei Colin Subject: [PATCH] arm: enable RapidIO config options in Kconfig Date: Tue, 24 Jul 2018 09:41:26 -0400 Message-Id: <20180724134122.86718-1-acolin@isi.edu> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ARM SoCs with a PCI bus offer the RapiodIO config menu; SoCs with RapidIO IP blocks but without a PCI bus, need to add "select HAS_RAPIDIO" to the Kconfig entry for that SoC (e.g. ARCH_*). 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 enabled. Maintainers for RapidIO subsystem CCed. Sending a similar patch to ARM64 maintainers shortly. arch/arm/Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 843edfd000be..d6267ab33cb5 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1274,6 +1274,22 @@ config PCI_HOST_ITE8152 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. + +source "drivers/rapidio/Kconfig" + source "drivers/pcmcia/Kconfig" endmenu -- 2.18.0