Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9371329imu; Wed, 5 Dec 2018 03:49:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/UqItgwJEWKrqOLNX9vmmp8WGgn+fJA2YCOj3iGOOCHTfxrw19f4fADuY08q2HCxLIQKSLZ X-Received: by 2002:a17:902:2a0a:: with SMTP id i10mr23442779plb.323.1544010596756; Wed, 05 Dec 2018 03:49:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544010596; cv=none; d=google.com; s=arc-20160816; b=uChxWiuoXar504WZww2oGaWg5vyNKUJKfYVMj1dDBeLXHcix6Oju2oiXtufwfkocXf 9zLR7jBGURIaK2zOLliL0j570L0J2mr480U4vmZTl9ApzVNdGsOTnTq4Pw2TQNBO4Nz/ y7psu7QVWf6F2MA/7/g3f8uSpJygOCAzci4QI4nOadp4QXNtbLCjxUpWdS89IB6cLGYr shkvs02p9M6NnL8OkhdLdFfJbYCZM3SKJXrsJ+gJKZ2iHk/0r/6mqAXDQEajhCZqqalt Kxpj8Crh2ZTLoCye9ieAzqM/cjm6znq/nCgGxr45UnGcGUWdcoSkJkpmnWCJFTwrd3W7 TCsQ== 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=XbUU9ajIcqAtVGpTu1ATzBV0x5RKPH6tCX3DaNaIjlE=; b=wVP0DMxuXowxjUbZ1MI0wq7fGhY7XR6+OWi+FamBcMlHH++c7SOJhQAyE2rV4OlbRI iVqIMoJ3VEaIMiTE3ura7SSsOb8fxGMmnmJxf3nwczRiGUZRp4qjbbYaF2kHQMBcZR0C fqbLTuwcGcsOGEmzjgHG5HrQO1DqfeTcsBYKQTx/T7IAsKqbYPKnhYSMa3y5Puwhnep0 k1+EGSFwyhqw31L4yaj5U74hldI5HtaOQLExNOl7oTrR8/Zf+Hx8n2uoTL1WypNjHtvj dGJCdnsAA4dMy10e8HpmMyZm4HyIUurhN7E4k2WX3ssof4AB2GlU3iHcpVeta09m20n4 t5nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ic8YoOYc; 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 b63si20927579pfa.250.2018.12.05.03.49.41; Wed, 05 Dec 2018 03:49: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; dkim=pass header.i=@linaro.org header.s=google header.b=Ic8YoOYc; 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 S1727740AbeLELtD (ORCPT + 99 others); Wed, 5 Dec 2018 06:49:03 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:43752 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727484AbeLELtC (ORCPT ); Wed, 5 Dec 2018 06:49:02 -0500 Received: by mail-lj1-f196.google.com with SMTP id 83-v6so18028949ljf.10 for ; Wed, 05 Dec 2018 03:49:00 -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=XbUU9ajIcqAtVGpTu1ATzBV0x5RKPH6tCX3DaNaIjlE=; b=Ic8YoOYcZ4LW8IZWDI648wtsePNkfIIgb/Q09+s7lypZf3vaquMoP2UZwKoE9ne6Sv NC3YPm/xpcIde1s4NPXathP4bi32FgHsGrtmuXna+FuXohOzhnvOPDnFZ2YUk+iKaZho msPMINb9opCdd3AK3X5MFPPjQneOCWjXyPVAo= 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=XbUU9ajIcqAtVGpTu1ATzBV0x5RKPH6tCX3DaNaIjlE=; b=Zx+b1380hinOGuKXTbhKxSBBpJezBgiqM/dFOxeWDW6eEFo/hiOBmNPct3geJuPrzS k1Vg7n1Dx85JmnJxdetdL56XngcbxHapheWzSIWiHdXtpx9Ok7HzsUBDWNqZMPFFthUK uzG2deS9zHgT4zfZi15ZtKk53Z1VYyt8puhL+uSY3Qy9YbrPYF1QdeW2hYaCI+cmHvcz hz5Tmx96PeDQrlRfK4kib1YayURknRfXJHpAQmxQeoGmdMj1SW+1Om6KzGT+nFg7TNOv c8U+Cu3F3hq885qql8bhZxZVpM5UlnCHASU42x9RyRPDTnWMj85OiYFXbd2MsP1TZOXC bBlQ== X-Gm-Message-State: AA+aEWb64BajUGSJBkhQk2zpihDf4NossIYgb0d3P6vma95NLqPBz/+X H7YYmwLwbk0UfSAEGss1zpkiitUvWkmY/f29u4r7Vw== X-Received: by 2002:a2e:9107:: with SMTP id m7-v6mr15543702ljg.23.1544010539964; Wed, 05 Dec 2018 03:48:59 -0800 (PST) MIME-Version: 1.0 References: <1543811009-15112-1-git-send-email-paul.gortmaker@windriver.com> <20181205113535.GX16508@imbe.wolfsonmicro.main> In-Reply-To: <20181205113535.GX16508@imbe.wolfsonmicro.main> From: Linus Walleij Date: Wed, 5 Dec 2018 12:48:47 +0100 Message-ID: Subject: Re: [PATCH v2 00/22] mfd: demodularization of non-modular drivers To: Charles Keepax Cc: Paul Gortmaker , Lee Jones , "linux-kernel@vger.kernel.org" , Arnd Bergmann , Cory Maccarrone , David Dajun Chen , Dong Aisheng , Eric Miao , Graeme Gregory , Guennadi Liakhovetski , Haojian Zhuang , jinyoungp@nvidia.com, Jorge Eduardo Candelaria , Laxman Dewangan , Mark Brown , Mattias NILSSON , Michael Hennerich , Mike Rapoport , ext Tony Lindgren , Venu Byravarasu , Linux-OMAP , patches@opensource.cirrus.com, Support Opensource 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 Wed, Dec 5, 2018 at 12:36 PM Charles Keepax wrote: > On Sun, Dec 02, 2018 at 11:23:07PM -0500, Paul Gortmaker wrote: > > The solution to #4 is similar - we delete the ".remove" function and > > the binding into the platform_driver struct. However, since the same > > ".remove" function could also be triggered by an "unbind" (such as for > > pass-through of a device to a guest instance) - so we also explicitly > > disable any unbind for the driver. > > > > The unbind mask allows us to ensure we will see if there was some odd > > corner case out there that was relying on it. Typically it would be a > > multi-port ethernet card passing a port through to a guest, so a > > sensible use case in MFD drivers seems highly unlikely. This same > > solution has already been used in multiple other mainline subsystems. > > > > I guess if this is a general direction thing, but it does seem > that module unload is not the only reason one might ever unbind a > driver. So are we sure we want to remove the option to unbind > these drivers? Certainly for testing it is sometimes useful. I personally never understood why these attributes are even present on non-modular drivers. If testing is about exercising unbind/bind to reintialize the code through a new call to .probe(), why would the developer not take it all the way through and make it a module? It just looks like a half-measure. Yours, Linus Walleij