Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp609340rdb; Fri, 8 Sep 2023 10:21:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGxNXHunwd611GIJES/qKdFHUkgWYdgmJrdSxV8OCiUBLHtUl6Tuhk6tX9e8ZGRN4fYv5Y0 X-Received: by 2002:aa7:d790:0:b0:528:89b0:ec50 with SMTP id s16-20020aa7d790000000b0052889b0ec50mr2526244edq.21.1694193689025; Fri, 08 Sep 2023 10:21:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694193689; cv=none; d=google.com; s=arc-20160816; b=zjP9moTHYkly6iB9oRPiioAL7fRucVFWP97/Tmq2VN6Ev5VUDiLAFdSUdW1659qJZK FgceZmvjb3k5RYTOBa2yfneMEO5MRgE5grYKnHNei2xqMHd9hyNaeEQM4138kVKvfLve IwKs1OylRb+4RdjGCjkbpHbIfvabgSdSLvSnfUXT4IpLjN/MH9kJVUj9iEWCRgw9zKGa w1O+dQwE6psdjR6GB7wxmYgnwda8AvWfUbYAQY9ajQa1qgAcXIib0YqSCJ+haO6Qtkv9 DzTXZ+usPkp+MTZnHjB11C7hETZmhCI4xq6wivq1vtU7k0dY2Ko2JcL52USci0vCtFde ftzg== 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=3365epFx7LcXGmfNolHsodlPpUOyKdHg5aTvRwZxU/8=; fh=xYYQSazCU7V9lwWx17oPPUYPSwJXj1rBTaQwilH8vjU=; b=R5z8Ge3hahIaYDGtXj3E1sC6ZHghvUtoazs09Yg5luT1r1P/HkffgUu6h2OpA3fup4 VFYZzNIagwz0SXrvdVFh+HT+L9DS467oiqY40iXkT9WxBBdFjMfGSGf5HmA+vvlPAUF5 d8jOesObYQoFVCUUVe6jPAsLwwshRFLJ4MPqFtkWASLilJgTh9AeWBSv8fF24g+V2V1L eq4NTmt0s0jvrvPI6Cb/S+oxsl5ntHyOWVC58kam8HPFXIMa/nm4VsKLhdXRYWqs+XIL vJalaBQnaL1EZs/xWv3e+1Tl298MQyZTA4ZjsS2SLtvcJwK69/3ePgEyFvP0OgxRoh7D /CbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RQPfZkLN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a16-20020aa7d910000000b0052a49ae2a07si1918978edr.156.2023.09.08.10.20.48; Fri, 08 Sep 2023 10:21:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RQPfZkLN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232135AbjIHKgh (ORCPT + 99 others); Fri, 8 Sep 2023 06:36:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231464AbjIHKgh (ORCPT ); Fri, 8 Sep 2023 06:36:37 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF67B199F for ; Fri, 8 Sep 2023 03:36:31 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-31c7912416bso1944696f8f.1 for ; Fri, 08 Sep 2023 03:36:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694169390; x=1694774190; 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=3365epFx7LcXGmfNolHsodlPpUOyKdHg5aTvRwZxU/8=; b=RQPfZkLNNvPsLzPrIX8dolish6TnsCOKtbfpLNBW5cQ8gOO43842bJpNsn+tFRT706 UEOQqJ+9uY26rTCalcLjMHryqKAYViKY3FIjZFE7ZXUYeXf5wSp7i6e8cOToAPUO8+/T wOzY7nLgAmT6AaMJIdu45OzUeiAvD5H9xpx1/g9orrUlGG/rpf3XhJ4VzVA9A58h9BWq g2bFbD7XkdcroFQHLzO7xFOzSGJtSuEgh3DmlTHeyldUJqQFPK7CvWBdN3aqec6clD8+ pSSGRj1Jro6b+y2IM8hTLkDnKUrWcqxtxl8WMMvEbgJA0KVHxq5s+28qfs7tI9mCi037 X7Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694169390; x=1694774190; 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=3365epFx7LcXGmfNolHsodlPpUOyKdHg5aTvRwZxU/8=; b=w0tpenRu/dvW3Q4oZmwRUjOIPjjQ0QQlsPqvzrQBmBBgIV0KQ+TeTcdCLGNTKL6IsT JOoXxRWGgviwHvU5h2rwseCQPDpcmf9VPLpRDK60tfj7NUePGciwng4wBWS30v0L9V9J YvOxVZFmzl+baZfEMh1zHn4llZkIhCnBqqOCwiYDxNPrnONoNr7kZOCwutlBvRj4mGtj ak5P0CCgRvrfAn8JUI6C9YshFXm2cgtXNkpw7BoN6ieNUD+/wKbMHFy6H1BJLXj7isXG re2CHtJhGIU6lKxLSKfGlQmqDER3W/r00AvrqJcMUFAWT6GNP+xRfh8X+OBypX3NnxjA i4WQ== X-Gm-Message-State: AOJu0Yz7c4vBWLemiRa2I0c+J3wt/hgHr4riN6zaUcebe/XKeg5v+NH4 ZPPhwnNoFI1tU571B2csTzvmgA== X-Received: by 2002:a05:6000:1250:b0:31d:74f8:fae with SMTP id j16-20020a056000125000b0031d74f80faemr1407561wrx.71.1694169390290; Fri, 08 Sep 2023 03:36:30 -0700 (PDT) Received: from [192.168.0.163] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id o14-20020a5d58ce000000b0031433443265sm1746955wrf.53.2023.09.08.03.36.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Sep 2023 03:36:29 -0700 (PDT) Message-ID: Date: Fri, 8 Sep 2023 11:36:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 15/17] media: qcom: camss: Move vfe_disable into a common routine where applicable Content-Language: en-US To: Konrad Dybcio , rfoss@kernel.org, todor.too@gmail.com, agross@kernel.org, andersson@kernel.org, mchehab@kernel.org, hverkuil-cisco@xs4all.nl, laurent.pinchart@ideasonboard.com, sakari.ailus@linux.intel.com, andrey.konovalov@linaro.org Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230907164410.36651-1-bryan.odonoghue@linaro.org> <20230907164410.36651-16-bryan.odonoghue@linaro.org> <8b424303-09c9-4270-abfd-4f209f5c41e0@linaro.org> <41d1e364-40a4-48b2-97ef-6c76d238002e@linaro.org> From: Bryan O'Donoghue In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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_BLOCKED, 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 On 08/09/2023 11:24, Konrad Dybcio wrote: > On 8.09.2023 12:21, Bryan O'Donoghue wrote: >> On 08/09/2023 11:04, Konrad Dybcio wrote: >>> On 8.09.2023 12:02, Konrad Dybcio wrote: >>>> On 7.09.2023 18:44, Bryan O'Donoghue wrote: >>>>> We can move vfe_disable() into a common routine in the core VFE file >>>>> provided we make wm_stop() a VFE specific callback. >>>>> >>>>> The callback is required to capture the case where VFE 17x currently isn't >>>>> VC enabled where as VFE 480 is. >>>>> >>>>> Suggested-by: Laurent Pinchart >>>>> Signed-off-by: Bryan O'Donoghue >>>>> --- >>>> Acked-by: Konrad Dybcio >>>> >>>> Konrad >>> Actually there's >>> >>> ret = vfe_reset(vfe); >>> >>> return ret; >>> >>> >>> which could just be >>> >>> return vfe_reset(vfe); >>> >>> >>> Konrad >> >> On purpose. >> >> I prefer the ret = ; return ret; pattern since it makes it easier / less work to >> >> ret = fn(); >> if (ret) >>     goto error; >> >> error: >>     return ret; > There's no error label in vfe_disable_output > > Konrad No there is not. Its a pattern I use to make adding jump labels easier later on. Just like you use the pattern of appending "," to aggregate initialisation. --- bod