Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp352936rdh; Thu, 23 Nov 2023 05:53:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGLAaomHjHXJTWZGk95ahfnerEt37zJSZ+RrmBuN86EhWATI1Vk3hyk5IqP+vXuc2bcPJXO X-Received: by 2002:a05:6a20:e30b:b0:186:bd68:facc with SMTP id nb11-20020a056a20e30b00b00186bd68faccmr6095599pzb.28.1700747625598; Thu, 23 Nov 2023 05:53:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700747625; cv=none; d=google.com; s=arc-20160816; b=SXYuJdFHPY83heWYzilyTTzgr4xJ77fCP0sS9dHKDlXyvrX5/ceIXpQZOKy/yYR3xp 9hrzJrZG7ItWhd7zgPaGVOaMfb7PuJp3Se+Xc4rNLBI2bkNFlqTIklrADp3oHugwAEbx vsGTAfyXxgU+OTyRRThduL/KfpLCSF9hwRvReU2uB4R3r8rKBEXlO85zSABRiJ17YCum an2Rp/KCcgQOyI+0QFKdcExgFydznE2NqXtnzR9QLMeH/lSdgccMGZubZkWFHx1SupXK 1rAIs9PxrjBUbN7zwOaUJmN8rGJD7iSuccPeOLLWj39cEHFrqOl6tzL+gz66QjKg/R9V v+yQ== 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=SG8mPwx9W4jW8bdMcEtjaZlM44NLjKoX6DNsCcgk3k0=; fh=uDD1y7bDoG68mimeqFC7o1eTaEtPwl40wpR+yEHG40s=; b=zHNT3r+BErRf+6HLne+CDjQ53esLKL38Ulyrm+WCmB2sfAaMZ+RxduiWl4mPSBAhz/ BF5QwCpkx7OkxWZGmhkf8pez6sOKefMONj0yEhXOmCOq/5nhE6HrlKoHTr0q/3JKtxkB F3hDM+haYPs4Hi4w3xPvlFts9wt3m5C/a5cLYnAo86MrdjVnE7xbAIXFLnIzPZfXGahs uJxWMA/4zZ3JCOBB2oLIcYFlRmteX4+rC6aRrbiMrv73pkUdJmI0EUXqrqNl3/TCHxQ7 K6njSavOduy0TM+zM94jcNN2pSt4GlWCy5qw6UtCrWN64s1d4doPuTxI59GXSbXe6Gwr +Qyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RdsNFBJ2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id h13-20020a63530d000000b005c1b2d279f3si1318664pgb.342.2023.11.23.05.53.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 05:53:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RdsNFBJ2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 465078229F37; Thu, 23 Nov 2023 05:53:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345629AbjKWNxa (ORCPT + 99 others); Thu, 23 Nov 2023 08:53:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345594AbjKWNx2 (ORCPT ); Thu, 23 Nov 2023 08:53:28 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56E9C1A5 for ; Thu, 23 Nov 2023 05:53:34 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40b2ddab817so5829105e9.3 for ; Thu, 23 Nov 2023 05:53:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700747613; x=1701352413; 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=SG8mPwx9W4jW8bdMcEtjaZlM44NLjKoX6DNsCcgk3k0=; b=RdsNFBJ2vJiDTaMIaUc12CWkO67G4gfTRk5XVWqJiPDuIFR+6f2VNe0hTnMN4hlJ1T bwk4qzBTBFYIvMRsEKNJ+98qlzMWAMYmPEToA+DYIcQcaqHnwz49lCyxZURL6zDgY7sB h9lsoOvLpvc3V3gj7qUI9S64X/4q7eJ8hdKZI7gNKorCH3QETj5k+b2EAXa2Qz7dKyDY cN0uBfb6w7u4b0FYiIyE5QdIrS6EC4yE0HoPw83dr6AcuL9D5/g5ZgrX9i7LcD8aXLFk J5Ht8r+BDThXmdyJLG7ALbICkY4Xkq7JS5bug8Pk6wjQ0JEeJl0cTNGBx9k++k06umqs yLKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700747613; x=1701352413; 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=SG8mPwx9W4jW8bdMcEtjaZlM44NLjKoX6DNsCcgk3k0=; b=Gh8tbIE/Q+KK4p77Kvo/BAF245XhC41es8OC5A5oy0LMsvdULiUlFGJKneO766xX66 Xh9IMcyJoldoZgY9n5hYra2wY8/NTNdh3OASIhaw9BuKvtcPY4YDItWIyTuPC2B2vM6h 3aFzYJvYOlKc4YND0N7dI4nSN9EyRTSFZtAs+k+Jydz46nkRCefSnd/ykOjKAO/Crybe sYVgG6/JOPFEJVc6as8mHQSUzaWO7qyadjFwpcd7aKVdiQVeqw/b+5Mq1HqNavezzDiJ A5SY8/4C61S7Mq0tmfpKZKWpi7gyEDDBwkQgDzGF8hcAfLsDnYwf82vxB8KUEtqhMYrV DmRA== X-Gm-Message-State: AOJu0Yz2Zf5IskGmYat0Z8oEDe+sR1ktSCrS8I4Heh352kXp9rzL4PEO QV1uzvXWGrmQIoZo14I5VBPw5w== X-Received: by 2002:a05:600c:4f07:b0:408:53d4:52dd with SMTP id l7-20020a05600c4f0700b0040853d452ddmr4281822wmq.22.1700747612801; Thu, 23 Nov 2023 05:53:32 -0800 (PST) Received: from [192.168.100.102] ([37.228.218.3]) by smtp.gmail.com with ESMTPSA id bg11-20020a05600c3c8b00b0040b2c195523sm2771208wmb.31.2023.11.23.05.53.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Nov 2023 05:53:32 -0800 (PST) Message-ID: Date: Thu, 23 Nov 2023 13:53:31 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 4/7] media: qcom: camss: Move VFE power-domain specifics into vfe.c Content-Language: en-US To: Konrad Dybcio , hverkuil-cisco@xs4all.nl, laurent.pinchart@ideasonboard.com, Robert Foss , Todor Tomov , Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , matti.lehtimaki@gmail.com, quic_grosikop@quicinc.com Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231118-b4-camss-named-power-domains-v5-0-55eb0f35a30a@linaro.org> <20231118-b4-camss-named-power-domains-v5-4-55eb0f35a30a@linaro.org> <84a97960-dfef-4d2f-8462-d3acb6f5a125@linaro.org> From: Bryan O'Donoghue In-Reply-To: <84a97960-dfef-4d2f-8462-d3acb6f5a125@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Thu, 23 Nov 2023 05:53:43 -0800 (PST) On 23/11/2023 12:04, Konrad Dybcio wrote: >> -    if (camss->genpd_num > camss->res->vfe_num) >> -        device_link_del(camss->genpd_link[camss->genpd_num - 1]); >> +    if (camss->genpd_link) >> +        device_link_del(camss->genpd_link); >> + >> +    dev_pm_domain_detach(camss->genpd, true); >> -    for (i = 0; i < camss->genpd_num; i++) >> -        dev_pm_domain_detach(camss->genpd[i], true); >> +    camss_genpd_subdevice_cleanup(camss); > This changes the behavior, previously CAMSS_TOP was shut down last Nope it was first. As a testament to how confusing this code was this is TOP completely not obviously.. if (camss->genpd_num > camss->res->vfe_num) device_link_del(camss->genpd_link[camss->genpd_num - 1]); so this is equivalent if (camss->genpd_link) device_link_del(camss->genpd_link); Since I'm V6ing to add the additional patch, I will change the logic here to make TOP unlink last though because, logic. --- bod