Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp508508rwb; Wed, 5 Oct 2022 23:50:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4hM6J45qzVCzV7QpprDi8vlZuOuhs03zlHb0gMZC2SvHQ8UYFPFvXYXNb3woz32PGFI1TW X-Received: by 2002:a17:902:7794:b0:17f:72bd:74f9 with SMTP id o20-20020a170902779400b0017f72bd74f9mr3413684pll.117.1665039046507; Wed, 05 Oct 2022 23:50:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665039046; cv=none; d=google.com; s=arc-20160816; b=z2gtSvxtZd3dIzb/N7e2D57fs7wAYK8+l7H7859IfO+uw84kaPG/LnvUvg3UPMHJQY GDGVr9DmfCyhZJe23b6QFT9s/foIoWBoeoufG1C9DJqnrPH3bkcw+VyxL7RmSzsei3Qd gkmC8lfy7bb5M0vGz55aBLuCSRB1FPDdx8doXsmDmOSe16fd/cGqBR1ZgIsf8mDX/Fbu KHFDaTHw3Q5YcESd0r49nOykU91f4A9Hiqx+5KVqD69q41pBm8ZnluTiZ4AOtCBizdNc zX87+lsX40/b4kFVf6Qe3Ll73qyfpBU0I4v5/xI6us8eonu1VY74HU7qensrddOxnJbx zxJw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1m/fxVXadzXwx9ASRdwt50IyXON2FoHGc4uT3T61gT4=; b=j1aqtbSAKrGZHbtJT0W/JyXewl/CopQjNN2CCJRzuQpFIO+tXRdT1hOLKeEZ58tdIm 2otKGz3sUcCrcYsSaM3pDiiKDA+dRXIEugtLuvXgVkAaC9+87d1kjQlHXO6Iqe2Soxil WWNodrbXSASSclvFh2LgZ4/it3lBrhzgMnNqd6Kb/AwvioemxbaBQOtbrUE5vw9oLts1 AqLOHjUzMOGie2TUIxVw8zTDqUUVutd4reuQAnoF3mGsePWhfuibK6MM0h0J1Vlv72+e N58LrOx7m67eAzGRaN5WHcsMuUmid/ZHDoQMlUNs5qjxdaOal9gOl2DGi5uzemOtKjec oyRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hudoBHGF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h4-20020a635744000000b0042b807728e3si18916176pgm.762.2022.10.05.23.50.34; Wed, 05 Oct 2022 23:50:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hudoBHGF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229496AbiJFG17 (ORCPT + 99 others); Thu, 6 Oct 2022 02:27:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229812AbiJFG14 (ORCPT ); Thu, 6 Oct 2022 02:27:56 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CC75868B4; Wed, 5 Oct 2022 23:27:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 20840B81FFD; Thu, 6 Oct 2022 06:27:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB6B6C433D6; Thu, 6 Oct 2022 06:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665037672; bh=QIfdJBiRQKsa5RhMHnupg9fLel0B7FyX4apbBxJ5XBo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hudoBHGF6wYBmTOvztFyGW3iset3ApQrpYXpMj2zXngnJytXZ0QHDgwo/hLa9PIf6 mYq/VIh0wL5xAUsxkAnS6YaxfgnsM+vzOJMSe8SE9iLvJxwk8/pu94QCWlpmcPhSsM EyJ4H4qeVGEIucKwNIHBNSuLfgTxO7YVbljKskG0= Date: Thu, 6 Oct 2022 08:28:32 +0200 From: Greg Kroah-Hartman To: Elliot Berman Cc: Bjorn Andersson , Murali Nalajala , Trilok Soni , Srivatsa Vaddagiri , Carl van Schaik , Andy Gross , Dmitry Baryshkov , Jassi Brar , linux-arm-kernel@lists.infradead.org, Mark Rutland , Lorenzo Pieralisi , Sudeep Holla , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , Will Deacon , Catalin Marinas , Arnd Bergmann , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 13/14] gunyah: rsc_mgr: Add auxiliary devices for console Message-ID: References: <20220928195633.2348848-1-quic_eberman@quicinc.com> <20220928195633.2348848-14-quic_eberman@quicinc.com> <1db27cda-356e-bae2-3c6a-b7916123a269@quicinc.com> <31a4de54-9fbe-8487-903d-28528a1b42d3@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31a4de54-9fbe-8487-903d-28528a1b42d3@quicinc.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 05, 2022 at 02:47:46PM -0700, Elliot Berman wrote: > > > On 10/4/2022 11:21 PM, Greg Kroah-Hartman wrote: > > On Tue, Oct 04, 2022 at 04:49:27PM -0700, Elliot Berman wrote: > > > On 9/30/2022 5:19 AM, Greg Kroah-Hartman wrote: > > > > On Wed, Sep 28, 2022 at 12:56:32PM -0700, Elliot Berman wrote: > > > > > Gunyah resource manager exposes a concrete functionalities which > > > > > complicate a single resource manager driver. > > > > > > > > I am sorry, but I do not understand this sentance. What is so > > > > complicated about individual devices being created? Where are they > > > > created? What bus? > > > > > > There's no complexity here with using individual devices, that's why I > > > wanted to create secondary (auxiliary devices). > > > > > > IOW -- "I have a platform device that does a lot of different things. Split > > > up the different functionalities of that device into sub devices using the > > > auxiliary bus." > > > > Why not just have multiple platform devices? You control them, don't > > make it more complex than it should be. > > > > And why are these platform devices at all? > > > > As you say: > > > > > A key requirement for utilizing the auxiliary bus is that there is no > > > dependency on a physical bus, device, register accesses or regmap support. > > > These individual devices split from the core cannot live on the platform bus > > > as they are not physical devices that are controlled by DT/ACPI. > > > > These are not in the DT. So just make your own bus for them instead of > > using a platform device. Don't abuse a platform device please. > > > > I'll avoid creating platform devices. Are there any concerns with creating > auxiliary device under the platform device? Yes, don't do it if you do not have to, auxiliary devices are there only if you have no other choice. Just make 2 real devices on your own virtual bus please. thanks, greg k-h