Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4666585imb; Wed, 6 Mar 2019 20:19:57 -0800 (PST) X-Google-Smtp-Source: APXvYqwjbyN75zH4x/abvmkAjROdsiC+itYLsY57lBen3k66d1ZErg8YFf/gMgk+uTFL5s6tH0wX X-Received: by 2002:a62:8384:: with SMTP id h126mr10730726pfe.243.1551932396901; Wed, 06 Mar 2019 20:19:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551932396; cv=none; d=google.com; s=arc-20160816; b=KCPv4sJwaNCrVF3J693FbqpUDzPvwGXrFGTPuSXVpB95z4ch+C29D687isFpBKdWsU jCwAdG10wNSfhQeTvv93uOiH3ZaAXb37vaTqoNRAVsHfmP38SW+mBG2Im6hhQH2I3y0i DhOJQKq8z4m73tUn3yEeF1byaUad0xVSbLZtPsp1LgfTZnVSDGdUfekM9KoqBF/sSrIr 9wQoCSbTSIIMRUtYp/nRVsKeRun4lYi0t/Rl/0c+u4uN7Sxn5hWqHCMjxksXbRy1z3xI 0978H6IzaZYGbQpDOloPPQkwJM0hU8KY1BUcoI+6ybweKIp73BF5pzxGSLKzRDim/Ind DoDw== 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; bh=txPgB41oR/RfNjc+KM1vR8CRq3LJhWcd7hUZRccoK4c=; b=TxM8GQjbB3gavRSR/X5zs6NMPK1ADGyAx0mUpJI1sN9Y6mbhsZiJjV3jvbRWaDkNyM J4ctu+nmfjoFhoIx6hIXHr1JJJSUYko/lI6VhwiNKmZLl4ul3n2FRxYZNd9TcGCCOeS/ ESfxijb04/dNv7ddZaBVtyZvWr+AvIQ8TP/S5NETsv0tKG8uTZKukLkEw00izzK0OeBS tEPUY5KmSesjd2ayam6xb2QJPF9bR4ykPjvCjpfbYIKZSXcfzuyltXSfLV1r1J00mStK BPd+uhFqxiegqlgA06y4p0zUTwlpJhvK6I6XEGG5zrbE5s14hsulpIhMfYwfyFJXIsZy dhpw== 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 193si2996622pga.251.2019.03.06.20.19.29; Wed, 06 Mar 2019 20:19:56 -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; 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 S1726408AbfCGESz (ORCPT + 99 others); Wed, 6 Mar 2019 23:18:55 -0500 Received: from mail1.windriver.com ([147.11.146.13]:60365 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726197AbfCGESz (ORCPT ); Wed, 6 Mar 2019 23:18:55 -0500 Received: from ALA-HCB.corp.ad.wrs.com ([147.11.189.41]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id x274I9vV014376 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 6 Mar 2019 20:18:10 -0800 (PST) Received: from yow-pgortmak-d1.corp.ad.wrs.com (128.224.56.57) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.439.0; Wed, 6 Mar 2019 20:18:09 -0800 Received: by yow-pgortmak-d1.corp.ad.wrs.com (Postfix, from userid 1000) id 066622E03DB; Wed, 6 Mar 2019 23:18:08 -0500 (EST) Date: Wed, 6 Mar 2019 23:18:08 -0500 From: Paul Gortmaker To: Pavel Machek CC: Lee Jones , , 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 , , Subject: Re: [PATCH v5 00/18] mfd: demodularization of non-modular drivers Message-ID: <20190307041808.GK26690@windriver.com> References: <1547404609-14161-1-git-send-email-paul.gortmaker@windriver.com> <20190116132431.GE23399@dell> <20190306231003.GD7915@amd> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20190306231003.GD7915@amd> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [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. Thanks, Paul. -- > Pavel > -- > (english) http://www.livejournal.com/~pavelmachek > (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html