Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3305167ybx; Fri, 8 Nov 2019 17:38:15 -0800 (PST) X-Google-Smtp-Source: APXvYqxoD8UDP3Lbr2gZ2h9uk3uFDSGxUxJqxgHJHoK79wqpnVcgUA2NpyG/8CV1+aJWCAMNCkt2 X-Received: by 2002:a17:907:110f:: with SMTP id qu15mr11896351ejb.179.1573263495122; Fri, 08 Nov 2019 17:38:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573263495; cv=none; d=google.com; s=arc-20160816; b=j5WCOgIyymmQ22YRr3WEz2vUGCSqjblkJJnx9VSQvaG0F/su7LbyABIsuIGYTibqjI WAM+/PpkkYBPs6UB95kBwdG6bEPT6xypKIb1UEGt817gYNhY1YAY4chyfR+TiECb8xih Bm3CKwQhEmgzVSNQqW1TDjvFprkMsx2PdTKIk+eSMv2gCa5s70cxj0+qnlPWtCpamNlJ JUFXbSyJX+mhxtG/3v89YDdEy/1O11XeAbqWcfTeYe4vK+hstBGVQaiCcjC/eLGMueSu dain77OLb4J2Vx70giilZRMYz73dOcaVFuOi5UYzIFGssv3tUaageJ7CCsGzvARW9q+/ 9W0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=0ihuncdiVh1w2nyHht0DAHccXGXWUHYDHepJ39RlLdk=; b=waiWs+vIfV3stbDKThi097PHeKA50l9hngQKAE7qOgrfmIToRY75IC7t1g9+mnyDvs 64rl8j/X0iHKm0TJwnVU0yFjd6BVIRHvla6ItDVPpwdjQTO0bdCV+lsPRMjJluaSeDhJ BA5e5J9Yc9AZJW7NLkbtxXPFz1vjxVWijDCFmqKHb8KKJ4XznjKDRF/8itGsJA+26n0t uEZfuqKjcUxnQnoqXdpAiNPs9MQ1ZPJi6k25uJJ1NehRVcnuhAYG38X623wsLS19TIlS vWsNI0/TVLI7RaCz7JIwVXpmxx0zHusQZy9NBgBFIGaKrpGIwWJbzgjr5klM+lVkVYj3 sd+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Skz4hWsK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bi3si5888898edb.331.2019.11.08.17.37.51; Fri, 08 Nov 2019 17:38:15 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=Skz4hWsK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726424AbfKIBg7 (ORCPT + 99 others); Fri, 8 Nov 2019 20:36:59 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:36041 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725817AbfKIBg7 (ORCPT ); Fri, 8 Nov 2019 20:36:59 -0500 Received: by mail-ed1-f67.google.com with SMTP id f7so7056076edq.3 for ; Fri, 08 Nov 2019 17:36:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0ihuncdiVh1w2nyHht0DAHccXGXWUHYDHepJ39RlLdk=; b=Skz4hWsKKuMx3wLuXfNJY24cjJ18AYpIo5ZHOlNqrz8J3nwwcDUlRtB+tv7D9x2NkQ zNixtCDqplp8PO2X/wAh8J/TpUopdAgeexbq4Lxdq4VK9tJuxWsfQp7kri2dwVsCdgxk xbiapGcqF1W/OgSXycwf7e6uZz0pHt720u5GMLI+Ebw6KlGwXfrjLmfQvaXsQtFhn1Ow mf6BoIEJplnSUhqv2fhUzpqX+0tEH7uY9WinBXfD3eq/6/eTncJGfLjseYrRTMlYpE6I ve4FT+vOtFI43aTVR02MQd7dZ28tLDofKefDIegDg38eElj8jtTsHGavqTwuCl/Fxj9F LtJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0ihuncdiVh1w2nyHht0DAHccXGXWUHYDHepJ39RlLdk=; b=B3oj7+bf+Z4ioj7Z2eQQgOfrB1QTye+PbPW8IGy7JQAhLvwh8PIvDstbJOhzlJ3nxb BT11eY4XGh1uJR6DLbKyrmMH6EKec9UR0XLU+xSYpmjS8rkqmcMq/DIDM7F7AHT6n1aB cn1u6+ynm6SDgeRDJ34vN0Xnnvt5eNLcdX2Fpjf+R8WM5L0VbBXScvBP4ZkGdE71Bmby SamvqCWNnfHDUh0ZVTliGWyTq3gC317RPoaXCgF463rqmlFw99CgFtzJGCT3yK9i2wp1 hq0eJOTs8APrCm68P4wlGjJW9JEVNFxNLeybTvVAoAJuTHWDCwKHcWL9qOIaLF7h/ioX 34Rg== X-Gm-Message-State: APjAAAUQr3ojr5j5r01YWYaqOLUDFrQSvk5tfgzSxp43VT0F2Tny3D1t SnY9g2c7DRpHYoopABbFEIzdfzpx4DFLJunHvcdfskKp X-Received: by 2002:a05:6402:6cf:: with SMTP id n15mr13619391edy.269.1573263417389; Fri, 08 Nov 2019 17:36:57 -0800 (PST) MIME-Version: 1.0 References: <5123bf54-5d62-fc5c-8838-17bc34487d83@linaro.org> <20191107142111.GB109902@kroah.com> <0cb5a6a6-399f-99e3-dc41-50114eea4025@linaro.org> <20191108103917.GB683302@kroah.com> In-Reply-To: <20191108103917.GB683302@kroah.com> From: Bjorn Andersson Date: Fri, 8 Nov 2019 17:36:46 -0800 Message-ID: Subject: Re: [GIT PULL] interconnect changes for 5.5 To: Greg Kroah-Hartman Cc: Georgi Djakov , Linux PM list , "linux-kernel@vger.kernel.org" , Viresh Kumar Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 8, 2019 at 2:39 AM Greg Kroah-Hartman wrote: > > On Thu, Nov 07, 2019 at 05:42:13PM +0200, Georgi Djakov wrote: > > Hi Greg, > > > > On 11/7/19 16:21, Greg Kroah-Hartman wrote: > > > On Thu, Nov 07, 2019 at 02:46:53PM +0200, Georgi Djakov wrote: > > >> Hi Greg, > > >> > > >> This is a pull request with interconnect patches for the 5.5 merge window. > > >> All patches have been for a while in linux-next without reported issues. The > > >> details are in the signed tag. Please consider pulling into char-misc-next. > > > > > > I don't know about > > > 0003-interconnect-Disallow-interconnect-core-to-be-built-.patch here. > > > Shouldn't you just fix up the dependancies of subsystems that rely on > > > this? We are moving more and more to kernels that "just work" with > > > everything as modules, even on arm64 systems. So forbiding the > > > interconnect code from being able to be built as a module does not feel > > > good to me at all. > > > > Thank you for commenting on this! The initial idea was to keep everything as > > modular as possible. The reasons behind this change is that other core > > frameworks like cpufreq (and possibly others) want to call the interconnect > > APIs. Some of these frameworks are built-in only and it would be easier to > > handle dependencies if interconnect core built-in too. Now each user that > > can be built-in has to specify in Kconfig that it depends on INTERCONNECT || > > !INTERCONNECT. > > That's fine, when those subsystems start to use those apis, that > dependency needs to be added. Nothing new here, and you forcing it to > either be "on or off" isn't going to change that. Let's do it correctly > please. > Please no! Making our frameworks tristate means that we can no longer rely on include file stubs (as framework=m, client=y will fail), so every single client must add the "depends on framework || framework=n" - in contrast to nothing the framework itself is bool. An example of this is that there's almost 500 files referencing the regulator api and all Kconfig entries referencing these files must be updated with a "depends on REGULATOR || REGULATOR=n" if we're going to start tristating frameworks. For individual drivers behind these frameworks, definitely tristate. But the only thing you're going to get out of making the frameworks tristate is more build failures. Regards, Bjorn