Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2465070rda; Wed, 25 Oct 2023 03:42:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IErv2SA3mBvz4VtyXyeYSWpCSVIMC3gPW7uAvC4jtBcUMIb9dlcszmyVjDNlyjuopwM+duG X-Received: by 2002:a0d:da41:0:b0:5a8:960d:e538 with SMTP id c62-20020a0dda41000000b005a8960de538mr15367036ywe.47.1698230521033; Wed, 25 Oct 2023 03:42:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698230521; cv=none; d=google.com; s=arc-20160816; b=NwZKoBtIGjszctFpZbBsP0AK/F5V5tze6IwsnFsndXGhUSVLCHeBDqSgw9YciS/w/3 2jonO9g8Hsn49GFqa0CSGmgWyTJ+fKQjFCLswon5CpqivpheO6ABZNpGc8QQtTtiSpSJ fHEzhG1Cu+YJ65d172/H6YnR8Ix4eYFGGjmbgx8cUPCVsQ5ehdzEM1pO6r/NF1t+d5Rf Pbukz9PfB8eEaaLjdPbLTg4aGHicLbd4t7hRB/AcEzS7Cvt4Ke8TyMwS8etam2dlzRWA eCGG4qhq3B10Z2UU2ALTDHWXwEsebbzWnvB7233/DkatKF/bOrXQ9s0INkZ4SDTo+gs9 nxPQ== 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=c6Z1p4kKtgAXkbhWcm2d+hA00mC2LWkNVOmS2pvrIIs=; fh=wX0rtOostaiwpIQISSiO0M1M/aWsYpcL170ric70EuU=; b=wTqHIORQ7B5OSMf+qX0l7RW8inYReq9Cxj9xGPEvafr6pi3+hqWr+5jL/nrXDmpWpf KbbMOCe24bXoxB6VJqvS1IVxlv+EwJOOK8iMb4yAu6UXfDW5q8EVcf/T/D1rkpt1tRDJ D7C/SRElDPytPc53Fu6FqmE081h9b3N1uImgK05Srncp3w0571kV6u7sD7nn/NydVEtt IUJpYJi3abgwjpSXRUQ3yW3U6Pgjhd3G93Jr39baUYWJGa9lGvqwOU9epoYFCEflzulj f4Cv96Exg4/DN8ZFuS/PROU/sx2EVROKg9LUc8m9g55RDX0o+MudmZuY2Ec9ipOKvcBb GD1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OiE+5Dpl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id y76-20020a81a14f000000b005a7cc83c4c1si10784826ywg.425.2023.10.25.03.42.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 03:42:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OiE+5Dpl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id A991780886A1; Wed, 25 Oct 2023 03:40:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343578AbjJYKk1 (ORCPT + 99 others); Wed, 25 Oct 2023 06:40:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234735AbjJYKkO (ORCPT ); Wed, 25 Oct 2023 06:40:14 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6E1B10DD for ; Wed, 25 Oct 2023 03:40:08 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-507a98517f3so7667670e87.0 for ; Wed, 25 Oct 2023 03:40:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698230407; x=1698835207; 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=c6Z1p4kKtgAXkbhWcm2d+hA00mC2LWkNVOmS2pvrIIs=; b=OiE+5DpllivC1t3kS6P/G9QplJqPWhgDbwtjnMg5RtU0YL++rttT2d25WEuba0H2dz qSqphjuNoWC3dwpY73z5iXARaaXbO9+twD2+Hl7nyfunjxrBF5T2v8Z3lu39MNJH38FK XhFUwZFdl+F4zw/12QLc7cHXjzYFk+QmJI2A32rBcF0HrQxz8L1cF/cxD7ZcKGKPyaP/ 7NC5xcwje0Q82YgxURxn7NUBT7DkrEndRLtZiPjkVLhSllbpM1NRMG25q7DSM1zP2dap 6D+j9wYfx+AzMExiX29m4UgmxM+1Rwg6EkPmQzc6tbnpaYfvye7yxiGwXjh/daE72kgr b2Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698230407; x=1698835207; 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=c6Z1p4kKtgAXkbhWcm2d+hA00mC2LWkNVOmS2pvrIIs=; b=cO/RdKLyyf2X2jkdpkByIotmjydk4ebI/K8dtTE29iFX3WTzcc9AOsFVH4gkBhz6u5 I5VZ2aVxwWmBfBCXryEWS2z7WKCcEsgjMMRauFu0Q7NWfDdlqqKmgJtd0OH3z6WupUjF WLEpL7yrSMB4VC+w+ee1fT3rlxGgLYKb/M8pbDh/9wupQX3niMU/6nN0ydvJth20xKnz tC2PbUM0dcBK8zb0JMQ6XCaEGpo31VmXGKAnEGfiU9zpWNZnLNvlI8fJ/wAwJ1v/N/va RFJHYhmvkk1HYxg4ZY7/4OS9HYrDMsN20iBIBiWniMGBEeICX6Q/qGbbbcg7sFNMnxjq YgfQ== X-Gm-Message-State: AOJu0YwUQ7J6EzugWewW8z80nmyaSupLnzXy5W7XlN6fv53Ft2OKVeS0 obnbv/vENZ8WisgRXsqTRTapNw== X-Received: by 2002:ac2:58e7:0:b0:500:b53f:fbc2 with SMTP id v7-20020ac258e7000000b00500b53ffbc2mr10374360lfo.26.1698230406696; Wed, 25 Oct 2023 03:40:06 -0700 (PDT) Received: from [192.168.100.102] ([37.228.218.3]) by smtp.gmail.com with ESMTPSA id f7-20020adff587000000b0031fb91f23e9sm11788220wro.43.2023.10.25.03.40.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Oct 2023 03:40:05 -0700 (PDT) Message-ID: Date: Wed, 25 Oct 2023 11:40:04 +0100 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: Konrad Dybcio , 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: Bryan O'Donoghue In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Wed, 25 Oct 2023 03:40:37 -0700 (PDT) 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. --- bod