Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp886039imm; Wed, 1 Aug 2018 06:57:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeLw1gC29ClaWOtaQA2Sn3+NaRwF94Lnt2vKhouk19785K84S0fMLpUi+zrKERwo73OyDCt X-Received: by 2002:aa7:850b:: with SMTP id v11-v6mr26534900pfn.165.1533131821297; Wed, 01 Aug 2018 06:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533131821; cv=none; d=google.com; s=arc-20160816; b=FgG6qJ8E3xMYPFujhk6nWODBZGlqvzLcbrvfXnNDuxkKP8P6Ne/WqFUc/mEl2Ckz2j h4u9k9g1t5JE7+gAN51Yzr2BnVSvGyIaUGHRTIc4kRP+7YKVoenaT11AsYxNFom1EPji B/ngV9Ly9eSwSaHCLaIwpsXxTnMcSNyraGAzH2fSUE9+uZYZRthK+22SInbaUpfaO2aT NpTsosTGdGo/hwjewLbAdeKBTey8vV/JV/LQwPTLJ0cbbzHsQKho8mq0yTHj/tcUywd+ He/gRZtzq9jE7+2hHyip/YNgrdFBcufyraChjX/A78zi+MksOWftEKF2XdDM9/I/s2i7 NPUA== 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=+iptyOPiSVajPjphBTwcDHwfQ6KQjkk0dp+T54w+e+E=; b=VcV5UrxTQMjZtvGqA80Ehc1MqWlivIyeGCF8BfF1/v+gMR6M+XBQAxfM/YyImdzyQu cxqmBtKHIu9hc7WlSMrz2lx9zGnf8b0Dce7uRlQAm0wNgk6/vK5lahsIMjqQx25H02AG URVMLrlLGRGRLYlPA/+UUXjdsOnGP7cav+1zyLlGBfNjkJPWnW0ATAsVpR/2r8D9m9SS +GMFbmCEk88Vby31hRCtRk5rwN6lt2eWEN6iCMo6oxzWcZS0dEE2ly/IxDvOhm3WI1MT 12CKkvJeya7Syg8zZYVlSVNKVfL2e3V3XoyuvzRvQu9OX2xnmiW9IfWxUVIjLGe3h5n5 okTg== 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 q126-v6si16896186pfb.277.2018.08.01.06.56.46; Wed, 01 Aug 2018 06:57:01 -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 S2389441AbeHAPkg (ORCPT + 99 others); Wed, 1 Aug 2018 11:40:36 -0400 Received: from mail-c.ads.isi.edu ([128.9.180.198]:49018 "EHLO mail-c.ads.isi.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389329AbeHAPkg (ORCPT ); Wed, 1 Aug 2018 11:40:36 -0400 X-IronPort-AV: E=Sophos;i="5.51,432,1526367600"; d="scan'208";a="6791975" 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; 01 Aug 2018 06:54:42 -0700 Date: Wed, 1 Aug 2018 09:54:41 -0400 From: Alexei Colin To: Russell King - ARM Linux Cc: Alex Bounine , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org, John Paul Walters , Andrew Morton , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 6/6] arm64: enable RapidIO menu in Kconfig Message-ID: <20180801135441.GD38497@guest228.east.isi.edu> References: <20180730225035.28365-1-acolin@isi.edu> <20180730225035.28365-7-acolin@isi.edu> <20180731084143.GA4680@arm.com> <20180731155228.GN17271@n2100.armlinux.org.uk> <044af717-3883-a7a6-c346-18fa8cebce76@gmail.com> <20180731181834.GA30658@n2100.armlinux.org.uk> <570ad147-3c58-8911-0111-29e21087ca7a@gmail.com> <20180801103855.GD30658@n2100.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180801103855.GD30658@n2100.armlinux.org.uk> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Why we cannot use "select HAS_RAPIDIO" HW-specific Kconfig file > > (mach-*/Kconfig)? And have on-chip port selection in the same board-specific > > place. > > As I've already explained, HAS_RAPIDIO has the expectation that it > controls the availability of the RAPIDIO option, not of drivers. > It is HAS_*RAPIDIO*, the clue is in the name. Using it as you are > (basically, to mean that on-SoC rapidio hardware is present) and > allowing such configurations as HAS_RAPIDIO=n RAPIDIO=y PCI=y is > completely counter-intuitive. The intention in the patch was for HAS_RAPIDIO to mean exactly "on-SoC RapidIO hardware is present". Since the name does not reflect that well, I'll change it in the next version: would HAS_RAPIDIO_ONCHIP reflect the meaning well? HAS_RAPIDIO=n RAPIDIO=y PCI=y should be an intuitive configuration, for example for MIPS until last week it effectively was the only option https://www.linux-mips.org/archives/linux-mips/2018-07/msg00584.html If we have to rename to make this configuration intuitive again, then I'll rename and resubmit. There was never the intention to assign any other meaning to HAS_RAPIDIO, specifically that it controls the availability of the RAPIDIO menu option. I think interpreting it this way is is behind a lot of the issues raised. The intention is that availability of the menu options is controlled by (1) whether the architecture sources the rapidio/Kconfig and (2) whether dependencies of RapidIO are satisfied (either having a PCI bus and enabling it, or having the on-SoC RapidIO hardware. The patch does not indend to change the current meaning and usage of the config options and behavior for X86, PPC, MIPS -- the patch only refactors there (because it was requested). For ARM and ARM64, we are adding the same behavior in same way as for those three architectures. I assume there is nothing that sets ARM and ARM64 apart from the others in this narrow context. This is the indended scope of this patch. Are we now discussing a change in the current meaning/usage/behavior? If so, could we do one piece at a time -- first, add ARM and ARM64 in the way consistent with the way other architectures currently do it?