Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp551438lqs; Tue, 5 Mar 2024 09:15:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVUZWsshKRVUNdLZs8f+XzhKFGNfpon79X0UghDjLiqUZg1P7xLHsJWiJXIRRUG9JFn6j2shEQN7whTaKgVwYcwaFvjC1jjnmA3X+2fPg== X-Google-Smtp-Source: AGHT+IFfxkUtfyboRZQoXES8NKcRg7kWRRteUYfCwdCiICnZfVIFrYRmhHz1M4IwCd4dTR1vEa4r X-Received: by 2002:a17:90a:394a:b0:29a:729a:be2c with SMTP id n10-20020a17090a394a00b0029a729abe2cmr9798288pjf.21.1709658949239; Tue, 05 Mar 2024 09:15:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709658949; cv=pass; d=google.com; s=arc-20160816; b=v99WPkYMlKloF9uMO1ZzgjYLDLpd0k5hqjs8tgeYjr/sjNBYRNzdeL78CmDEBLDC8Y tjJtnM1DVIIMof2DGROQqUVTlOWxWhoH8roONm2PqynPVA5g1kpip7lNQr7wCsFpDT9F wQ9v7NrJVzzVYDNi9aMMsedx5aHDtsGTLLqAlCM03l7mvJuei4+v1JjPjR8PFcmIYavl kd9Yg1AIbP0PbbbLbC9LJeF738naTmjk1rP34QSf9NAgRmYV2/wqeAzlJ+Iy+ML4J/9y zj2n2YEHStWRWPVdGhxJnkTg/zcUWY7//OH2zCNH2GBopnIrXWkvO3Rr9YLxOS9O8a+v EM6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=tw5qY/yrG8Cl06TuYqfyN+gfIP9rYoMHvnA9fsjGPpE=; fh=I+rs638pdHWjY4qAEc0rqZVD0oU+9xkh9PKRtsIqZGQ=; b=Ofvf1aJM2HTX0azac1S+6yL+RfMX1D4pzt6pX6x00XdMjoiKVNEi+Ff98M5MuKa4yf cvWESzRwvLE+Y0yLV75cxIE+sx6IhMo6qlzR5XG4Zn2vDRTb/IiR6ycR9epkBTJvE1zl HXazfdrI6KyIENYctE+Xxp+UQB4TvqYE5Yu5ptMyeoRSHhDdxdCyzQroQBzYePMnhUcj pYjgN0oemB7KDo2ZD2KRkj3W/IzUjn+haGPA6SdMY40H3b+tJPhoaoJM+yEFzviHC2TQ vOsckbfGRmZ5yDXVr4rtKjLI+VeMRk4eti3wKWFF113OGXA4brjCn9enEdg7fo4xbtEJ bz5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=chBpdGSr; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-92746-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92746-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l8-20020a17090a850800b0029935017d7bsi12170248pjn.10.2024.03.05.09.15.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 09:15:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92746-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=chBpdGSr; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-92746-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92746-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 1DA80283330 for ; Tue, 5 Mar 2024 17:13:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C262717C73; Tue, 5 Mar 2024 17:12:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="chBpdGSr" Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 316AF17BCE for ; Tue, 5 Mar 2024 17:12:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709658744; cv=none; b=geQoViiEu490X3BnXOD14JQXkeQx6goz13oxRQ0dzplEfn0XRMeYHSrLX0GipRaFBSPRoV4WnXrtZWaIQT9dfuHehRHrPcwXoy4Gj+nnZjL3A2f7GlFLO5TGPpZgr5BxMZsyzShRBsOz8N007PQrIXtyICHKT+rPwqQSCBYTaTQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709658744; c=relaxed/simple; bh=2Tpkmbdi9N07LzhU26UHK7jF7P9BtsRTxn63iH6J6qE=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=p660ALnJSwO+2hZ6uo4rf+w8EJ6/LxjeU9K6u9QnVojzoHxYJFOH5VWwLGHXCPBDSYniLzXGjdPKAa/Fzmj5Xzps1AF08RSObKTusqjSKK7QQmUW/U5Q8yhjIZBNPedhdjFnmBLGCgKcJ3WeuWUTUtP8Jc97+1t2CdnjcVHBDRo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=chBpdGSr; arc=none smtp.client-ip=209.85.208.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-563cb3ba9daso8776a12.3 for ; Tue, 05 Mar 2024 09:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709658741; x=1710263541; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=tw5qY/yrG8Cl06TuYqfyN+gfIP9rYoMHvnA9fsjGPpE=; b=chBpdGSrFk52MqjJNT9+kQaRPRrh/olb3vYD64rMBVYL11TBNZgI+xtK3oTdovj+Ef M5DDrqOrg7SI/hZ4uv7VjUgckXdOI8HXwwyD86R/+maE/zqaqiBe0GkEsdHZy6WdDFHl v8dssaUSOo/vcaNoTgr7r3wESz9kWo51OcUDZHABBkQiY7j9OvjYxHs55uXD0Sxwc6Fo 5uBjH22QWMPnUtYamipnlOGFKdipGKbSk1gbuTaQv5mfmFPhfn3m5/hPyWbN1HtQfWkG SB+AuzvihWpgzWtS3YsluvyGPDaYQcAyaA50uhCOGQW5WcrVxmHw3kdX4I4LOriSCLnW 6wug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709658741; x=1710263541; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tw5qY/yrG8Cl06TuYqfyN+gfIP9rYoMHvnA9fsjGPpE=; b=RbYep6aIP9aolSpMFhvWsN5JScnaj1n2faz6d4ilAzIg4kX2W5L9oTwUPNVn8FowJU T21N2se2uB5SC2GLnFX5DbmORGOqU0uEXuZ2AaPXIqGJZdHxQNbT+bdWaFHwvwOvjw3s 9Y58OaXHMoJjsPtQZC7hbPuzzH5be9ZrEh+VKxYXwpxNL+XrcncQJubRwCtul5pxt6DJ jY8O5Cdco4+hvQVxYKpZtOAeWlluk/Gz17A8t0mU+QcmnJuA5eHz9qXNA0H5gzedTx6C Le9c5b2bM/cKefY8XFammoeVYVtQc37P7TkiMNks5fCuNp1V8/+8dMlsG7JS83TKznUM Y4ew== X-Forwarded-Encrypted: i=1; AJvYcCVy0drjAxn+fd6rVjBJA9TYz8TyJ8sTT2mc8rmuC+Y9kLtl4ru+nz+TeYWKACiA1zRQcddOVZj33xgVWnkLA6cKy4yrWLaxWT/v1Yb4 X-Gm-Message-State: AOJu0YyMN5Qz7vJVqjL760WWCrp1WQkqh71Z/p+cCcPYfpsQ2Wa+Eshw diEDzTsWxjSeR9u46Abu3kY77hMWnRt/9AAFQKhkznUEOvLGb+uzoPP5/2Eeb0s= X-Received: by 2002:a17:906:1d5a:b0:a44:48c5:85f6 with SMTP id o26-20020a1709061d5a00b00a4448c585f6mr9000357ejh.43.1709658741636; Tue, 05 Mar 2024 09:12:21 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id d14-20020a170906040e00b00a4138c3f065sm6192107eja.56.2024.03.05.09.12.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Mar 2024 09:12:21 -0800 (PST) Message-ID: <4d2501a7-d56d-4736-95d7-41556166859b@linaro.org> Date: Tue, 5 Mar 2024 18:12:18 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC 0/3] Enable firmware-managed USB resources on Qcom targets Content-Language: en-US To: Sriram Dash , andersson@kernel.org, konrad.dybcio@linaro.org, vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, gregkh@linuxfoundation.org, quic_wcheng@quicinc.com, Thinh.Nguyen@synopsys.com, p.zabel@pengutronix.de, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, quic_psodagud@quicinc.com, quic_nkela@quicinc.com, manivannan.sadhasivam@linaro.org, ulf.hansson@linaro.org, sudeep.holla@arm.com, quic_shazhuss@quicinc.com References: <1709657858-8563-1-git-send-email-quic_sriramd@quicinc.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHae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juXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <1709657858-8563-1-git-send-email-quic_sriramd@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 05/03/2024 17:57, Sriram Dash wrote: > Some target systems allow multiple resources to be managed by firmware. Which? Why this is so vague... > 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. > > 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. This will break the ABI. Sorry, come with an ABI stable solution. Best regards, Krzysztof