From nobody Sat Nov 23 01:03:00 2024 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B590139CFA for ; Thu, 14 Nov 2024 23:33:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731627198; cv=none; b=jiTFXwIaeEElsxFtpyk1LnFQogFeU8tx96k+lrcUTSEhHF/cscwXozbyZlGfhOCOyQxMU3uBK3b2FBaMcdiCwrB9opdPUeOUsE8gHJ52OLkapl6BY4xJQzU8ePnpznUqZ3JqlMXEaAwXLuyW0gglGITiE0EmmPq6wD/EtMpdBuE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731627198; c=relaxed/simple; bh=UYWLHm7qfMw23PDHj1x/cvLxSnpl+KHifSvGS/dxR3I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=odT0AyUlZeXfElwIwHZzOP/ZrWcT/3Bue5i85MYilOsqAC5pL++edhy7gdBtGuIBgIorQrAnKv8YfO3siJJPOL3j/9zGqx8Qzp5Gf5tyAtTa1Sdxm0PC9HYTkUPpz4ggNMN7/Y4Bm1A/kciUxBv11FEeF1mXUdxbZJqo8eK4FpQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=knwweu2i; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="knwweu2i" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-43162cf1eaaso13307075e9.0 for ; Thu, 14 Nov 2024 15:33:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731627194; x=1732231994; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=VVvwlAu+8zSpv+81YL0HNfwnIe4vXYe/t9Y2ZwRkEAk=; b=knwweu2i6RwuZyu3uqCuLCgE2Kulu1D2F7jUscYz5++8v3/gZylbQzTNU+gXuV8mX+ h80X1oYoLKnxeRjQFQU/oSvfSlCwE16mwehI1RtKbK2lItPHOua4Dwsp8QIWigDMPyDu TToyr1Enmia7IAYGKSHb6JojaZ22W4dTtTJaZolcz0g1+rCCmi4H5LmQ4r3uh69CRhNm t6BxG4HTz7C1if0ailW2SFFzyNuObF37ESvkGUnP7zw9gXxQwA0HbJTQGZxkScIS637l BuFDfuicBVva133fzMaomifXj6HPTArAS4IYwh7RrZKkhuxh1WAbpj7+jOOs9Mi1Vav2 JJBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731627194; x=1732231994; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VVvwlAu+8zSpv+81YL0HNfwnIe4vXYe/t9Y2ZwRkEAk=; b=nzSfBSD/GBYr52WfIQSxFWDFBx4MpwnL+9ZzORK7efj2IGkihd+oaJ9moASJPHaIgG ef4x1M1PofwOljPMO0lOZTo58hALxZ5hxsnmLuL53edxp1s+S/Y1rffgwv3vvyqSDPbO Y7OdUN3GIv4KUgDlc74aQ6tbEmO+wG0fx+6gT+pdLZAw7+6NiIMuifKrqLQq19nJ3Zgc S2HMmKXs7f5+FM9HTt3Bbt0A7VqbikpKXQ4ZSnHbKKnC+yFzSzuociFCBrivMg4dqEMS 19HnApyE88OwFk3bcuBohzmh3BJlsRvZbgZg9JkrbCTk+lxdhJacf3P5oU9f4kvl2hlW MiJQ== X-Forwarded-Encrypted: i=1; AJvYcCWgsm4P7c/Z+pJrf+KiJQ16hyqIGjhsdvuADkNQvv5E17rTSAdWKq7rG3b8wyqpNL1p2hhweQyi/IPu9CI=@vger.kernel.org X-Gm-Message-State: AOJu0Yyf0bDjsGZlvVsF7xMzqdxqcWHqn2ordkx/TOIH/3TuxYxBAt76 7YIPtnohLPQl807lCBodcrI1S4prXkl/2MrIt/hEuUWHZ7DKPTPFsPyyfiVr62g= X-Google-Smtp-Source: AGHT+IGKLPXfM66rPtUFkfPweOwpn1ja3LCHTx2W2I4nd96tds3LIExpBIYxelahGIXvBpARzXKnpA== X-Received: by 2002:a05:600c:5125:b0:42f:8229:a09e with SMTP id 5b1f17b1804b1-432df7937c9mr4239815e9.29.1731627194373; Thu, 14 Nov 2024 15:33:14 -0800 (PST) Received: from [127.0.1.1] ([176.61.106.227]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432da28ba80sm39513565e9.29.2024.11.14.15.33.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2024 15:33:13 -0800 (PST) From: Bryan O'Donoghue Date: Thu, 14 Nov 2024 23:32:58 +0000 Subject: [PATCH] clk: qcom: camcc-x1e80100: Set titan_top_gdsc as the parent GDSC of subordinate GDSCs Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241114-b4-linux-next-master-24-11-14-titan-gdsc-v1-1-ef2533d487dc@linaro.org> X-B4-Tracking: v=1; b=H4sIAKmINmcC/x2NwQoCMQwFf2XJ2QdNzclfEQ+1jWtAqzRVCsv+u 8XjMDCzkWszdTotGzX9mturTuDDQvme6qqwMpliiMLMgqvgYfUzUHV0PJN3bYgCZkzbraeKtXi GlCNnDlxCYpq5d9Objf/qfNn3H/mTBJR6AAAA X-Change-ID: 20241114-b4-linux-next-master-24-11-14-titan-gdsc-4d31c101d0a1 To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Abel Vesa , Rajendra Nayak Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.14.2 The Titan TOP GDSC is the parent GDSC for all other GDSCs in the CAMCC block. None of the subordinate blocks will switch on without the parent GDSC switched on. Fixes: 76126a5129b5 ("clk: qcom: Add camcc clock driver for x1e80100") Cc: stable@vger.kernel.org Signed-off-by: Bryan O'Donoghue Reviewed-by: Vladimir Zapolskiy --- drivers/clk/qcom/camcc-x1e80100.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/qcom/camcc-x1e80100.c b/drivers/clk/qcom/camcc-x1e= 80100.c index 85e76c7712ad84c88decb62ccaed68533d8848de..b73524ae64b1b2b1ee94ceca88b= 5f3b46143f20b 100644 --- a/drivers/clk/qcom/camcc-x1e80100.c +++ b/drivers/clk/qcom/camcc-x1e80100.c @@ -2212,6 +2212,8 @@ static struct clk_branch cam_cc_sfe_0_fast_ahb_clk = =3D { }, }; =20 +static struct gdsc cam_cc_titan_top_gdsc; + static struct gdsc cam_cc_bps_gdsc =3D { .gdscr =3D 0x10004, .en_rest_wait_val =3D 0x2, @@ -2221,6 +2223,7 @@ static struct gdsc cam_cc_bps_gdsc =3D { .name =3D "cam_cc_bps_gdsc", }, .pwrsts =3D PWRSTS_OFF_ON, + .parent =3D &cam_cc_titan_top_gdsc.pd, .flags =3D POLL_CFG_GDSCR | RETAIN_FF_ENABLE, }; =20 @@ -2233,6 +2236,7 @@ static struct gdsc cam_cc_ife_0_gdsc =3D { .name =3D "cam_cc_ife_0_gdsc", }, .pwrsts =3D PWRSTS_OFF_ON, + .parent =3D &cam_cc_titan_top_gdsc.pd, .flags =3D POLL_CFG_GDSCR | RETAIN_FF_ENABLE, }; =20 @@ -2245,6 +2249,7 @@ static struct gdsc cam_cc_ife_1_gdsc =3D { .name =3D "cam_cc_ife_1_gdsc", }, .pwrsts =3D PWRSTS_OFF_ON, + .parent =3D &cam_cc_titan_top_gdsc.pd, .flags =3D POLL_CFG_GDSCR | RETAIN_FF_ENABLE, }; =20 @@ -2257,6 +2262,7 @@ static struct gdsc cam_cc_ipe_0_gdsc =3D { .name =3D "cam_cc_ipe_0_gdsc", }, .pwrsts =3D PWRSTS_OFF_ON, + .parent =3D &cam_cc_titan_top_gdsc.pd, .flags =3D POLL_CFG_GDSCR | RETAIN_FF_ENABLE, }; =20 @@ -2269,6 +2275,7 @@ static struct gdsc cam_cc_sfe_0_gdsc =3D { .name =3D "cam_cc_sfe_0_gdsc", }, .pwrsts =3D PWRSTS_OFF_ON, + .parent =3D &cam_cc_titan_top_gdsc.pd, .flags =3D POLL_CFG_GDSCR | RETAIN_FF_ENABLE, }; =20 --- base-commit: 37c5695cb37a20403947062be8cb7e00f6bed353 change-id: 20241114-b4-linux-next-master-24-11-14-titan-gdsc-4d31c101d0a1 Best regards, --=20 Bryan O'Donoghue