From patchwork Mon Jul 4 22:15:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 12905862 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F9F0C43334 for ; Mon, 4 Jul 2022 22:16:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230433AbiGDWP6 (ORCPT ); Mon, 4 Jul 2022 18:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230192AbiGDWP6 (ORCPT ); Mon, 4 Jul 2022 18:15:58 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A7AF63CD for ; Mon, 4 Jul 2022 15:15:57 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id o10so1757611ljj.13 for ; Mon, 04 Jul 2022 15:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Tb0cg7d562ipFX8SeGS2ifuv2oavUfFOHpaJXDXdxcg=; b=vjkPuicdcWHZlkTTkAHPmu196YNSDMoX5IGJNUsqa2Vp+IcCxDu0lpTKvZJLsxzUqT 6UMt5aXb1LV7mlHvid4ktZKvYhCAlkVJZbIDiIByfaC9J838gzxrxIiiOHWDexSATXGb zI2r7hPPnhrmqU/7OrT2t2eZ4HNmLx8QIp52fObhQ6hZ3Y1FrT+GxBf9q+G8ivqKP5A3 La3tAM8/ulrlB22CR/4/wdW25s4SeImd+Nn2Mm+56ImKiZrBPEP0pYyaOHx4PfwNgns3 iQPAM49rCw8cuweVwjV0bP20z18ou27vxqhrGhDxrjqsSoKUIqjiUzDmXuDSLmtOAnCJ 9s3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Tb0cg7d562ipFX8SeGS2ifuv2oavUfFOHpaJXDXdxcg=; b=TLdTze+E3Dcg9CTGDNyOmhXhUgm7Vp7+WVty+yWzlfQd0GcGTnTeVqbfU231JXud78 66of5s8YzLpGzLhDNks6TJgCj7JEXL6D8lwC/va5S4086W2WbvjlMvcjyA1zoEQkut2W 1R/KLt3LL61vXTe4YiujptOgtbAdNMdSPm2bzLCpE7pr2HUZAJKlylZuKBA0UUg1rGIg gINMh22Qf92uQ/znFPK4+NcMayuqUnCYCKmL3fr+g55e1KXPh5P1/bbq4QqI2WrZo5sj LRcPnqvkNbf12iFE1kgizzqRumhwmnHgLBHcNl3pyublc9Ko9bN3Tn0e9Rg5W6gpDQh+ /G7Q== X-Gm-Message-State: AJIora+W/H4ghjUWBy5CXzPqJbPTw40HzfrLE0KqQd6Al7PreKAJLh86 hUHVHYyUDqf8tTVI5/rJ1RYIZQ== X-Google-Smtp-Source: AGRyM1tT9uIUrN7GcjyY5VmuwTBxFwgVcKJ+ASECGoPIcTSkOg2vSQpXztwaABBDI5LBRqOCjHolUQ== X-Received: by 2002:a2e:8195:0:b0:25a:6f9b:d6a6 with SMTP id e21-20020a2e8195000000b0025a6f9bd6a6mr18799273ljg.276.1656972955460; Mon, 04 Jul 2022 15:15:55 -0700 (PDT) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id o13-20020ac25e2d000000b0047f660822e0sm5319931lfg.289.2022.07.04.15.15.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 15:15:55 -0700 (PDT) From: Vladimir Zapolskiy To: Robert Foss , Bryan O'Donoghue , Todor Tomov Cc: Bjorn Andersson , Andy Gross , Mauro Carvalho Chehab , Hans Verkuil , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 0/2] media: camss: Simplify and improve power management of VFEs Date: Tue, 5 Jul 2022 01:15:46 +0300 Message-Id: <20220704221548.629302-1-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Since a rework of CAMSS power domain management for newer platforms done in commit 2f6f8af67203 ("media: camss: Refactor VFE power domain toggling"), all operations over CAMSS imply enablement of all power domains described in the correspondent device tree node. Apparently it's too excessive and it's quite a complicated scheme to allow simple addition of newer platforms with even more power domains. I would appreciate, if somebody can test the changes on db820 for any probable regressions. The change is based on changes in clock framework [1] and on a recent fix-up [2] in camss. [1] https://lore.kernel.org/linux-clk/20220519214133.1728979-1-vladimir.zapolskiy@linaro.org/ [2] https://lore.kernel.org/linux-media/20220704220814.629130-1-vladimir.zapolskiy@linaro.org/ Vladimir Zapolskiy (2): media: camss: Collect information about a number of lite VFEs media: camss: Split power domain management .../media/platform/qcom/camss/camss-vfe-170.c | 20 +++++++- .../media/platform/qcom/camss/camss-vfe-480.c | 20 +++++++- drivers/media/platform/qcom/camss/camss.c | 50 ++++++++++--------- drivers/media/platform/qcom/camss/camss.h | 1 + 4 files changed, 66 insertions(+), 25 deletions(-)