Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp287958lqh; Thu, 28 Mar 2024 01:55:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4TnOrUBUi5OhrxpT9n9xWrYxma6eguyVIlN9WK1pAt+z9xXZZ7nRMnMD/rjIhh5E4SWK8SbmahhWSrOdkjMzSteA8psyL+yKwdpaFOQ== X-Google-Smtp-Source: AGHT+IGYI8MiTlEpRaYzTTb84jHKz/xFR4Pt42jUvuPE9m+TlUqo1Vh285Rgklm7xH51iFJdhPUI X-Received: by 2002:a05:6358:71d:b0:17e:f3be:5c0d with SMTP id e29-20020a056358071d00b0017ef3be5c0dmr2130528rwj.15.1711616156922; Thu, 28 Mar 2024 01:55:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711616156; cv=pass; d=google.com; s=arc-20160816; b=gD/v4BY4/84KjMcmKhYiI3EAlpxN9batjat/F/713iggxIA735Vs0JzeiZphsb7E69 ihVFmXg2P88VlpGZm+B3V930IZqD7ZWKca99qeZp00+YqpKJ6Lr0CERR3WN6ABpxFL1q 28GaRKsL+H2/zXZU6gZFQ74y321MoSdwWQ6XY4xCdbxvnB/x1Npn2LLHIzK6hI8v6xK1 aSUHuYa2Md7slgsNOA3YNasvNG0+DWgPrWwsfcjqEnzmWLCjSVB1jGiI/tK11n32c+Ho TJYgdEz2hyhnCd1v+b6RmPShnFh6OFaKRQYHiGle7qVaZ0mQKiYKfHkXpHM32btc9Mpr pgLQ== 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 :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=Vm8neqGmCcwB+1XXAd9zMCmUPIcIdZmM13yfXwpV3mY=; fh=47/EuTwY2WSs9PdY2xz2ydi3qNP3eU2iD6GohYuWETc=; b=IgY963Zpuk+Em7NpsVcjFLzJLZm789WIYG3QLYRo3D06j0iFtZOE2OPt161opQjFdl a+g0YArv4OEQpL2InkoYJNFWrUNo1kEn+r9krEbjYmDepBH6liEobJ6PfKKWp0PrUwoI 6tqnZt2a+G0ezN5Dgsljt9gIOMNszHh6JimsBlj0p6b5NitFxQQb4g4W0zQ9BicoShm5 nMpfhuNZU54b/rnv7PdtTULMENWVGyRrviAxJSH+Mfi0ItyXiSz71/ssio+Me+WWIXPw Yep9ZRNdLIUT6E15KgNWWbETf8EeY8O4pw9AkZ58EtYlebfMcLvkkH3oCUoIGSvANPRz DZFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kRxcCeyL; 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-122593-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122593-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f14-20020a63f10e000000b005e0b2413677si1006231pgi.552.2024.03.28.01.55.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 01:55:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122593-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kRxcCeyL; 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-122593-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122593-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 11C31B24752 for ; Thu, 28 Mar 2024 08:44:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BDE505380E; Thu, 28 Mar 2024 08:44:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kRxcCeyL" Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (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 F2F61381BD for ; Thu, 28 Mar 2024 08:44:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711615485; cv=none; b=DRYolRaw7HeR2WrqKEgfEg9I+E46AmZeyb5RPMp1G7yuCOQGpAwkSLDPQkwNnqO2VaprfYYb7EejT3IOXJGPMWaXnSDsM5pdBLE+RDaJq9uDbdKxQYvvEPoSiPimNiA1YSxPWqdUF2adX8xqP90ERPuFHlh7JC7/hKyIbsUJxQY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711615485; c=relaxed/simple; bh=2bipewHiWc20IPVmt/h+G6sEVSbPUHGeRr02tRHiUS8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GmKDzMNme30Nfl0zqlEcc57KacoIZ4CbpDh3ykJ55H33phRtQQmQgz9x+hKpSpPYGteM4taJeVxyowXBFICgrXvCOByS2l1X7Oap5KKAQJKR1izj9kvEtPs/+HtfGsgjwsboDwJYbk00wbGqj4jJKobmlZSZBrwziQdpP49YdoE= 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=kRxcCeyL; arc=none smtp.client-ip=209.85.208.177 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-lj1-f177.google.com with SMTP id 38308e7fff4ca-2d6a1af9c07so6819871fa.3 for ; Thu, 28 Mar 2024 01:44:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711615482; x=1712220282; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=Vm8neqGmCcwB+1XXAd9zMCmUPIcIdZmM13yfXwpV3mY=; b=kRxcCeyLN1QK3yYV9aDHj4pGRIl0YC+pIHYLxP9LKAxwghXy2ZL2G4j9V9TEs7BQUy PF3EzaGr6VNa+Nr8fPde/8eGb9GvKJ4791Skw8HiQqjtacRABq/tXMg05Zm/3ZKOyy86 3y1W530VkJLfXKy8DqDjPvnbhp3fJCMvOEqIE4KX9qCg3ESXaotOA9rKSnO9zZrPONy1 0xzvI2D95nGE49KLvFWc4G0nBEhzNWBzuwv9DnFtYrHcoY7Mp8eZ0U9Gu3ma+lXUhoiM nlgZ+dcmade/m4N7Mlo+wNJE3LqMqgbK8srGxGPUDqp7ROSIm806YKuQ6EJJQfFvndFQ cWWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711615482; x=1712220282; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Vm8neqGmCcwB+1XXAd9zMCmUPIcIdZmM13yfXwpV3mY=; b=nuPnMPRCYoKutXOr8rjH0KebHybQVOy5ldFYOKbyYXVAH90xxQsdYqQ+6GjJpMJLMI 9Xu1pcWlEcNi2MdiM76tI0/aTID/adrLhZ3nw56GkiHDjNveZgKnhUj+BU64hi2oaqb2 THSuIdqIizxQgEgFnVMvpcN2A+VdwV/WeFSBpUb0rAA1rIb6ft2XnpwQii4O49X/UpeK /OuxF2Qd0ScwjKdhpdtHMxf2fYGW7y1RvKgr9l2ry1p+qsiKmXnBIy+xf/66zm02yeEl tcuPbIO9O+NBPILR2CpOTKlS8IbnAY9GDrzrL9ORZ506le9aRJdEpKyqY91QolkVSxXW yBEw== X-Forwarded-Encrypted: i=1; AJvYcCVHTX2/ZwDJ68u14BnnOknfW7O/w4OYV32XIV+6Pigbos8h/ROeXKKDzznJ7rxJqCDjMi6L5XPOAR6fSK+ZFtB4WMTOHDnFXc2gU4l3 X-Gm-Message-State: AOJu0YyoA5DHseBYmaiiKt0MHYQZpaVI/MDX4faES9qJaXfm9s4nCAU4 V8AQa+aGup0hDFw3CM2ezBy8Y8a0SDVhQaxsTf3snZFCvl48UjoVNkR7dACCdxE= X-Received: by 2002:ac2:5b4c:0:b0:513:d49a:7a0d with SMTP id i12-20020ac25b4c000000b00513d49a7a0dmr1170137lfp.42.1711615482135; Thu, 28 Mar 2024 01:44:42 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.148]) by smtp.gmail.com with ESMTPSA id fj3-20020a05600c0c8300b00414896b61e4sm4712117wmb.16.2024.03.28.01.44.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Mar 2024 01:44:41 -0700 (PDT) Message-ID: <12b911fb-ba8e-4fbc-bc7c-4de3a45d4581@linaro.org> Date: Thu, 28 Mar 2024 09:44:39 +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: [PATCH v2 2/3] dt-bindings: power: Add mediatek larb definition To: =?UTF-8?B?WXUtY2hhbmcgTGVlICjmnY7nprnnkosp?= , "amergnat@baylibre.com" Cc: "linux-mediatek@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-pm@vger.kernel.org" , =?UTF-8?B?TWFuZHlKSCBMaXUgKOWKieS6uuWDlik=?= , "conor+dt@kernel.org" , Project_Global_Chrome_Upstream_Group , "robh@kernel.org" , =?UTF-8?B?WGl1ZmVuZyBMaSAo5p2O56eA5bOwKQ==?= , "linux-arm-kernel@lists.infradead.org" , "krzysztof.kozlowski+dt@linaro.org" , "matthias.bgg@gmail.com" , "ulf.hansson@linaro.org" , =?UTF-8?B?RmFuIENoZW4gKOmZs+WHoSk=?= , "angelogioacchino.delregno@collabora.com" References: <20240327055732.28198-1-yu-chang.lee@mediatek.com> <20240327055732.28198-3-yu-chang.lee@mediatek.com> <6dd9959e-f741-47af-b10a-1894f72ae78f@linaro.org> <7ff9c4c7-3b56-4a5b-95b7-c37cbf8bcd6d@linaro.org> <038ccb20-71cb-40d2-9720-ce1a0d3eac8c@linaro.org> <7f24ca2806a7199e4de6fad17b8dc1f127c82180.camel@mediatek.com> <3b04c5344435cdb941b5d132e8f5fbfdf9188d67.camel@mediatek.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6nd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bRA/ABEBAAHCwXwEGAEKACYCGwwWIQSb0H4O DFH41ZZ3t1Qbk0N9O0FimwUCYDzvagUJFF+UtgAKCRAbk0N9O0Fim9JzD/0auoGtUu4mgnna oEEpQEOjgT7l9TVuO3Qa/SeH+E0m55y5Fjpp6ZToc481za3xAcxK/BtIX5Wn1mQ6+szfrJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <3b04c5344435cdb941b5d132e8f5fbfdf9188d67.camel@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 28/03/2024 07:06, Yu-chang Lee (李禹璋) wrote: > On Wed, 2024-03-27 at 12:55 +0100, Alexandre Mergnat wrote: >> >> External email : Please do not click links or open attachments until >> you have verified the sender or the content. >> Hello Yu-chang Lee, >> >> SMI LARB must have a power domain, according to "mediatek,smi- >> larb.yaml" >> Now you try to create a link from power domain to larb. >> >> Here is my understanding: when you enable/disable power domain, the >> larb linked to this power domain may have an issue. Then you want to >> retrieve de LARB linked to the power domain though the dts to manage >> the LARB. > > Yes, this is what I am trying to do. > >> IMHO, using the dts to have this information into the power >> driver isn't necessary and may introduce some bugs if the LARB node >> and power node in the DTS aren't aligned. >> >> It seems not implemented today but during the LARB probe, it should >> "subscribe" to the linked power domain. Then, when the power domain >> status is changing, it is able to "notify" (callback) the LARB, then >> implement the good stuff to handle this power domain status change >> into LARB driver. >> > > The problem with this method and why "smi clamp" is in power domain > driver is that our HW designer gave us a programming guide strictly > states the sequence of what we need to do to power on/off power domain. > Using callback, this sequence is no longer guaranteed and the side > effect is unknown... > > So I would like to stick with adding larbs just like smi into powe You want your power domain driver to poke, asynchronously, without locking into registers of another device. And how does this not cause issues? No, work with your hardware engineers or Linux engineers on sane behavior. Best regards, Krzysztof