Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4484382imm; Mon, 30 Jul 2018 15:52:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeQ5ugs7TGu4o/lhRnSiToxdJdGONCJxwJHp4gIN+Y60EoFzhBQPxRg4/+EOebabda7pPKe X-Received: by 2002:a62:843:: with SMTP id c64-v6mr19752134pfd.14.1532991141773; Mon, 30 Jul 2018 15:52:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532991141; cv=none; d=google.com; s=arc-20160816; b=vVrSKCbsHKSuY6/D7ZrsNd8z0sd6l1KgbfPnisQRyQBYxGybNIo7kgKZOUeon+CFAm HszuakSGcWPXf6olU08WcIr5hpKFGy6ejd8JwJAEYOyuWarKC5piOQtSszO8bPMyfaJu o9aNtOrYYdU+tK3xvSOmjnTO2MU05fQ+/GkmPo9an1UEaZF5og50SYJTr7DvOrh3z2pE SZ6NWKznssrEhfg6V/chR+H0gTVJIR579MQ0LyxnAHv47VXKmBJJgAmYsost+l4EXrUm jin1ZgVj9Xq+gnSZGcqlPt12aoLmFQXE1YHcelUfMMYVfaTMbj0sqVLzj5qTxwOUwZWJ xXyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=AE0bNYozn8P6aUklu+fKqoE+Q1yEPftzAj+uKsEnL3g=; b=fFgM1Z23NOTBC6ythdBGW8NiSkPKzKfZCdyfRdgmXYJYUZXhIZINAuQVNBR3iM2yGY Ep4t8cTCIqylmLiawUdTh7O3M19Hk1ZfzK/5l3uQ8UiE2uIgWhPOgi/Pgd8jA1o+PiPM ij9+hVhqifm/eIYQTqPiXhl2UBA7oRv2g1UwJMryXV6E6jtqRvTIEiQMak3QCOfn0THc Drjn6/pm4zfpfJsnj17urVUYHd3IZvj3Rhbnl8Oy1dYOkihWSR5zjJJDQcsn0EvD0gsC lxx6OxogxK6WyJCSqVLV+xYbWWh5DQAaU/YZRV1CWa4Ei1L9EAPgNuK0zj/G9nNEPJa8 EA6g== 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 x11-v6si10353690plv.360.2018.07.30.15.52.07; Mon, 30 Jul 2018 15:52:21 -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 S1732133AbeGaA2G (ORCPT + 99 others); Mon, 30 Jul 2018 20:28:06 -0400 Received: from mail-d.ads.isi.edu ([128.9.180.199]:33300 "EHLO mail-d.ads.isi.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727660AbeGaA2G (ORCPT ); Mon, 30 Jul 2018 20:28:06 -0400 X-IronPort-AV: E=Sophos;i="5.51,424,1526367600"; d="scan'208";a="2623814" Received: from guest228.east.isi.edu (HELO localhost) ([65.123.202.228]) by mail-d.ads.isi.edu with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jul 2018 15:50:54 -0700 From: Alexei Colin To: Alexandre Bounine , Andrew Morton Cc: Alexei Colin , John Paul Walters , Catalin Marinas , Russell King , Arnd Bergmann , Will Deacon , Ralf Baechle , Paul Burton , Alexander Sverdlin , Benjamin Herrenschmidt , Paul Mackerras , Thomas Gleixner , Peter Anvin , Matt Porter , x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@linux-mips.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] rapidio: move Kconfig menu definition to subsystem Date: Mon, 30 Jul 2018 18:50:28 -0400 Message-Id: <20180730225035.28365-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 The top-level Kconfig entry for RapidIO subsystem is currently duplicated in several architecture-specific Kconfig files. This set of patches does two things: 1. Move the Kconfig menu definition into the RapidIO subsystem and remove the duplicate definitions from arch Kconfig files. 2. Enable RapidIO Kconfig menu entry for arm and arm64 architectures, where it was not enabled before. I tested that subsystem and drivers build successfully for both architectures, and tested that the modules load on a custom arm64 Qemu model. For all architectures, RapidIO menu should be offered when either: (1) The platform has a PCI bus (which host a RapidIO module on the bus). (2) The platform has a RapidIO IP block (connected to a system bus, e.g. AXI on ARM). In this case, 'select HAS_RAPIDIO' should be added to the 'config ARCH_*' menu entry for the SoCs that offer the IP block. Prior to this patchset, different architectures used different criteria: * powerpc: (1) and (2) * mips: (1) and (2) after recent commit into next that added (2): https://www.linux-mips.org/archives/linux-mips/2018-07/msg00596.html fc5d988878942e9b42a4de5204bdd452f3f1ce47 491ec1553e0075f345fbe476a93775eabcbc40b6 * x86: (1) * arm,arm64: none (RapidIO menus never offered) Responses to feedback from prior submission (thanks for the reviews!): http://lists.infradead.org/pipermail/linux-arm-kernel/2018-July/593347.html http://lists.infradead.org/pipermail/linux-arm-kernel/2018-July/593349.html Changelog: * Moved Kconfig entry into RapidIO subsystem instead of duplicating In the current patchset, I took the approach of adding '|| PCI' to the depends in the subsystem. I did try the alterantive approach mentioned in the reviews for v1 of this patch, where the subsystem Kconfig does not add a '|| PCI' and each per-architecture Kconfig has to add a 'select HAS_RAPIDIO if PCI' and SoCs with IP blocks have to also add 'select HAS_RAPIDIO'. This works too but requires each architecture's Kconfig to add the line for RapidIO (whereas current approach does not require that involvement) and also may create a false impression that the dependency on PCI is strict. We appreciate the suggestion for also selecting the RapdiIO subsystem for compilation with COMPILE_TEST, but hope to address it in a separate patchset, localized to the subsystem, since it will need to change depends on all drivers, not just on the top level, and since this patch now spans multiple architectures. Alexei Colin (6): rapidio: define top Kconfig menu in driver subtree x86: factor out RapidIO Kconfig menu powerpc: factor out RapidIO Kconfig menu entry mips: factor out RapidIO Kconfig entry arm: enable RapidIO menu in Kconfig arm64: enable RapidIO menu in Kconfig arch/arm/Kconfig | 2 ++ arch/arm64/Kconfig | 2 ++ arch/mips/Kconfig | 11 ----------- arch/powerpc/Kconfig | 13 +------------ arch/x86/Kconfig | 8 -------- drivers/rapidio/Kconfig | 15 +++++++++++++++ 6 files changed, 20 insertions(+), 31 deletions(-) -- 2.18.0