From patchwork Mon Aug 22 18:53:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 599267 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 D3D5AC32789 for ; Mon, 22 Aug 2022 18:54:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237855AbiHVSy1 (ORCPT ); Mon, 22 Aug 2022 14:54:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237874AbiHVSyK (ORCPT ); Mon, 22 Aug 2022 14:54:10 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA97EDD1 for ; Mon, 22 Aug 2022 11:53:18 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id 2so10774546pll.0 for ; Mon, 22 Aug 2022 11:53:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=GA3c/GZjUQaaitae2gW9tKtCQv1+a7TEeayxV3K4Hgw=; b=nohrL7qgMauyN3H6qU/Pcb9Zj1rjUJ5KPJQDupWnvb5otZfv18t9cnG5SlPjIOzgyz jXSeYoyn48NLHmSHqWAC3+mvaC5vuEB5pp37DTBXtnfhaTAsa3JOhzNaKd0OP53npl9P 4CBgE6nr9Rxbq7XHZ/Vf77HEDBIaCpRhCYoqE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=GA3c/GZjUQaaitae2gW9tKtCQv1+a7TEeayxV3K4Hgw=; b=qM9O25RnuBQwXLtg0HkiMheCKafXXC5BF5fO3hfZ2pql+Mtx8Qh/Rne/P/rk+Qs0fk h+4bcNKLjytlqRKOv2GSsYEi+6TX/GyC11SJP2tJNN9OKiaR3z/XIdH0l8MarlV9Z5/t XwqEOdN30HUQfW6cMKMtRgg5nzm3mmdnd9qkhN3Oo3HusarbhcOThPFpc4/qj/Dv5amJ W9fVF1LBlEBRQ96e5dLBfHy9Yv2IBx86dUaJkGLtsrbE5nwgg5Y0sXSRByuJ7027bIeR Nwf/nZbiK4kDTbtlhIKw3PquxZ1emkijKRbYVJTb4Ofe0conH+K9WZelU4B8hJRORDVD A+Kw== X-Gm-Message-State: ACgBeo2QLNe4nvJpjOrxlskuEHHjq5fkgUwbzhBPUIfg/rBMdl3z0szJ HBo+wXVEotrYGB7/elIrPrB4Pg== X-Google-Smtp-Source: AA6agR6IgcQdruU28Yk2u5gkyWvHVyZ/g3OywX3bEvdNobN795P5crDloxA6vR8K5z1yVfd5tjxC1Q== X-Received: by 2002:a17:903:24e:b0:172:6c9d:14e0 with SMTP id j14-20020a170903024e00b001726c9d14e0mr21534899plh.84.1661194398373; Mon, 22 Aug 2022 11:53:18 -0700 (PDT) Received: from localhost ([2620:15c:11a:202:1969:d650:d765:53ef]) by smtp.gmail.com with UTF8SMTPSA id f184-20020a6238c1000000b00536b3fe1300sm2244190pfa.13.2022.08.22.11.53.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Aug 2022 11:53:18 -0700 (PDT) From: Matthias Kaehlcke To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, Johan Hovold , Douglas Anderson , Krishna Kurapati , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Matthias Kaehlcke , Bjorn Andersson Subject: [PATCH 2/2] clk: qcom: gcc-sc7280: Keep USB GDSC power domains on when USB wakeup is enabled Date: Mon, 22 Aug 2022 11:53:11 -0700 Message-Id: <20220822115246.2.If09027f73daa6e1ed95f5eab02326b543c67132e@changeid> X-Mailer: git-send-email 2.37.1.595.g718a3a8f04-goog In-Reply-To: <20220822115246.1.I45235b7c40997bc2abf813e4722b4dcdd6aecf6b@changeid> References: <20220822115246.1.I45235b7c40997bc2abf813e4722b4dcdd6aecf6b@changeid> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Set GENPD_FLAG_ACTIVE_WAKEUP for the USB GDSC power domains of SC7280. Suggested-by: Johan Hovold Signed-off-by: Matthias Kaehlcke --- drivers/clk/qcom/gcc-sc7280.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/gcc-sc7280.c b/drivers/clk/qcom/gcc-sc7280.c index 7ff64d4d5920..4ff855269467 100644 --- a/drivers/clk/qcom/gcc-sc7280.c +++ b/drivers/clk/qcom/gcc-sc7280.c @@ -3125,6 +3125,7 @@ static struct gdsc gcc_usb30_prim_gdsc = { .gdscr = 0xf004, .pd = { .name = "gcc_usb30_prim_gdsc", + .flags = GENPD_FLAG_ACTIVE_WAKEUP, }, .pwrsts = PWRSTS_OFF_ON, .flags = VOTABLE, @@ -3134,6 +3135,7 @@ static struct gdsc gcc_usb30_sec_gdsc = { .gdscr = 0x9e004, .pd = { .name = "gcc_usb30_sec_gdsc", + .flags = GENPD_FLAG_ACTIVE_WAKEUP, }, .pwrsts = PWRSTS_OFF_ON, .flags = VOTABLE,