From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EFDB4361DDC; Sat, 12 Sep 2026 08:10:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789200634; cv=none; b=sFl9Kwb4lb/1p+VNVkfxIIbYz2cJuhnl+voMoEd2/mM9MJI7qmtxvQA1sqcMUe3+6d+36YPJQDTwIL9qin2EtGIqFyQtMynjaIrRefdbgDuKLq9WoeyLwiOcU2bsPpUO5CbnXs/SdssP14DcY7WYqBT3UluDii+GaVMFyiHwXqs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789200634; c=relaxed/simple; bh=Co4Pz+hWJSb9VvrpjKH2HyZHqBuY4CPd+bP54RfNj78=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=efWCnPe75KoKee+AGpmovVfM2th8tJJ1ZG4Ap1qrarxv8idv8KpycOixyN3Kq6wdzFeBb8QWJOqw8H7CEjbS0NqdM5OK4nYfZ4Emc0Omf3eUGVdDqjzQbMzWCdMCXxJPZHjB7E2hfGrFw+8HQyRKv9/JaVsTH397ckEK8Wnitd0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=goFC5hHp; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="goFC5hHp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C10FE1F000FF; Sat, 12 Sep 2026 08:10:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789200632; bh=OTfzMs4E9DaLEgyHO1GouF9ngF/MfROAu/83lmXzYjY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=goFC5hHpYxPEZB9me1r2WaoJrr+xnnrqKSzEC+HrA/WyPMAJp5LrzAPwBv1XF+pZ0 1KzjyP1nvkDr+R6sewrNVjbE9nigcr5x4setwyXod5dkcnX1tWEzetMkm7fhQyQ43g WYtbIBHeazQRJhV8n7IUHl+AQ8TP8HyGWi2PnQ5E= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Konrad Dybcio , Imran Shaik , Bjorn Andersson , Sasha Levin Subject: [PATCH 7.2 0831/1815] clk: qcom: qcm2290: Set POLL_CFG_GDSCR flag for DISPCC and GPUCC GDSCs Date: Sat, 12 Sep 2026 08:43:01 +0200 Message-ID: <20260912065708.423394778@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065648.999753832@linuxfoundation.org> References: <20260912065648.999753832@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.2-stable review patch. If anyone has any objections, please let me know. ------------------ From: Imran Shaik [ Upstream commit 6b0044bc75b04374c58d082d4cd59f57db83e8dc ] The Qualcomm QCM2290 SoC GDSCR status bit may not reflect the actual state of the GDSC, instead the power on/off bits in CFG_GDSCR must be polled to determine the GDSC state correctly. Set POLL_CFG_GDSCR flag for the QCM2290 MDSS GDSC and GPUCC GX GDSC to ensure the correct GDSC status. This is not applicable for GPUCC CX GDSC, which relies on gds_hw_ctrl status. Fixes: cc517ea3333f ("clk: qcom: Add display clock controller driver for QCM2290") Fixes: 8cab033628b1 ("clk: qcom: Add QCM2290 GPU clock controller driver") Reviewed-by: Konrad Dybcio Signed-off-by: Imran Shaik Link: https://lore.kernel.org/r/20260718-shikra-dispcc-gpucc-v6-5-62703e05ef0f@oss.qualcomm.com Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- drivers/clk/qcom/dispcc-qcm2290.c | 2 +- drivers/clk/qcom/gpucc-qcm2290.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/dispcc-qcm2290.c b/drivers/clk/qcom/dispcc-qcm2290.c index 2350ce7f46d9f..5f5bc5b1e09e2 100644 --- a/drivers/clk/qcom/dispcc-qcm2290.c +++ b/drivers/clk/qcom/dispcc-qcm2290.c @@ -455,7 +455,7 @@ static struct gdsc mdss_gdsc = { .name = "mdss_gdsc", }, .pwrsts = PWRSTS_OFF_ON, - .flags = HW_CTRL, + .flags = HW_CTRL | POLL_CFG_GDSCR, }; static struct gdsc *disp_cc_qcm2290_gdscs[] = { diff --git a/drivers/clk/qcom/gpucc-qcm2290.c b/drivers/clk/qcom/gpucc-qcm2290.c index 66dea9d2a0e51..3b130f69bb938 100644 --- a/drivers/clk/qcom/gpucc-qcm2290.c +++ b/drivers/clk/qcom/gpucc-qcm2290.c @@ -313,7 +313,7 @@ static struct gdsc gpu_gx_gdsc = { }, .parent = &gpu_cx_gdsc.pd, .pwrsts = PWRSTS_OFF_ON, - .flags = CLAMP_IO | AON_RESET | SW_RESET, + .flags = POLL_CFG_GDSCR | CLAMP_IO | AON_RESET | SW_RESET, }; static struct clk_regmap *gpu_cc_qcm2290_clocks[] = { -- 2.53.0