From patchwork Wed Aug 16 14:57:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 13355371 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 5C027C0729B for ; Wed, 16 Aug 2023 14:58:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343883AbjHPO6E (ORCPT ); Wed, 16 Aug 2023 10:58:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343853AbjHPO5x (ORCPT ); Wed, 16 Aug 2023 10:57:53 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A75EA26A1 for ; Wed, 16 Aug 2023 07:57:51 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-99bccc9ec02so927298966b.2 for ; Wed, 16 Aug 2023 07:57:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692197870; x=1692802670; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=IIQG2DiKif0iuRguAVDSpo28maNi/+e2Wh3y0OW3ETY=; b=JAhXsXlZCZLyqm3g9Os4EymAcm/sNnLBrHr70bHU7WReDU2kCeo0ccKEFZX0vwjhQ3 rGhFhsrvJq/vHmUVDVyQA/uPp/5TaDE2Qz9uiIeHUQtsNf2uhIuzW/dpWMigsZudI9Vg 7Q0XBVSpTKxeJsSv4TyhWzbMtlrXJDAp2+La2MAXl47nSgotZCbKk9/FbRhyNySTAXGl k2tycdhlQxKSGw6Arx90ZQjj6SecxT1pqpQ1G21UI1jdfQGacClDoGlcks2F3YNJjQjo eB1xSpS4s0YNSYLpCU+NnVcJ+XHCouCwJMm1AUqOMZ1gGdcwKwfilrk0n6BNpHhpjBm9 WBWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692197870; x=1692802670; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IIQG2DiKif0iuRguAVDSpo28maNi/+e2Wh3y0OW3ETY=; b=juYbsUJvg1vpRBDABw36vzjtac2Z5hTmohmQP8olzk5WZv7pq4V7FNKs6272SPLLbP UP10ipMFLhBe4TzAyvb/aXMIdSEEubRAF5dI/+T2bqo4ppgE2fqJ7DSbE/rZbbaoPYqA T6TEE7hD7HQ7iV6MVIaBeVbL1bB3MY9ZoDWL4DBiWGzAbpNoVtHAo7vNoVuMQVnXtS0o 2iP4wqied8gsFmZ/Kb4s1fjntW7QWdoY0ATj6F7Wtda3ShVgLJXr/h4/isptCLz2gD0a 7VFiuwCdh+k4FfrpcjY2TgDEnHumJb7zJSps5PQsYz6TWvqrnnnUmre+4H8HR05VMJ5Q F5xg== X-Gm-Message-State: AOJu0YzUwJimzvi9DqNn9sfZrwWnjEebxuBo8VZ/VB+OiDp9oTzlLr+4 F2OjL1io9iV1/Z1ArvJ4S3dKoA== X-Google-Smtp-Source: AGHT+IFcKm59rZ2xvqc5dn0ecwLhmzoC3eXfnItV2uaIIwaTEUFAFOMvqtp735pgK7t/8GXSTTWHsg== X-Received: by 2002:a17:906:3287:b0:99b:f534:9bb6 with SMTP id 7-20020a170906328700b0099bf5349bb6mr1550926ejw.9.1692197869878; Wed, 16 Aug 2023 07:57:49 -0700 (PDT) Received: from hackbox.lan ([84.232.191.92]) by smtp.gmail.com with ESMTPSA id f16-20020a170906561000b00992076f4a01sm8610403ejq.190.2023.08.16.07.57.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 07:57:49 -0700 (PDT) From: Abel Vesa To: "Rafael J . Wysocki" , Kevin Hilman , Ulf Hansson , Pavel Machek , Len Brown , Greg Kroah-Hartman , Bjorn Andersson , Andy Gross , Konrad Dybcio , Mike Turquette , Stephen Boyd , Taniya Das Cc: linux-pm@vger.kernel.org, Linux Kernel Mailing List , linux-arm-msm@vger.kernel.org Subject: [PATCH v2 0/6] PM: domains: Add control for switching back and forth to HW control Date: Wed, 16 Aug 2023 17:57:35 +0300 Message-Id: <20230816145741.1472721-1-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The v1 (and the back story) can be found here: https://lore.kernel.org/all/20230628105652.1670316-1-abel.vesa@linaro.org/ Changes since v1: * patch for printing domain HW-managed mode in the summary * patch that adds one consumer (venus) * patch for gdsc with new (different) flag * patch for videocc GDSC provider to update flags Abel Vesa (1): PM: domains: Add the domain HW-managed mode to the summary Jagadeesh Kona (4): clk: qcom: gdsc: Add set and get hwmode callbacks to switch GDSC mode clk: qcom: Use HW_CTRL_TRIGGER flag to switch video GDSC to HW mode clk: qcom: videocc-sm8550: Use HW_CTRL_TRIGGER instead of HW_CTRL for GDSC venus: pm_helpers: Use dev_pm_genpd_set_hwmode to switch GDSC mode Ulf Hansson (1): PM: domains: Allow devices attached to genpd to be managed by HW drivers/base/power/domain.c | 84 ++++++++++++++++++- drivers/clk/qcom/gdsc.c | 32 +++++++ drivers/clk/qcom/gdsc.h | 1 + drivers/clk/qcom/videocc-sc7180.c | 2 +- drivers/clk/qcom/videocc-sc7280.c | 2 +- drivers/clk/qcom/videocc-sdm845.c | 4 +- drivers/clk/qcom/videocc-sm8250.c | 4 +- drivers/clk/qcom/videocc-sm8550.c | 4 +- drivers/media/platform/qcom/venus/core.c | 4 + drivers/media/platform/qcom/venus/core.h | 1 + .../media/platform/qcom/venus/pm_helpers.c | 47 +++++------ include/linux/pm_domain.h | 17 ++++ 12 files changed, 165 insertions(+), 37 deletions(-)