Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2419180pxu; Fri, 18 Dec 2020 12:48:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkn1hlf5eYXA21YmU7yt0RvuCEb7t7QXJETusfROBrdC/lepBQgWf2kx3WelFGaRVyhL5a X-Received: by 2002:a17:906:fcda:: with SMTP id qx26mr5885833ejb.213.1608324538770; Fri, 18 Dec 2020 12:48:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608324538; cv=none; d=google.com; s=arc-20160816; b=TGb7v9MWPVV0onYqX0feG5WZdGKHqFcbddQ/TVIevwbNZFl54Zs9EMl0KMdUU3D6ZR UO1qtfnYgtPEQCp9lJ7tbFjByQ+7JNOd1Q6wGRoTSmFw+Zv9bltqeh3y2pUTPt8FQvXK M1O6RCXkhuPeDpYSZNc4MKkFlMA1xk1U/otD7yQsoU1cPmdUFIiDvQLR9vDFo8LaqFJO oekGU6HwBLDMztMqgHYdyoQn50jtRPm2/RcKYoMmjdih5M/jllsWd+CTBKRXRdWzKBed OwkL9IkvZklO7BazelmEVfs2Ge8jFJxjUn5x1m3XY8o7rdrjo6YLmWKMcHBPIkaGysNw cO2Q== 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=DsPzYSmK1PzNzvrUgHsnSLZZOIK5NlSaB+JDZhlEtOQ=; b=ih8xHEjpy6EnJn2Jcx74wXqe8i6vnL90AxzXwutvBYmSHEOkiRZsGkvpLM5baNxM1Y WlmpimRX96FzDiVhMomYrkN9+rYtYo1MncijzgooqVYiX+/AC74CYgNn30oFmXXicdDB FgKoktZHkZ1yyOhTx0tNNktQYYbobfSxpFi7vQHVV3WKJK1mqfhjqV6NSR4eQBM6Ba1S iJlezh8DYJ2LP7/d05CEEquyX2wCY5KuuqSRDuqhhulyiQWVDtWI1DAp3MmMnQZRRMRW 5STlgGFBK23hBEmbDAEU8pxL4O/iEtxj+bBNU9aDIVbnGAoYVN1jJfxYqf19xJJqZkNA 5R4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KQQTxWZh; 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 d16si6781153edp.251.2020.12.18.12.48.36; Fri, 18 Dec 2020 12:48:58 -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=KQQTxWZh; 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 S1726709AbgLRTJ5 (ORCPT + 99 others); Fri, 18 Dec 2020 14:09:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbgLRTJ4 (ORCPT ); Fri, 18 Dec 2020 14:09:56 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1A73C0617B0 for ; Fri, 18 Dec 2020 11:09:15 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id a12so3436721wrv.8 for ; Fri, 18 Dec 2020 11:09:15 -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=DsPzYSmK1PzNzvrUgHsnSLZZOIK5NlSaB+JDZhlEtOQ=; b=KQQTxWZhnTj/uNvQiy5xn4LTnyxBdtGdpkYyOFIpxGKBvQ0jRZD0TcZ/LTAWdqpOMc iBcpeBjOV6WolPKdkW0k8N0vFjZSuoQjHFQImAfO7PL9uwRQteKZBpMRX1HBVjykkDEA U3qmmLIdCJs5EYo9f3hmuHygRAauxGP2e50tehtEmbR5vg9qpkq3aVmWqG/A+Y3wM9B5 x2A2CCcjsXOySa5bkd3cVqt3gKt7Jjj6iBIA9+aTTnKeHl3699g09lg3tnN0bCuc9+Po MkaSkh0ais3cCFxxZPmnNI/HE5mGjItnY4PhUTeeO8CRkP8j2f19YX9GIjqHvIP3l0rR LM9A== 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=DsPzYSmK1PzNzvrUgHsnSLZZOIK5NlSaB+JDZhlEtOQ=; b=CUeirMF6B3gjQn8GrlkXNsEKcREoMsuCZQ+W5DH8FGsO/U1qFf109aeGtFgOFRnMxh 5CuY0mVc3sQrOGXJvfvmXMbdmD8LWmnk25G3pJIQM+DD15Z80aV4EzxosHXOA0nZkAkO OWNwMxAgBbdRpI3kg3KKX9c1oZkL7tUhrzJ0jMRHgpTPCzPfIMv1iXcxOIQkoFKMpCgt FFkpPtJKZShyzXf1eRhUY5ootyd+UoU4Wt/wsmvEQlHME+PGMOvEV/iUglSuGxlrVTTb wUvFP5ypxyH62CoMcNcMCMxDLcOrSUvj0Gw061ySPrx8y2W7l9lcozPyuA2tEAnBSeWh lt0g== X-Gm-Message-State: AOAM532BJ/+xXbAF3YIlnGrkhWFvMBPNV7qvmHA70/oaadMBWzp1aOEp rFa010S21JyZTQGhzn6Z0T56hw== X-Received: by 2002:a5d:4d50:: with SMTP id a16mr5940186wru.43.1608318554221; Fri, 18 Dec 2020 11:09:14 -0800 (PST) Received: from dell ([91.110.221.216]) by smtp.gmail.com with ESMTPSA id s13sm12555285wmj.28.2020.12.18.11.09.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Dec 2020 11:09:13 -0800 (PST) Date: Fri, 18 Dec 2020 19:09:11 +0000 From: Lee Jones To: Jason Gunthorpe Cc: Mark Brown , 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 , 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: <20201218190911.GT207743@dell> References: <20201217211937.GA3177478@piout.net> <20201218131709.GA5333@sirena.org.uk> <20201218140854.GW552508@nvidia.com> <20201218155204.GC5333@sirena.org.uk> <20201218162817.GX552508@nvidia.com> <20201218180310.GD5333@sirena.org.uk> <20201218184150.GY552508@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201218184150.GY552508@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 18 Dec 2020, Jason Gunthorpe wrote: > On Fri, Dec 18, 2020 at 06:03:10PM +0000, Mark Brown wrote: > > On Fri, Dec 18, 2020 at 12:28:17PM -0400, Jason Gunthorpe wrote: > > > On Fri, Dec 18, 2020 at 03:52:04PM +0000, Mark Brown wrote: > > > > On Fri, Dec 18, 2020 at 10:08:54AM -0400, Jason Gunthorpe wrote: > > > > > > > I thought the recent LWN article summed it up nicely, auxillary bus is > > > > > for gluing to subsystems together using a driver specific software API > > > > > to connect to the HW, MFD is for splitting a physical HW into disjoint > > > > > regions of HW. > > > > > > This conflicts with the statements from Greg about not using the > > > > platform bus for things that aren't memory mapped or "direct firmware", > > > > a large proportion of MFD subfunctions are neither at least in so far as > > > > I can understand what direct firmware means. > > > > > I assume MFD will keep existing and it will somehow stop using > > > platform device for the children it builds. > > > > If it's not supposed to use platform devices so I'm assuming that the > > intention is that it should use aux devices, otherwise presumably it'd > > be making some new clone of the platform bus but I've not seen anyone > > suggesting this. > > I wouldn't assume that, I certainly don't want to see all the HW > related items in platform_device cloned roughly into aux device. > > I've understood the bus type should be basically related to the thing > that is creating the device. In a clean view platform code creates > platform devices. DT should create DT devices, ACPI creates ACPI > devices, PNP does pnp devices, etc > > So, I strongly suspect, MFD should create mfd devices on a MFD bus > type. > > Alexandre's point is completely valid, and I think is the main > challenge here, somehow avoiding duplication. > > If we were to look at it with some OOP viewpoint I'd say the generic > HW resource related parts should be some shared superclass between > 'struct device' and 'struct platform/pnp/pci/acpi/mfd/etc_device'. You're confusing things here. ACPI, DT and MFD are not busses. They are just methods to describe/register devices which will operate on buses. Busses include things like; I2C, SPI, PCI, USB and Platform (MMIO). -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog