Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp956025lqt; Tue, 19 Mar 2024 08:39:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2Q82eDxz1iPwcjW9TEojinwtJSJObxOCuEc1Ev7+MSpRfZ/gT9+oIolrA/gkZDkyDNv8Y3upwBfG0EhwOLkfz8KTtIRJ20fwuSqWUug== X-Google-Smtp-Source: AGHT+IF0YtxUUKCrdTsqryO+O8NZ/J/u24hhu2qyTDPj78wVmkQL8NzXC4h8ByUy8QHjZ1Vx28DU X-Received: by 2002:a05:6a00:1913:b0:6e6:673e:3447 with SMTP id y19-20020a056a00191300b006e6673e3447mr3237695pfi.14.1710862745437; Tue, 19 Mar 2024 08:39:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710862745; cv=pass; d=google.com; s=arc-20160816; b=AwCBug7U5wn3FmCYpZKaR/j8p4x/JkeLftDUQmJNx6CWCZAALUEj0SiYpScxjyMVWc 6ALao95i4OUrnLwyLO8vx3tDtbYY6tQICF5GTslOMGnBeJvu0s6bdeyDlqX4guBqPDWR F4TN+PlYamnEcyRXWLq/zXOa5bIyy4N7Of/uuFr8H1ZnDa2lCojuvMt2j+4OftZZHQH9 exCNpPGYmVtfT00GNEv5R6x77gWNhYF47l3eAGT/+VLkR8j/4q1maQHpRdCCTVtKDbi+ XONExgMUgRVHH18+dyCqQ87sHdNF8ph3efRHM33yxAOdviRrqIzyD9AidJE1L9YTeRfV JOBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=Ab+zULn2IP9jCO5eMIYobOnMG4LfbJA7u/jzgOg8EEc=; fh=HwasTFUw6XtL5lVSgsPDcarD+V1oHUxKrQi2Ep5/qc4=; b=OuCPNGORztUJTC521lOe87n4oWMjIbGfpvUCVm6ImC3iDcAJbY8MG1S/U9IdKm/uDc Q24kTGjg0oybxuK0hvUxhHTocmcSd2jI4tCUS4ukxJ3IlnwlW7a1Jb6O1vC7kDhEdA6o xzlH/GpeEIDkaKCSjBQR6VzTMfQUlPsz0InryWvqOVhYMU6nWGuzMKgqrLlnBiNKOpB0 D+w1rCYp/wGB/CFjLlDS5uvWjhQ5KuTcGp25kr9PKQe1l3OgL65uuafwwGc2PwCTKMBL sZqh+VY5lYJ1l+Hz3jMB2u54wEr7RhbLiP8Ot+eCc70ARf0mwa5AgAuwTpr+ijd2k+q1 zUuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-107728-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107728-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g20-20020aa78754000000b006e6b53989cbsi11141037pfo.58.2024.03.19.08.39.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 08:39:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107728-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-107728-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107728-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0CDE92835F7 for ; Tue, 19 Mar 2024 15:39:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13BE365BAA; Tue, 19 Mar 2024 15:38:56 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D5551F608; Tue, 19 Mar 2024 15:38:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710862735; cv=none; b=cILXwHRiOevBBWGgAAIYtdH5CZJW4qedFJjPiQrdiC6tTzWLnu9cOFMyigTmXepSHSGW1kjg/rYCupug4GcsZtx8sAtH5ra/7esGzS6jZ9ddgRW7D7jqODVvxrpLuMAzuGkF+/rD1Fh6lVxyasopsvkz6cUJaO1du0jTvvzPnyY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710862735; c=relaxed/simple; bh=Ab+zULn2IP9jCO5eMIYobOnMG4LfbJA7u/jzgOg8EEc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XIdgEBFHiTYVrOpammpTIUorQf0t/pbO7rAbAYuX7QIN67rRWXxEUOtF/Yz43BtfSNJNzajH7Qta22Vxw3q8ZNo8yF8YdbhENjPj0el/WQrgFBkonILene+ywpch6d1aeIPJSKkI/JAFhzXQLMx8bO63NVVJmdNLsA6biKRT6Xs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 86CBC106F; Tue, 19 Mar 2024 08:39:27 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6AED93F762; Tue, 19 Mar 2024 08:38:49 -0700 (PDT) Date: Tue, 19 Mar 2024 15:38:46 +0000 From: Sudeep Holla To: Sriram Dash Cc: , , , , , Sudeep Holla , , , , , , , , , , , , , , , , Subject: Re: [RFC 0/3] Enable firmware-managed USB resources on Qcom targets Message-ID: References: <1709657858-8563-1-git-send-email-quic_sriramd@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1709657858-8563-1-git-send-email-quic_sriramd@quicinc.com> On Tue, Mar 05, 2024 at 10:27:35PM +0530, Sriram Dash wrote: > Some target systems allow multiple resources to be managed by firmware. > On these targets, tasks related to clocks, regulators, resets, and > interconnects can be delegated to the firmware, while the remaining > responsibilities are handled by Linux. > > To support the management of partial resources in Linux and leave the rest > to firmware, multiple power domains are introduced. Each power domain can > manage one or more resources, depending on the specific use case. > Currently it is just 2 IIUC. Better to be specific with more details and point to the exact binding. > These power domains handle SCMI calls to the firmware, enabling the > activation and deactivation of firmware-managed resources. > > The driver is responsible for managing multiple power domains and > linking them to consumers as needed. Incase there is only single > power domain, it is considered to be a standard GDSC hooked on to > the qcom dt node which is read and assigned to device structure > (by genpd framework) before the driver probe even begins. > > fw-managed dt property allows the driver to determine whether > device resources are managed by Linux or firmware, ensuring > backward compatibility. > And provide the reason why this additional property is a must ? Why can't the implementation deal with absence of it on these systems ? Not sure if you have seen/followed this[1] discussion before, but please do now if not already and contribute. It is definitely related to this patch set and all possible very similar patch sets Qcom might have in the future across various subsystems in the Linux kernel. In general, Qcom must stop pushing such changes to individual drivers in isolation and confuse the reviewers to some extent without giving the complete view(or rather providing partial view) which may result in them agreeing with proposed solution without considering the overall impact on various subsystems and DT bindings. -- Regards, Sudeep [1] https://lore.kernel.org/all/be31801e-bb21-426b-f7aa-2b52727de646@quicinc.com/