Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp660392rdh; Thu, 26 Oct 2023 12:01:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHYgREJQlW23qva/mYhDOk0sNrOrlY63FBCy0gYURGQrMmlWPJemTggfTNjK64GMJwlamlp X-Received: by 2002:a81:4cd6:0:b0:5a8:3f0a:618e with SMTP id z205-20020a814cd6000000b005a83f0a618emr339265ywa.37.1698346914250; Thu, 26 Oct 2023 12:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698346914; cv=none; d=google.com; s=arc-20160816; b=DP7i8SwctXGdRgk1Q2zAPvENtFNRiemx27iWQfN5JIv6Khf2zJUfb5Aror0UMpi3Ig WHRyDKZLuxbEX7hK2lZxx5+iR9fUy4DrK+B5AdwZZ4/8oHHRiNBLSlYRsoNIhQRQlcMy YQBTyS7H1XyS0wxdXGySNPzD0WoUpJCUP4bjqQiRHLCm2BtY4PQ6EByqW/7hZKzIWOxB fB8xuUc1/nd/EsybrFGFMussqkWKr7URIDkoyL206WdrgBdbBMPU3HUg6x4Rjit0vAgT noY3F/pYleJxHMuCcyAapBs9+L9NC387Y/LHKJka+mO7Rkrww2hocImiSanwYQtsXVfc i1Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=J1BZ81nAT0A4MTpnEvNW5fCUKOEkpiMZtdJbcsroR4U=; fh=mDQ0Wi695RR6beRIE/oUQG43hakFTNuvfHb9BPzAtAc=; b=X25HED5MjsPLSCZO45haLlZXnmfbjYP4/YYfcj+Lpkw0IQr9IaJIC6IS/rVQvvjy5s Kt3rOUgk2/iO+WOpSIKkbNnbY+27rK8YpyQDPpmcphW2iLzxn9v9567pGve6oKzn5Fx2 WfWLl7k7QB3CPr8UwqajjfqSF+SGGMjsJJ9P8OrLcSRj8FNL5hNk5wrRuN/wV5niUx7d UhQfvE40Z9GQQM3Ld04/QIfFbyDS+PeMJQuslhmeRgaCeS4HRwxFv2dXyv3hKdAlIuMW rkW2uTEe/vMg5W7yxR75h4urBP86VU2l0lwRcIKCTnoweApHILqYtvr2tsm20OOtlPcD zuWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lsy7FgSq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id n62-20020a0dcb41000000b005af9dc21f81si144451ywd.442.2023.10.26.12.01.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 12:01:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lsy7FgSq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 1D752801B437; Thu, 26 Oct 2023 12:01:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231546AbjJZTB2 (ORCPT + 99 others); Thu, 26 Oct 2023 15:01:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbjJZTB0 (ORCPT ); Thu, 26 Oct 2023 15:01:26 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A30381AE for ; Thu, 26 Oct 2023 12:01:24 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2c5071165d5so13443461fa.0 for ; Thu, 26 Oct 2023 12:01:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698346883; x=1698951683; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=J1BZ81nAT0A4MTpnEvNW5fCUKOEkpiMZtdJbcsroR4U=; b=Lsy7FgSqds2AXp7gVWDHO/geAUbkA3L85Efkjw3Bbh8XQ8k0SvIEahmrhCD2RJKMIE icjuG9eW/Y3ArvFf/m6vs3LM93ZPvM8lSx4IwsBfvhpOO5u729YueypgJ65exWdxoylC oQL9m/XXhXnI5nCuJgOJXofLTVCsbvLXIAI6MM7xOIeXeiWoyYC/+DnLjdOz/XrBSvlz Ml1iJuRVGYeSS2xg5Ccuc1UUEFUsYQRLevJ6C9quk4vemBAqTs2qxcwaYp0PuuwJ63o6 J3J7vBcf0a7OONpnSkm8iTPeEOBCkih98SvesW7j2+OUu11ayeWb4JUIMTlB4G0AL7pX CExw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698346883; x=1698951683; h=content-transfer-encoding:in-reply-to:from:references:cc: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=J1BZ81nAT0A4MTpnEvNW5fCUKOEkpiMZtdJbcsroR4U=; b=ZWkFsvY+u/ijGc5P9kHhi42Gop+2dsWLHcKuQLy5roLiWh881veoYNwPLh+UOrc+LY AudEb2DTgl50txqNlTn98b7xd6HicUsb8Xy6v6Fj0baRXEJPkIIow4nlcupsTqgfnwJ4 3wMa9ZTfiINBo3nGHKg8KCgBKlAmhbn4UyI/PFSNK6kUHaOs/gwiafj9O6G+PfJDHY2y TDr5/rI1fQBJBBfUMXpPO7GKo7jA/9psq3MjCPXN+I0OHCJqHwIT01CKGGFDYExfutr1 zYNh/mWT8OLKHQPWEUK366/DTNnBdnJT88qNZSGYxyfML9Jul1TSYhcscm46uf3kqFeY fTRw== X-Gm-Message-State: AOJu0Ywbv4ncxRE+7OvLvvyLMPxEIR6Bn1xLxWwXCc1YxiB/m5gn1oWE jUmQR7SSL+mvY+ExE1ejmGkxTw== X-Received: by 2002:a2e:bb86:0:b0:2b6:ea3b:f082 with SMTP id y6-20020a2ebb86000000b002b6ea3bf082mr321435lje.38.1698346882840; Thu, 26 Oct 2023 12:01:22 -0700 (PDT) Received: from [172.30.205.8] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id m8-20020a7bcb88000000b0040684abb623sm3240647wmi.24.2023.10.26.12.01.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Oct 2023 12:01:22 -0700 (PDT) Message-ID: <0bff0569-8571-4994-96f2-ebfa1b82c9aa@linaro.org> Date: Thu, 26 Oct 2023 21:01:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/4] media: qcom: camss: Use common VFE pm_domain_on/pm_domain_off where applicable Content-Language: en-US To: Bryan O'Donoghue , hverkuil-cisco@xs4all.nl, laurent.pinchart@ideasonboard.com, rfoss@kernel.org, todor.too@gmail.com, agross@kernel.org, andersson@kernel.org, mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231024224255.754779-1-bryan.odonoghue@linaro.org> <20231024224255.754779-3-bryan.odonoghue@linaro.org> From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 26 Oct 2023 12:01:42 -0700 (PDT) On 10/25/23 12:40, Bryan O'Donoghue wrote: > On 25/10/2023 10:18, Konrad Dybcio wrote: >>> educe the pattern down to a common callback. VFE 4.1 is a special case >>> which to me also indicates that it is worthwhile maintaining an indirection >>> for the vfe_pm_domain_{on|off} for now. >> Are there issues when powering it off like all the others? > > 4.1 doesn't have a VFE power-domain just a top level controller PD, however I think a blank callback is neater than > > if (vfe->pm_domain_on) { >     vfe->pd_domain_on(); > } > > its just vfe->pm_domain_on(); at the cost of 1 or 2 instructions for indirection. Right Konrad