Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2820522rwb; Mon, 7 Aug 2023 04:13:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG6xcxW3/yPGzOYPMlI7ePhhzKqMmmiZe40Tp3PtITMHcYE2wjOn+3pYf0lC5z7po4HRy5N X-Received: by 2002:a05:6a21:7983:b0:137:7198:af9b with SMTP id bh3-20020a056a21798300b001377198af9bmr6747560pzc.56.1691406802131; Mon, 07 Aug 2023 04:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691406802; cv=none; d=google.com; s=arc-20160816; b=w9S9bBwPGqVw6Ti4FQwyRTp95n7mo/QCg8E/BtoW3oFGgnG0hJBfTaYGc9A3RmhUpQ c/97+Qq81YUJ7pnd5o0QlVe85cpL13EHsJE6xGwpGy3qlWFCHde4n/ysmraLkPyBFvJc oDskquLWLL+Z7q0i0a+TU2hmG31Url72/1aqr/sjbhdDldlIlbEkmF00IMnM8PTBAVf+ +goFLHGQLMqOIAuxuq3VZJA/nP6bPEWwhfq/brKfBPTZT8qolvtlgo3KhT0PjXp07nlz WqR6DJqcJE1eb8ODCaXVDlgQZvoU/D8I9P2ech3GERSdvIA1HgFjNQN0pbF7qNlWixI4 v2Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GLXApX3vx5V3MZiYWeS5GwBKCBgmDKNAVIOdlTwEXzU=; fh=iV3NL0Vjm1v0iMLYnfZuX/G3qi4uRYWTr6H9/N1ZcRU=; b=jc/XmP1r+Nl95nhYqdQfNPEQ7U7+J8npIgB0/CT980THJSWOnToHbChqmCF0xe/H4w U8ekrFEy0n5fzFbbXvsZEUhqdvDqzGMvkAbjtV+cg/IYvE/E5qkwEELYbRhmmoRK3Qky 1/NiHt8TsbDqtjcub/I+jbTLHHSwfnb1KL8FapemW+j67VRe8+KVMW8MYVsMfArfVqhO Uky3qJP7ehBj3i9fzZVSZQpprmrfqst4gq6zKurVImPBdhVNIE4FpCRdhaX1Uwh4czFB ZHS663yYzu3sbJMyLIbFygFChSaH9INOLO0TBsApCfazJNpDZFAoLb2c4QkgXBPbEKOh RyuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TcAlo+cX; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bt13-20020a056a00438d00b0068782a60b20si5543603pfb.330.2023.08.07.04.13.10; Mon, 07 Aug 2023 04:13:22 -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=@kernel.org header.s=k20201202 header.b=TcAlo+cX; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231644AbjHGKnI (ORCPT + 99 others); Mon, 7 Aug 2023 06:43:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbjHGKnF (ORCPT ); Mon, 7 Aug 2023 06:43:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ED29E76; Mon, 7 Aug 2023 03:43:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BFFC6617A8; Mon, 7 Aug 2023 10:43:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19753C433C7; Mon, 7 Aug 2023 10:43:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691404984; bh=lmODyoRJKtcj4W24Dy7/v+c4Qi+PYMon9fdimxp0sfA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TcAlo+cX6hfeF5SQjcMoJTO/A3veK/VokyY/xoYVELPGtPmAfZr3lv5EKQnc+nlKl N9DfLtgJiO0p+FxuZiWGLCthpEAOHDN1beOfa7BRs4inIEr36QtWmDDuwDkEytuYUY HECYro3S5eSBPetbByRDw3EPrGFIZRGwhmedZ3A5ll7A6jVQjTVL1Z6MntVAQEiLgk GpLoeaLn3CgTN7DvNktJ8quypGM2/aTH7eRWtZiagMfPIxwYoFosUpfcFLhynRROxO SvJVIylIvWH3Uqvq2d7uqS2bX0QaLexDcXjvYQkBJGnalkgxv7HbKxOJHiLz/2Ffhr i2wmRN4CXuhlw== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qSxhX-0005L0-14; Mon, 07 Aug 2023 12:43:03 +0200 Date: Mon, 7 Aug 2023 12:43:03 +0200 From: Johan Hovold To: Konrad Dybcio Cc: Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Marijn Suijten , Konrad Dybcio , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/6] media: platform: venus: Add optional LLCC path Message-ID: References: <20230731-topic-8280_venus-v1-0-8c8bbe1983a5@linaro.org> <20230731-topic-8280_venus-v1-4-8c8bbe1983a5@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230731-topic-8280_venus-v1-4-8c8bbe1983a5@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Fri, Aug 04, 2023 at 10:09:11PM +0200, Konrad Dybcio wrote: > @@ -479,12 +488,18 @@ static __maybe_unused int venus_runtime_suspend(struct device *dev) > if (ret) > goto err_cpucfg_path; > > + ret = icc_set_bw(core->llcc_path, 0, 0); > + if (ret) > + goto err_llcc_path; > + > ret = icc_set_bw(core->video_path, 0, 0); > if (ret) > goto err_video_path; > > return ret; > > +err_llcc_path: > + icc_set_bw(core->video_path, kbps_to_icc(20000), 0); This looks wrong; you should not try to restore the video path bw which you have not yet updated here. Also error labels should be named after what they do, not after where you jump from (e.g. to avoid mistakes like the above). Perhaps you can clean up the existing labels before adding the new one. > err_video_path: > icc_set_bw(core->cpucfg_path, kbps_to_icc(1000), 0); > err_cpucfg_path: Johan