From patchwork Mon Aug 22 18:53:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 12951179 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 0ABD1C28D13 for ; Mon, 22 Aug 2022 18:54:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237848AbiHVSy1 (ORCPT ); Mon, 22 Aug 2022 14:54:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237896AbiHVSyI (ORCPT ); Mon, 22 Aug 2022 14:54:08 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1675210ED for ; Mon, 22 Aug 2022 11:53:17 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id x23so10739411pll.7 for ; Mon, 22 Aug 2022 11:53:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=DI8SqYRuhD4dfW8aoV8U0vpm1zmv7loV77zhZIVRKgs=; b=BSUYK+hPwFo2UUcXcug7bFeBJpcLeuhIBk8GkyZ32AiN0J0T9kt6Q53Zs4ptCr4E6y bz6H+1Gc+O5mv45FGya+vh5/XOEI5u7wF35jDy2PLPheh15w/zEdmbDP3Ii2FfzE+Aqh GmDqGBJX+jF/Bp2i2I0MpkmGRnQQwPD7fWQ6U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=DI8SqYRuhD4dfW8aoV8U0vpm1zmv7loV77zhZIVRKgs=; b=XidXgZTQzuWfw79Wkl1ueH890IbqDoimzM6HCqwLly2Hns9c+paOi53ebRO1OvQdVV vU+jitLa14UfE4TIH0pVNVjVjix1Ouj5xMtdgRmkRF9nNTBLiLvP6+la08r0WVJRnXoE bmE92WeTuzgjgg/vzDLT6l8Vv9onDWdYTHEe/nrFC+e7Cqa0M7PVkq04N6Zdx7uIvDRL H4/QETSv3FxbuUqhH0YQQ3TgJYyHWWVvefTKYiD770nV90yL/By07wX6YS1O80kbtxP7 fburf49AHyrrg6vyp0m985wUP3PM6ln4i45x+9zlPS8GPVG64eGTlHmTS4BlZFN2ikp5 AgIg== X-Gm-Message-State: ACgBeo2t31yj/YeHl2miwEgrUHifvEBTM+XZhqUrTDVHENIy0qCYvbMH UhP1W6Q2A3MHH6h0uu6MsqiQHA== X-Google-Smtp-Source: AA6agR63og+ynhTTJk+v2XpcgBYdrLznSAlhS1NHVaZUDxVTOTd5+Acqdc2MwzSAVasoolC9Vrq6hg== X-Received: by 2002:a17:902:f68f:b0:172:ff8a:90d4 with SMTP id l15-20020a170902f68f00b00172ff8a90d4mr207162plg.2.1661194396612; Mon, 22 Aug 2022 11:53:16 -0700 (PDT) Received: from localhost ([2620:15c:11a:202:1969:d650:d765:53ef]) by smtp.gmail.com with UTF8SMTPSA id 127-20020a621685000000b0052d6ad246a4sm9275058pfw.144.2022.08.22.11.53.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Aug 2022 11:53:16 -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 1/2] clk: qcom: gcc-sc7180: Keep USB GDSC power domain on when USB wakeup is enabled Date: Mon, 22 Aug 2022 11:53:10 -0700 Message-Id: <20220822115246.1.I45235b7c40997bc2abf813e4722b4dcdd6aecf6b@changeid> X-Mailer: git-send-email 2.37.1.595.g718a3a8f04-goog 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 domain of SC7180. Signed-off-by: Matthias Kaehlcke --- drivers/clk/qcom/gcc-sc7180.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/qcom/gcc-sc7180.c b/drivers/clk/qcom/gcc-sc7180.c index c2ea09945c47..2b6b66d01833 100644 --- a/drivers/clk/qcom/gcc-sc7180.c +++ b/drivers/clk/qcom/gcc-sc7180.c @@ -2223,6 +2223,7 @@ static struct gdsc usb30_prim_gdsc = { .gdscr = 0x0f004, .pd = { .name = "usb30_prim_gdsc", + .flags = GENPD_FLAG_ACTIVE_WAKEUP, }, .pwrsts = PWRSTS_OFF_ON, }; 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: 12951180 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,