Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2112026pxu; Fri, 18 Dec 2020 05:57:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbvMNuMv3VTTg9leubmc9MUR2q+rRjUThBchfTDqRuMJzy2qURJm00gh2XJNLdf8J7U/9O X-Received: by 2002:aa7:c558:: with SMTP id s24mr4498284edr.257.1608299842107; Fri, 18 Dec 2020 05:57:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608299842; cv=none; d=google.com; s=arc-20160816; b=wyfIIJnzO+TepZMdVcD3433yGLGjsieAQmTz6Q9t51W9sux+KaadAW7mEjHRfLOiU6 mAxBFsh52W3qcIecoaicJe2FywIzuLVAXsLaytQHd9Cbrjv5d9pNSYx3VOxzt9yFOdxI Yp+SWbBcGHv2SrJLtjRp7pbiAduv51Zw5D2pnxQW16BbapjH/QmRA2zmJkw1LvdGAA/D LQM9RZ+YjtjjWr91k3f8/4eUPICLhgtjLHiqT4D3Twq+UZ7L6717LuG7+oZENIdJ2MEJ AI/ex1bqa8GVqGW302kGGJEGPAyhcvsjO+DjRQVx4JjXP3YSDOAcDGF0TItASTwxOPB5 krxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Ka1x3IgXnDKEVbUNgJSUcPN8PzFVanlFrtTuT6E8rts=; b=CeeL9fB23OIkiZ3i+vIoD0Py22QUO56gHQGw2R/w0kN+RSJCFXAsSQ2pC8os4SWYUY XFd8+ALdGc7+p3dU7gEDlvu+QHLykUwcv2/cTQ9NrXd/j5DrXdkPRkLDYbGV1WPcSLrd UzCZ3K1VVppyXNhw21e78L12UDdQWlZ7Wv+ThYCs3HLfd2bxgkftUz3pxSGqTVRZzzEE DqdyfwSPsGXqFAFqvcNAndmeU3jX7lOk5hoQgkD98rFejFN4UxQSUf9UE8UW0erFXIfz GrbxebUM1islMw3Nwi9NpkpLDmlk6FTiRNrudPQ6ocewYpj+tIQr6MPAXGAzd+vS5qy7 hdHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D86dpjGa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id i7si6450801eds.423.2020.12.18.05.56.59; Fri, 18 Dec 2020 05:57:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D86dpjGa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726757AbgLRNqs (ORCPT + 99 others); Fri, 18 Dec 2020 08:46:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726677AbgLRNqr (ORCPT ); Fri, 18 Dec 2020 08:46:47 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F2BFC061285 for ; Fri, 18 Dec 2020 05:46:07 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id t30so2251813wrb.0 for ; Fri, 18 Dec 2020 05:46:07 -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; bh=Ka1x3IgXnDKEVbUNgJSUcPN8PzFVanlFrtTuT6E8rts=; b=D86dpjGakhZl+5XAKRbJimghynE7rov8qUJl/t75gAK4y/Fp5ssvHO49HPwJtIaWW7 X0ZJnoyYSQEoJHAhiXySsnJJYjhmZB45KowbpkHybNPtkPHbDggsC/oXZOIjNV0OxfIP JtLk8ioNSYQNcBqUgcvb8hGzTjMFok0Z5d20D9TGp+gj3yAWd0tBwAcawAEAoclM3CeV hlVaCtzhQlhb3gLpgfbarf5Mch5uuBb3PuxZXm6+Qk42SmEjVCjqSdKkAl+v/+V8XpWa kzHRKLbBkT4RUsGzpF0vZVjKR15UffhOdqNzvt5OEAGmcdsDkI4BoE2RGEi1CeWWnZHq NPTw== 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; bh=Ka1x3IgXnDKEVbUNgJSUcPN8PzFVanlFrtTuT6E8rts=; b=kTdy7ZQnVYzRsqdcSu3zCFpXRQyPMYDNDZCjluapMHFa/fuHoiVC11PxBkZ6+xlIwg DbDjdBwZSfyhfimLMRZA6gkOnNJdm5GnLKslCX/pXPfXRlXUxQFPKPVxuihAcp5A6X4O S34qQWKTxaoO6efFsy4vwl0GHZVNeyfcYbkXA3lAkTMZ1vEraqoqzJPAgtnsUbtL6vt4 /46YEN9BkT47JhXhEzMvxv6/HTiFeoqpL8w9H1mspuDRFsbcBVIqbHorAnBB7MNnb8WH 7HBnHvutC68ty5PFjjoKhK4z442urt6+4WAnSuTIwOeW0jg1JrJX+UyQPpEhmm9jFmQJ M9EA== X-Gm-Message-State: AOAM5333yx3eILTcTmkbGu3C+Zf4UGH77un/CxrQK9QFqVqmsZBr2joH 49uaZrKgJfhoZrsmn50AhFF3Uw== X-Received: by 2002:a5d:52c1:: with SMTP id r1mr4590809wrv.255.1608299166077; Fri, 18 Dec 2020 05:46:06 -0800 (PST) Received: from dell ([91.110.221.216]) by smtp.gmail.com with ESMTPSA id l1sm14124574wrq.64.2020.12.18.05.46.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Dec 2020 05:46:05 -0800 (PST) Date: Fri, 18 Dec 2020 13:46:03 +0000 From: Lee Jones To: Mark Brown Cc: Greg KH , Alexandre Belloni , Dan Williams , Pierre-Louis Bossart , alsa-devel@alsa-project.org, Kiran Patil , linux-rdma , Shiraz Saleem , Martin Habets , Liam Girdwood , Ranjani Sridharan , Fred Oh , Jason Gunthorpe , Dave Ertman , Jakub Kicinski , Netdev , Leon Romanovsky , David Miller , Linux Kernel Mailing List , Parav Pandit Subject: Re: [resend/standalone PATCH v4] Add auxiliary bus support Message-ID: <20201218134603.GS207743@dell> References: <160695681289.505290.8978295443574440604.stgit@dwillia2-desk3.amr.corp.intel.com> <20201217211937.GA3177478@piout.net> <20201218131709.GA5333@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201218131709.GA5333@sirena.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 18 Dec 2020, Mark Brown wrote: > On Fri, Dec 18, 2020 at 08:10:51AM +0100, Greg KH wrote: > > On Thu, Dec 17, 2020 at 10:19:37PM +0100, Alexandre Belloni wrote: > > > > There is something I don't get from the documentation and it is what is > > > this introducing that couldn't already be done using platform drivers > > > and platform devices? > > > Because platform drivers and devices should ONLY be for actual platform > > devices. Do NOT use that interface to fake up a non-platform device > > (i.e. something that is NOT connected to a cpu through a memory-mapped > > or direct-firmware interface). > > > Do not abuse the platform code anymore than it currently is, it's bad > > enough what has been done to it over time, let's not make it any worse. > > I am not clear on why you're giving direct-firmware devices (which I > assume means things like ARM SCMI where we're talking directly to some > firmware?) a pass here but not for example a GPIO controlled devices. > If this is mainly about improving abstractions it seems like the > boundary here isn't great. Or perhaps I'm just missing what > direct-firmware is supposed to mean? > > In any case, to be clear part of what you're saying here is that all > I2C and SPI MFDs should be rewritten to use this new bus - I've just > copied Lee in again since he keeps getting missed from these threads. > As previously discussed this will need the auxilliary bus extending to > support at least interrupts and possibly also general resources. Thanks Mark. Not entirely sure why this needed an entirely new subsystem to handle non-MMIO Multi-Functional Devices (MFD). Or why I was not approached by any of the developers during the process. Having 2 entirely separate subsystems where MFDs can now be registered sounds confusing and convoluted at best. Why not simply extend actual MFD to be capable of registering non-pure platform devices via other means? By doing so you keep things bound to a central location resulting in less chance of misuse. I turn away MFD implementation abuses all the time. Seeing as the 2 subsystems are totally disjoint, this just unwittingly opened up another back-channel opportunity for those abuses to make it into the mainline kernel. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog