Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4799649imb; Thu, 7 Mar 2019 00:26:10 -0800 (PST) X-Google-Smtp-Source: APXvYqylVReDpQ7PUm+e3kxsVnCh07xCTgRwmpC461A58VNJvvrXUy2l77bKBBc7kQOVY8smJnA9 X-Received: by 2002:a17:902:8f81:: with SMTP id z1mr11855744plo.265.1551947170326; Thu, 07 Mar 2019 00:26:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551947170; cv=none; d=google.com; s=arc-20160816; b=XlsJTD01D5OacoFA/cuowQXbtd0D4Jn7vF+cF64+T2sckNf55+o69VtzpWWR8OrOLV ZeBp1zxJeTQnBpra8YBJQORYVU6O3UU5DBTco3vAZHB0UdZJsT/H198YusOKwzymG8lZ fcqnRVDmxMEM4WlZLUIQLMS8J3iSIsZk9+a9Zf4F2tT3FNYLAD/fAXSym1l9z4az13Mq K5kcS/x2Leqj51kZCUWAKx0ENLw9d/fKOws0wwq0zQlkoOanDtYomdbN0pcSuLjmbUDg 4cKQugYIUGcwAbobr6ljiN6Bof01kcg4IFMeXuEzGcyOiPQp7JiZaIsGFe/2guFRFRYP WPog== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iByZZ0z3++dmogEJzqW9wd3kSy/x3E8tMax0I8dX9SU=; b=BBGrZ7M4LtjSDrDsyRJ0BaleyQypujeUbZz8NTpMbL/wrO11oNJtN31BNO1Pg/1IBU 7TrkFZLD4/Qfy5V1Utpua1m1G6DWxFADpGzC9HpAMaoJFnGaJN/ESKMvTZAsUbrcmpla rDPc7EkOPidO3lZfn8w6YymTIehCH0nKnl+g02z7fMAOic0J4QRQ+iHj1lBcnUK1QLS/ dpppOfbDA79phMB+wabGhU1h25G5rVrM5m5hm63rYj3Ag4n9jluJnAjiE6vlhQ5ke+o7 2+zeBSSoayiY4mxEkkF/MTW+r2N5Wo5Jqi0rFW5jX954QjOCxde6qeI6sPPt2Te2PC8T pMXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ozk7XYZh; 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 p4si3773607pfi.93.2019.03.07.00.25.54; Thu, 07 Mar 2019 00:26:10 -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=Ozk7XYZh; 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 S1726217AbfCGIZc (ORCPT + 99 others); Thu, 7 Mar 2019 03:25:32 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34886 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726015AbfCGIZa (ORCPT ); Thu, 7 Mar 2019 03:25:30 -0500 Received: by mail-wm1-f65.google.com with SMTP id y15so8357673wma.0 for ; Thu, 07 Mar 2019 00:25:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=iByZZ0z3++dmogEJzqW9wd3kSy/x3E8tMax0I8dX9SU=; b=Ozk7XYZhfJM526uKrQcKHMap2YvaprhB4UeY56Ss/ZbtjHGIIIyk8vdSV17gtbU+M0 HN0M1XIQvEeD0V+0uTcmCuToSSXhhrVueEWg7g9fC88K77b1KY/Fz1YdMNA3PwJPdDs4 PTZuPyho75Ks0M1pHYB59mUFfWU+CXHh5WmyZWsTtx3xQyLl+PY1e7+r2SfFwoqoZb8T /N62PFDeuHYmTJlkWrWf8+uuid0Lm0tMxuBQ4obKFqG7cySaPW1sIv72YYN8jRt9O+yZ i7rzFA43M2Ybi26nhInNgwTaHj+brpm0kiu4DvSidUg6zX42RfoHFzT4Pg23aJN2uTAl hOpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=iByZZ0z3++dmogEJzqW9wd3kSy/x3E8tMax0I8dX9SU=; b=tXmgAq57Vf7DlFIV8Jfaj7LBn6d1ehzOSZg/6lxj5kOUXAW6aLMibvta9B7WNEHncn rXHcfP5j+tJR7gyFgAXM4L4crdijiN8fd1nRrf1gCY6ZedHenX5zj+dUBU68OcOSSJeI j8obH2ZYZxg8MSvoLVUnNCIZvhxCv3yhHn9s/L+fazSytC3iO1x9F+Viaj2yORpJ/QG2 ESWdhgUPfvWnFgeSwDtrPiV8LFiH8XghHe7xEgc5CVt6AvgYivate+YxBQ8LZjIXNaa+ BeVCJTLwO/VvJqTf9i+ZWix20L8lfj899fFTSw8syP0HJbuw6N1JhpQzyZRUhi4dBiyp Amrg== X-Gm-Message-State: APjAAAVacx46bSKSFhu4WMD96jnKkug8mi/0oMWBng6UjJztnlWXMYDV dDG5wavjreCsD/5rEs/NN2fDpg== X-Received: by 2002:a1c:5f86:: with SMTP id t128mr4797036wmb.87.1551947127439; Thu, 07 Mar 2019 00:25:27 -0800 (PST) Received: from dell ([2.27.35.194]) by smtp.gmail.com with ESMTPSA id u14sm527016wrr.42.2019.03.07.00.25.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Mar 2019 00:25:26 -0800 (PST) Date: Thu, 7 Mar 2019 08:25:24 +0000 From: Lee Jones To: Paul Gortmaker Cc: Pavel Machek , linux-kernel@vger.kernel.org, Alessandro Rubini , Arnd Bergmann , Charles Keepax , Cory Maccarrone , Davide Ciminaghi , Dong Aisheng , Graeme Gregory , Guennadi Liakhovetski , Haojian Zhuang , Jin Park , Jorge Eduardo Candelaria , Laxman Dewangan , Linus Walleij , Mark Brown , Mattias Nilsson , Michael Hennerich , Tony Lindgren , Venu Byravarasu , linux-omap@vger.kernel.org, patches@opensource.cirrus.com Subject: Re: [PATCH v5 00/18] mfd: demodularization of non-modular drivers Message-ID: <20190307082524.GB4634@dell> References: <1547404609-14161-1-git-send-email-paul.gortmaker@windriver.com> <20190116132431.GE23399@dell> <20190306231003.GD7915@amd> <20190307041808.GK26690@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190307041808.GK26690@windriver.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 06 Mar 2019, Paul Gortmaker wrote: > [Re: [PATCH v5 00/18] mfd: demodularization of non-modular drivers] On 07/03/2019 (Thu 00:10) Pavel Machek wrote: > > > On Wed 2019-01-16 13:24:31, Lee Jones wrote: > > > [...] > > > > > > > Paul Gortmaker (18): > > > > mfd: aat2870-core: Make it explicitly non-modular > > > > mfd: adp5520: Make it explicitly non-modular > > > > mfd: as3711: Make it explicitly non-modular > > > > mfd: db8500-prcmu: drop unused MODULE_ tags from non-modular code > > > > mfd: htc-i2cpld: Make it explicitly non-modular > > > > mfd: max8925-core: drop unused MODULE_ tags from non-modular code > > > > mfd: rc5t583: Make it explicitly non-modular > > > > mfd: sta2x11: drop unused MODULE_ tags from non-modular code > > > > mfd: syscon: Make it explicitly non-modular > > > > mfd: tps65090: Make it explicitly non-modular > > > > mfd: tps65910: Make it explicitly non-modular > > > > mfd: tps80031: Make it explicitly non-modular > > > > mfd: wm831x-spi: Make it explicitly non-modular > > > > mfd: wm831x-i2c: Make it explicitly non-modular > > > > mfd: wm831x-core: drop unused module infrastructure from non-modular code > > > > mfd: wm8350-i2c: Make it explicitly non-modular > > > > mfd: wm8350-core: drop unused module infrastructure from non-modular code > > > > mfd: wm8400-core: Make it explicitly non-modular > > > > > > > > drivers/mfd/aat2870-core.c | 40 +++------------------------------------- > > > > drivers/mfd/adp5520.c | 30 +++++++----------------------- > > > > drivers/mfd/as3711.c | 14 -------------- > > > > drivers/mfd/db8500-prcmu.c | 10 ++++------ > > > > drivers/mfd/htc-i2cpld.c | 18 +----------------- > > > > 20 files changed, 41 insertions(+), 332 deletions(-) > > > > > > All applied! > > > > Is it good idea? > > Pavel, I think yes it is good, and I hope you will allow me the chance > to convince you of the same. It removes dead code, and removes the > chance that people mistakenly believe any of these drivers were > currently possible as modules, when they were really NOT at all modular. > > > We want distro kernels on ARM, too, which means people will eventually > > want these as a modules, no? > > And at the risk of repeating something I've said a lot already, this > is fine, and I 100% support people converting drivers to being modular, > in the case where there is demand, and where people with the hardware > who are willing to test that the modular use-case actually works. > > If people want it to be modular, then this work actually helps. You > don't have drivers "hiding in the shadows" that pretend to be modules. > Such drivers do not at all help with the "distro kernels" use case. > > If a driver author responds and says they intended to make their driver > a module, I 100% support them, and will drop the code removal patch and > also have supported them in making their work tristate. If the choice > to convert to tristate happens a year or more from now, it is trivial to > reclaim the unused-but-deleted code from git. > > But, again as I have said many times -- I can't know every detail of > each driver to know if module/tristate makes any sense, as a use-case or > if even technically possible (such as in DMA/IOMMU or similar low level > core systems). So the right option is to remove the dead code and not > impact the existing driver behaviour, and make it clear in the process > to the authors and users, that the driver was never modular to begin > with -- and in doing so, give them all a chance to comment and react. > > Pavel, I hope this more extended explanation makes sense to you, and > that you simply have not seen me write these same details in the past. Blimey. That's a really long winded way of saying: "Modular-ness is actually broken in these drivers; [Paul]'s patches make that point clear for all to see. If people (authors/distros) wish them to be modular, they need to fix them properly." -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog