From patchwork Tue Jul 16 09:05:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13734196 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 70DFE195806 for ; Tue, 16 Jul 2024 09:05:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721120733; cv=none; b=Xy5BE3+wrDc5zYk/lHIz7aGQrFQzetAO+LRahf2XeJrBP1Qu0w7f4Bp8Iup3DFVgGKkhzKSXgtVmA/lhA2jEZJOKU2CYZ0qi0n+td2QzcCyNKL7JX+TaRYCpmkPhCt8rauhpjLdZXjfLCHrphEvaB1KSud/OpOKHAiVtx8jCfkM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721120733; c=relaxed/simple; bh=wnZLZc/GruCNzhFntGEwskFTqjT74yheJIgcSlXmFBE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UizleWJvKh71WAVKhjYZFwESowZwlG+74sQUiEIFQyqWCr1HBQ6jiNtqs469DSh0CyaSK0TIqMLpbTbBlU9fDqd1L3LYjB8VZe8dOfs/ucoBretMnjtwwINn6GNHuQEyS+yO3r1aG8HqRcAL0Q0Wr3Yy2+KDQCcJxFmycHkQ0zE= 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=P4La0nS/; arc=none smtp.client-ip=209.85.128.47 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="P4La0nS/" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-427b4c621b9so9677775e9.1 for ; Tue, 16 Jul 2024 02:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721120730; x=1721725530; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=k7WEQ4IWufigJ+eDUg1Ui45rVWr+qV9YxcKK/eJOPrE=; b=P4La0nS/cxIAwcKiM9FJGGBrmmF1MwnZmpH5iz9n8KSf5MO6NIPiEGuVWXeccuSyJQ ZV/8HX9ND853iFXXZV8osJ0GDDPSi2/jGNpwK5JXbTupYHByW1OVYcMKZfoRZOLoylIo Py+wL67Lsk+z+orJVab5SBmIW+JUOEvji1o6iUE44qLYlXV0ixHykgLGN8xJK/N/Px/Y wZPji+qVxo+THIzi6Wdz1Ib+KkkJaIoet6d90bfWS2cvzW1s1lgGthJ8ro+/SSwyQccv 0y3zWmjNmsVJvE+L0JFrq+A8d01Ce32M8gKDOcGyMJ5iq3Lt5Z+f5EgrSejPiyCgrmh9 Om5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721120730; x=1721725530; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=k7WEQ4IWufigJ+eDUg1Ui45rVWr+qV9YxcKK/eJOPrE=; b=cjg4wKdr3z1PJvn08RqPL7z5+nXhh4IylEFwWg+jfkrys032XTZ0VDwMI+YzCMStKb B5qZ/f42u8lMzQv1/K6Uf6mb0lTELGOb51YFHjt95tcA9YVp/ftpeFuaLWFy3ys1wi+q rGxfy1QTinvXwTXeSjFRTU3WCIIR5xrFeTxwhdBUUMLZVgQsLUm+HmgS5UdFC5o/HKtA dkUWeicthT0mn7r5sVX7EWrFLxJrFMaYgENskLz1meCNewhhNkD0KmX6iVExgDglbP21 HINIwfv42RX7g4TNNERPCGwDhQY4rbNpuWlogjQJmEjTpqzxlxpyE31YeRO9eptYTtc7 V+aw== X-Forwarded-Encrypted: i=1; AJvYcCXziWHnR6FmWgyCYPqp5S6CC9w4+5Ao3iQwZXsvfYi7Bc3l9AdqRwqkZfAmrA+3465DuoH6rGKt4w/B4fUomMadZAIpspS2adAZ X-Gm-Message-State: AOJu0YwKwBK+w2/f0B8q/ZfyyMQUtH5q55hLwbH7gjdaGOlXYDhA9DYj py7896IAmXMKT6HVPHYFah/i7HLS7oUm/QPLfyDymwdSF7CSdO0b0ttWGc4Dzac= X-Google-Smtp-Source: AGHT+IFjeXpjkmtgX6FEUXjWuap/YnDu0thUYlSz3pmmrD3NK6HcG2kCHxNu/8Oa88o2R8Ko68qnmA== X-Received: by 2002:a05:600c:1f90:b0:426:61ef:ec36 with SMTP id 5b1f17b1804b1-427ba48af4emr10652635e9.0.1721120729524; Tue, 16 Jul 2024 02:05:29 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4279f25a962sm148687875e9.12.2024.07.16.02.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 02:05:29 -0700 (PDT) From: Neil Armstrong Date: Tue, 16 Jul 2024 11:05:21 +0200 Subject: [PATCH v3 1/3] clk: qcom: dispcc-sm8650: Park RCG's clk source at XO during disable Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240716-topic-sm8650-upstream-fix-dispcc-v3-1-5bfd56c899da@linaro.org> References: <20240716-topic-sm8650-upstream-fix-dispcc-v3-0-5bfd56c899da@linaro.org> In-Reply-To: <20240716-topic-sm8650-upstream-fix-dispcc-v3-0-5bfd56c899da@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Konrad Dybcio , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1516; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=wnZLZc/GruCNzhFntGEwskFTqjT74yheJIgcSlXmFBE=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBmljfWqrAb6ndyNgnKgg7ukh84Jxo7IrJkDnrqRoYR nN0tz22JAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZpY31gAKCRB33NvayMhJ0RlqD/ 92xKbJzVONgVsHBSSXO/cIBq7vc9LYqh+FAMYJ+3TSxOc2GZ7qem5x9wpiuXpf7WHcGysVjQ4gbl2e Jhgx4yQQAHlE1IrYUBSyxqhw/+cnoJMDeSituw7U7/NhsWY5RJfQJOk56CRdzN6jZUCG3WLXe9QhrI EJ9r2sQzsDP1VNlTUCODpKIYrIpvQmmW3eTfGMBRt+fqzlFiRr2ENpS4Zo/zLZuQkbMTm9CbtFPMLQ LHL4Wulu2xZvzKrDeFvFXBtGf2ybmj5jYDeAaGM3VJU0j15agT4+rn6SX+gfkLzr8ZXARBwehby+0K tzKywkfNIVostlaBB8bBn0Vn1TqZ6Qu8vJkRiAHDlExIhTnyMQiDucPKQ7lYLyBkptZd7wyr449G38 q5pyIGscQW9Z+JewjH25K2pGQPlSb7MXLNV6gxS1jiuGGTdsHG/umYXWbx/V+ufspLHBe1mu4N5Eo6 yPwfgY9UfB520fOLoOhJclV2Pd/CKPfHAviDdOupoeni5n3Bk+IJYOSxIK2WbXIdVhbYC+P4rZye5P +riXuQRptsEzuB7m89mAPeGyEKSUFR0/d4OBMzMpg7SfarG87nkB6XO04I9htuTlLHTmBHqwkgeZFI /TmgaB284jeCRyxwSIk3r6uRG993pJVU+r41T1j51J5AjQEv0nOCL7tdslxQ== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE The RCG's clk src has to be parked at XO while disabling as per the HW recommendation, hence use clk_rcg2_shared_ops to achieve the same. It also changes dptx1_aux_clk_src to use the correct ops instead of clk_dp_ops. Fixes: 9e939f008338 ("clk: qcom: add the SM8650 Display Clock Controller driver") Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- drivers/clk/qcom/dispcc-sm8650.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/qcom/dispcc-sm8650.c b/drivers/clk/qcom/dispcc-sm8650.c index c9d2751f5cb8..80fe25afccf7 100644 --- a/drivers/clk/qcom/dispcc-sm8650.c +++ b/drivers/clk/qcom/dispcc-sm8650.c @@ -398,7 +398,7 @@ static struct clk_rcg2 disp_cc_mdss_dptx1_aux_clk_src = { .parent_data = disp_cc_parent_data_0, .num_parents = ARRAY_SIZE(disp_cc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_dp_ops, + .ops = &clk_rcg2_ops, }, }; @@ -560,7 +560,7 @@ static struct clk_rcg2 disp_cc_mdss_esc0_clk_src = { .parent_data = disp_cc_parent_data_5, .num_parents = ARRAY_SIZE(disp_cc_parent_data_5), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_shared_ops, }, }; @@ -575,7 +575,7 @@ static struct clk_rcg2 disp_cc_mdss_esc1_clk_src = { .parent_data = disp_cc_parent_data_5, .num_parents = ARRAY_SIZE(disp_cc_parent_data_5), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_shared_ops, }, }; From patchwork Tue Jul 16 09:05:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13734197 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 1DF8A195B35 for ; Tue, 16 Jul 2024 09:05:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721120733; cv=none; b=Q58hnXo2UsdmbqmoszXth32JsNkv934WYL1XKmuWc83v0XVoLRltcFDHAsk7QV3meQ0ZsF4E3mjfqfvbQRL+e2VV2hRhG5V+WZUYas1GMms4TOwogyj69mpN/PiPrmHmLVdxzoK3JYvhjALKMOEsbxaAmgVjZSJoyuRSuoJhXro= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721120733; c=relaxed/simple; bh=9kjY/Djp/F/3OF8vSwyklelh7pho8HAr219TOgHK6QY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Dllh0jdAnmu30hJcwKWcPg5GVP7vkVZKyGWcDfzVVCHsEyaKtgpV1ZCbEr2ziSjPxhFTJlKfXbwp8QckwhJn5KaOa5AUbXoxPvGDL1Ie0LUtD8z0oDVw8rOQJYaapn00zhSv1zSZ/b3Z/HDltWuB3eRLPmN7KzDifvd7UaMiDaM= 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=eu6s9uhN; arc=none smtp.client-ip=209.85.128.42 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="eu6s9uhN" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4272738eb9eso38520205e9.3 for ; Tue, 16 Jul 2024 02:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721120730; x=1721725530; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=7caggAbMV+gauV7GaQywpQKcgWZbw/RmAxo+bKntFnM=; b=eu6s9uhNkZT/lYvwJx3m3oTip5WCzS9OEYGh7pLJbb5tNwzv61Cjg6Oj7zWsruTi8R V4TjGVKGHAbacdTYSSJ4mYv3E96qu/vy8qFJ5QaglFfKkKQ7QZcwEk43A0y24u9GEIkm aZPRnpLPZ+Ioz50rpnB4cpP8NM6VtLWqGRfvyhz+wYm9xdfs2Ry0s1lJesN7DVCGARYq w+DeOBRq8gAn9ilu1uGlCzf+EELT5S+mDjzCgRkbi6DVE5fPabYM74ticzR0padf62/V P8ql9Q128uBfb4BQ4faNWNl5PDl2Vq4sBMgrjomEy1pYHQEpRY65tdeugigthd3W+MOi X9DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721120730; x=1721725530; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7caggAbMV+gauV7GaQywpQKcgWZbw/RmAxo+bKntFnM=; b=vwgv/yjsmGn6lN5eImvyOjOumy7qa3VOgZbPCtSgJolQxQ8qgEBQfhQPxDmJefB5aX vlzDYSdb7sEK9UasNs7xR/4wOBTz46OaNWq5c3QnaZMIDI+Au9KXXGiyHsD5ritIMCTo JWx3YTDCAoxIMsizBc60nyRKrTM2Fa1rVSfUlsXqYhW8vuk4dfNFg7O29HqP8qhgQG8H EVqNfDTfEB8cKVFT8ihQiqjwx2HpkOpplXnYdnrao2iM5Uk8/xxf0TLl65s+YPW4/UKN e5XieBxMRPYl0Lhngtd1NOrhrFa1jyYE3fIAhV9sZsCdNThlSk5XQxUdJcz0Gb7lV9PO oQWw== X-Forwarded-Encrypted: i=1; AJvYcCVV+p4x216doyWZp2gvc4J31jLgJrSb3nfAiG0JAZTtE7J9r8oryXz0dnKtlzTg1tSquCNFuBkbKbWaMYKR3AWSPG4vKNzVX01f X-Gm-Message-State: AOJu0Yy1m0EMQwi15PGS5b4NsZ/6vxhtUlpZy0Eq8/6qutcApu1d1NVY dPv2BxoLWY3sV+JfkBB72hEW6ppcdP6haufOUmZhp4wava5pJRwSDg8hBYM/KZM= X-Google-Smtp-Source: AGHT+IFPja/yhqh4LG3OM6hJoZIl8i83YBL6Krit+0VgtUsV1BF8rZcZB7m8GajN3C3e4cnC/xjj2A== X-Received: by 2002:a05:600c:450a:b0:426:61f6:2e38 with SMTP id 5b1f17b1804b1-427ba72aec1mr8979775e9.35.1721120730413; Tue, 16 Jul 2024 02:05:30 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4279f25a962sm148687875e9.12.2024.07.16.02.05.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 02:05:30 -0700 (PDT) From: Neil Armstrong Date: Tue, 16 Jul 2024 11:05:22 +0200 Subject: [PATCH v3 2/3] clk: qcom: dispcc-sm8650: add missing CLK_SET_RATE_PARENT flag Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240716-topic-sm8650-upstream-fix-dispcc-v3-2-5bfd56c899da@linaro.org> References: <20240716-topic-sm8650-upstream-fix-dispcc-v3-0-5bfd56c899da@linaro.org> In-Reply-To: <20240716-topic-sm8650-upstream-fix-dispcc-v3-0-5bfd56c899da@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Konrad Dybcio , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong , Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1123; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=9kjY/Djp/F/3OF8vSwyklelh7pho8HAr219TOgHK6QY=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBmljfWvqB9LqmuGnidpZ7kKWsaFkCu5H+9CCZ+hnbL 5WrGGZOJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZpY31gAKCRB33NvayMhJ0Xl7D/ 9zczWFeiXrx+ez3FVQgHZJ6BOS6hDE9P6hK7qa3Fa45WsoVJbfF/PLcfTBnaiXqmbjFSecHbT/AIUG gOqAxTtY0akzo2wJfWzhFC9qG85E3FByhfdbAfLvAkn4nf6rV2QQP5sxuG7vtw+nZEIBaGYc89VQbU Nj0p7tFYNDV0k0dBOuW8za2KnG/b+YsyaZvzrDaimlIICcAVVnWjiQfmN7oIBrKvhZ0nxuz7wDV2B8 gUa8xxL3MhjbRC8tkcDK88qcD5w+R9MPZaRkF7EUS8pkcrdLEUmErHo0IbysG2P/nsO4+8yctGpe2F XBEDi3TXcEL6PrXE8lsQgAUcbmWhTia5ZlJenyY3wBm+zrUSqVIJ4TO8232QmeJU50Z2YYgclX5KpO dW+70WN2oibbee2rlfQLgpYskHRVk20ExjP1/uPoSZ7XTa6BlNwATouZM0T3iLvdLKJ/pQHu55GB9T GnfYBi7suiRk29bIAtuEgdzeVBId1MKqaOsKos9Q/A9Sl+taAEHm3tHgtq8rE3a9sDl+kKZbN8O5+r IX4ywvYeCWTvs/XhPlcTSXzBcYQQ2TNNFdbfK84Oc0tGAqfWJqxAOlqiYuXYJc3miaUzrPRuqAEErp qTgIT5KTMt2CU1eOz5pAD2zcsYMYXGgXgoe7J2IYPI8aP8WVBPfS2WpKJliw== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Add the missing CLK_SET_RATE_PARENT for the byte0_div_clk_src and byte1_div_clk_src, the clock rate should propagate to the corresponding _clk_src. Fixes: 9e939f008338 ("clk: qcom: add the SM8650 Display Clock Controller driver") Reviewed-by: Dmitry Baryshkov Signed-off-by: Neil Armstrong --- drivers/clk/qcom/dispcc-sm8650.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/dispcc-sm8650.c b/drivers/clk/qcom/dispcc-sm8650.c index 80fe25afccf7..f38f5f43acb2 100644 --- a/drivers/clk/qcom/dispcc-sm8650.c +++ b/drivers/clk/qcom/dispcc-sm8650.c @@ -696,6 +696,7 @@ static struct clk_regmap_div disp_cc_mdss_byte0_div_clk_src = { &disp_cc_mdss_byte0_clk_src.clkr.hw, }, .num_parents = 1, + .flags = CLK_SET_RATE_PARENT, .ops = &clk_regmap_div_ops, }, }; @@ -710,6 +711,7 @@ static struct clk_regmap_div disp_cc_mdss_byte1_div_clk_src = { &disp_cc_mdss_byte1_clk_src.clkr.hw, }, .num_parents = 1, + .flags = CLK_SET_RATE_PARENT, .ops = &clk_regmap_div_ops, }, }; From patchwork Tue Jul 16 09:05:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13734199 Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (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 A7013196D8F for ; Tue, 16 Jul 2024 09:05:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721120735; cv=none; b=MqNqbBQsEp5L4slXGnOMHNDZ61p8sJV7PEu+ZHeBbpAIaQcfxzGPoWilWMz4/dt/ce6SlZldHmjjiRgYlw8eU6ITVTRTydSVRsiKuEZOucrjDtz/sKx6kkmwbW8sAy7jqlu1JTrw85Po1X1xas7isdJ3tBzpRADGiBsvi2Ne6xc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721120735; c=relaxed/simple; bh=MZMZPoolHX3qMdGwUMz1yB9aEjsIJY7Yl7a/GHyQBoE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YFbtSr+1R4iW8jhG7urPUihxWkD4Q9qzV19MYX0if1LhdxPPMHkzjuKB5gwGlF1dkGlJ3d+x6v0Mc9Nr/jYqHusfT1DYDSzZ1wJKaBZblVnsDbOVZHQon5uiHd4ptjxwaoK6Zlcru57Io3XuO9WgATUrMFbWglTYiS60Ha3ABEQ= 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=yBiAhxsI; arc=none smtp.client-ip=209.85.208.176 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="yBiAhxsI" Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2eede876fcbso31932271fa.2 for ; Tue, 16 Jul 2024 02:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721120732; x=1721725532; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Us3Hv664jfEqjZ3ciHUK1driKOnsZFNkqmoGNoj/7B0=; b=yBiAhxsINP9aXEJ/C+4zd6bfet8bPoUQb0NSxsfJDJ27t3EDFoV6Xz8a7xTtelqCJr 97tUu4LDdKWn5tuBSMjvAB7wqIP1J+aqofx3sY3uvSrfNVFo0ys5wvSeM3YIIjmlcAH0 /tlCFPxSdmUA3VHCatztv0VD7iLsY6qpYNFHbeSUo7Ad2UhbzWWczdEMWF1yuWJVBXDb 0vcvFSpAkrGiG7QDEHLRDCg0Eul83eQb/1Tup4h1/Jr0FaNZRNW+Kx0avNMOI+IQXJdX wljai69B+nWeG/JSyx8fLsDgl8xVNZ2SVZcg+ar1/DxjD//GbqDTBxIbQa3S8ctsLRS5 0zMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721120732; x=1721725532; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Us3Hv664jfEqjZ3ciHUK1driKOnsZFNkqmoGNoj/7B0=; b=md623EPbaFBlUBqCSFSesaKhOI4uwRNG4JbZGYMK7ujcfzd2KmwFIX8swXujYalkd2 8PNK+O/qCauUCr4KX1KwwE4oJ0yK/MHyVyAa7fKnTllwzS8Jp5dECU4UWLrmVSvDLrMQ /d6ey7DJWdzfQ7sfbwWBVL7Ns9rhonZwQQAiUUis5hMCFHeGv+rUaM1DXYY/lM8ioYfG 7fC2+gEwOZOdt3U39MD6R2mVRGYYaSM2Gw406nwCVRlLCvwIPSs55lvT68HyYgGhpwVS M0JAuyjieyYBaaVSgk0ZVkBRjYnSLnhMVZv7yEj0ZIo0enwiYkpQ7GLdlTD+DzkZok7y Cxvg== X-Forwarded-Encrypted: i=1; AJvYcCWnirkWzwgrx7TE/q84YwQpclyVShXLDyxfqKD6hINVRTu9+shYJ9i/SJfP2zEej1IFmYUtM00l+PU5bjopHjvPKWSEqW3O8VH+ X-Gm-Message-State: AOJu0YzBA4N45+MiBazi5Ytx4p1mmowh+/9sdWT4Kcy5voNCuSVT0oZt /NPDh81buH6ivWNGzC+2DZcza1NfoMrTMCceMYK7aaaA9ekhC+aeWaEhvbj2K/8= X-Google-Smtp-Source: AGHT+IGEPnIV2C4Xr3faXysx0L8tpOiMUBCIIbqgWwZSCkQ98IJiCgcs0GH9suvRSaEHxRG/LIYk+g== X-Received: by 2002:a2e:a365:0:b0:2ee:7bcd:a52 with SMTP id 38308e7fff4ca-2eef41ea33fmr10001781fa.46.1721120731269; Tue, 16 Jul 2024 02:05:31 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4279f25a962sm148687875e9.12.2024.07.16.02.05.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 02:05:30 -0700 (PDT) From: Neil Armstrong Date: Tue, 16 Jul 2024 11:05:23 +0200 Subject: [PATCH v3 3/3] clk: qcom: dispcc-sm8650: Update the GDSC flags Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240716-topic-sm8650-upstream-fix-dispcc-v3-3-5bfd56c899da@linaro.org> References: <20240716-topic-sm8650-upstream-fix-dispcc-v3-0-5bfd56c899da@linaro.org> In-Reply-To: <20240716-topic-sm8650-upstream-fix-dispcc-v3-0-5bfd56c899da@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Konrad Dybcio , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong , Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1187; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=MZMZPoolHX3qMdGwUMz1yB9aEjsIJY7Yl7a/GHyQBoE=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBmljfXaHYyFKQV+fSSyqGNqBRsHNmgNpSIXSNX35On 5OzrfYmJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZpY31wAKCRB33NvayMhJ0WmMD/ 4wsWFo4a6vme47ZbsTis/pj3iRJEsYHc/sZZYffEZfC124nALG4AiQDoMbQgkwWEKHWsgYH17BkUbS t4ukQ2uxKDDcYN9sjMzSduAik6nCX++Bz3TuMpz9NI8nlc/3OEz7WEnuWCyb8R9k1ApevLT0I7Nam1 3WEao2gCMCRlfW7Svnjl1/mRuYPZ8RfleHCtsx8QeyiCR36TDKsYqOnA5yIpw6MwNySrFz3SS/BchQ mF8dzQCA+E5S1eGk4XiM8O0i+eFASdKXg3CVoL8hfh0DX+K5IsEGFcPuSOL3s1MYBYF4h59OMnOpAB Evu0u5IzS00BCXiap4qoF73hPssJ7Z1fKF3oHuVa41VtvAqa9KHGdyqlwqQYYZrH+Vb9Jv6/BH08V3 G7n52hXf4/sJ9pnyIwzPO72z4iMICh6APc8hTaKfiSbibjoG0KCpQPz59vIJmejqDNgu4fY3/Ci3Zr nRQs/sMPc+25q6aT/0BBl1SgwZRiiIA0zFNhDQDeTt832sdcfmT1OXUT7sI7JS13/hRwvsh5Ya5TWR qTZbj9XE/Ov+J0oeQ0KfbYcnAOeDR4jFmLDw2MXGaBjbVPZK/TSQpyvBpvAk4QxNQxNvwXH+eyK4Pv EW1k/I3tW9yWagP4tD1x9kIawfIV2y+PU7L1vhEg/qnHN8l3TDkUxEVVaK6A== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Update the GDSC flags by adding missing POLL_CFG_GDSCR flag. Fixes: 9e939f008338 ("clk: qcom: add the SM8650 Display Clock Controller driver") Reviewed-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov Signed-off-by: Neil Armstrong --- drivers/clk/qcom/dispcc-sm8650.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/dispcc-sm8650.c b/drivers/clk/qcom/dispcc-sm8650.c index f38f5f43acb2..bb99c1325717 100644 --- a/drivers/clk/qcom/dispcc-sm8650.c +++ b/drivers/clk/qcom/dispcc-sm8650.c @@ -1610,7 +1610,7 @@ static struct gdsc mdss_gdsc = { .name = "mdss_gdsc", }, .pwrsts = PWRSTS_OFF_ON, - .flags = HW_CTRL | RETAIN_FF_ENABLE, + .flags = POLL_CFG_GDSCR | HW_CTRL | RETAIN_FF_ENABLE, }; static struct gdsc mdss_int2_gdsc = { @@ -1619,7 +1619,7 @@ static struct gdsc mdss_int2_gdsc = { .name = "mdss_int2_gdsc", }, .pwrsts = PWRSTS_OFF_ON, - .flags = HW_CTRL | RETAIN_FF_ENABLE, + .flags = POLL_CFG_GDSCR | HW_CTRL | RETAIN_FF_ENABLE, }; static struct clk_regmap *disp_cc_sm8650_clocks[] = {