From patchwork Mon Jun 24 08:05:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13709136 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.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 BBD55482DD for ; Mon, 24 Jun 2024 08:06:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719216362; cv=none; b=qhXrf8g9plNd8u14iGC+JcShj9FZKRdZUO8AEZjkMzD66+y8ImrvHt3SuThCvG7uW+FK1LwZ2s3s3cWgTW3108BBCLkCmZ4O6tUV5IxmN9JUb4kb/4MzaZLZA8X22aHsBbtp45MxiqqIpgmxg/JPp85HBueSl5MQTyQS/0xkNbs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719216362; c=relaxed/simple; bh=bQIkyp29tZTCARpC2vuZ9f/W++P76ZZ+B6qEosU8tuQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BkthBj0weWW+6SYLYhM2Ozt9gWu20hp/sAmUqmQuo7DcguBje9wo56mIbxFW3SrI9QvdK0UuWr7rUFY1HNq95Rb0FWQXsVcMA1wE7m26C1DI1PxMJMvsfrj7m8/ZWvrJb2YyFYVjmdMMMF7dLZPYMmdI9Yr59sX520/WCylf7xE= 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=Z3ApYHjy; arc=none smtp.client-ip=209.85.221.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="Z3ApYHjy" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-36279cf6414so3120443f8f.3 for ; Mon, 24 Jun 2024 01:06:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719216359; x=1719821159; 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=KyDPiQXEXGGJl0MD1s6OPz46t6cn2g1Q+58BMOrGT74=; b=Z3ApYHjyKPZI2Hm/mwOO0VJS2K8vlDb7WYYCsrnpSA69bZ4qnP8VwdW48qvkXfKbcq uZXXgdlY7QVIuwx2MP/LMHFl77VeZDhgiJYaSX1WCGL2XRk06kGrct3PKsJ6XnJbEMPo 2nu07syOCfBf/8/mvi9osYDtT6UJCeVnG/TAlD4JayPqDzUsqBaUCG3Hr1WAM1HwokHw JFSGFeF+cMrMbuu20JbeqHWnBr/zYcHgU2PzIEu69lenwoPu9yFqFlzBI9inppwn9pUt GycxtqUgsZb7+esDxreFcWLgd1VQYraoU9ngMw0G014pn4mrl0fGduuFXNFEEkriP5b9 xNrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719216359; x=1719821159; 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=KyDPiQXEXGGJl0MD1s6OPz46t6cn2g1Q+58BMOrGT74=; b=ECEYtXvz46fP+ooOzu/oUxyzdnHBI3TH41p5BZF1XPtJobvfcM3pGjOhoa1WHpDDeH sqvcnQD0w7PvnPWoB0+5wlMqQE9mFyEZMRThYaSifYFJ1mIs8bhj9SXAT1cDy4Mv31TB Eyisak5ejCSLFGIIIlbhYL6f//7Mjvr5Mtsc2kFGClnIEtR8ZssDRxkuGpcdF3jf7YDr dHUGuTg4zduyjbZ8jTh2se1OGh1j9wVwxpzs/2+Jgd/mnAbYQGAXYSO8WGZ1KpLe48CR 5KO1b7x6k5N9PC4HIx+7w8jtcoF9TINZGdiad1DgFzSTFlVNc+roPXdrLHhwzSS42iNt MDtg== X-Forwarded-Encrypted: i=1; AJvYcCUDxzjTIg65DRcczsFTTUUvQUl4MaxdaXWGdBd9S7SAr5qHV5vlpIu5lLZCGwVx497UyW1QEX0sjnoLTpMb6zBBJmObms+hrkCb X-Gm-Message-State: AOJu0Yxjwo4H1J3i7Ecth9cTUKn08Q9wqEyN4snYax1tl/vz9dyTDyzq 5G0Y0TZxKLPlwXoH9DlSBU4eNPh3yvlwEL5thHJMEONH8TfDnaQG4bSlYk1efqU= X-Google-Smtp-Source: AGHT+IHyEZ7sSwdlNWBlnGYh94Ik0+5Hq4GAElR0relu/4ywsiDWGAVZDhc9r024GO1E4ss+bcjzqw== X-Received: by 2002:a5d:4a11:0:b0:366:f7d7:ca51 with SMTP id ffacd0b85a97d-366f7d7ccfbmr613526f8f.55.1719216358745; Mon, 24 Jun 2024 01:05:58 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3663a8c8b27sm9280284f8f.104.2024.06.24.01.05.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 01:05:58 -0700 (PDT) From: Neil Armstrong Date: Mon, 24 Jun 2024 10:05:50 +0200 Subject: [PATCH v2 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: <20240624-topic-sm8650-upstream-fix-dispcc-v2-1-ddaa13f3b207@linaro.org> References: <20240624-topic-sm8650-upstream-fix-dispcc-v2-0-ddaa13f3b207@linaro.org> In-Reply-To: <20240624-topic-sm8650-upstream-fix-dispcc-v2-0-ddaa13f3b207@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=2656; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=bQIkyp29tZTCARpC2vuZ9f/W++P76ZZ+B6qEosU8tuQ=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBmeSjjxg6m8mdc5uX0GW+0BOP96FwznajwSwjEgf5U UtYMI22JAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZnko4wAKCRB33NvayMhJ0RvdD/ wNe+Ut3tSAztnJSbB/zX1Mr7ylThJNAyZeQRW89puC/EpPxlVLZLlgKhSvA0RF18mqDFp393DTShdN GgWqmU8h/HFMvlZwvBxAyu0bIydZjmEXmdNt5GGBu8zuPIl9+hkt1TyXT6OzK/age66BFAqXe2U7mP YZ56ILRoVwLNwbveW3jS4E04NemyQlTW2feKJn/MLwL00ajAG3xdoJ/dsLn4xHbchGHBIgZlfS6a+p mI0hLgm604LQL7re0nNKbER6ZGhvAcrepznVDwNvWA2JYidiQokzRNBF3LTG8hilUFDj6IZfLlsnSS pkbi+glASJAzn5Da0Hw73aA6PDqlQOSmlF2sdpIDZAkVSrOLHzRPEVDh0IuEGL8KSWGT+A5LpschIl lYg3/p941jkdgID7U7rApqYyf6Qh2JnoJNU+kos6oDN7ls1RxfkfALYjJYllmp4sWGTuCzEP9JUt1R OaBZziGfTNoCa/PUlXmgKEV6NceW5jPvZHH2PQ6zfYZsmlsX1X0D/tA9ewnqfTfrW0WmiJPCBQcPa3 gaPda4dipjfKuNQUvKF2wq74+AJ25NYKlFIs2bNDwDpEbvu+DciTiR6x4Qovw4a8KTKdzdNbd2e/7o qAevRlfCSL0j+NxYwEKwVU7AHlc+gAQkzUz7unaNGquuHv2o8GYoUWRiDwFA== 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 --- drivers/clk/qcom/dispcc-sm8650.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/clk/qcom/dispcc-sm8650.c b/drivers/clk/qcom/dispcc-sm8650.c index c9d2751f5cb8..360b80377ed6 100644 --- a/drivers/clk/qcom/dispcc-sm8650.c +++ b/drivers/clk/qcom/dispcc-sm8650.c @@ -339,7 +339,7 @@ static struct clk_rcg2 disp_cc_mdss_dptx0_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_rcg2_ops, + .ops = &clk_rcg2_shared_ops, }, }; @@ -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_shared_ops, }, }; @@ -457,7 +457,7 @@ static struct clk_rcg2 disp_cc_mdss_dptx2_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_rcg2_ops, + .ops = &clk_rcg2_shared_ops, }, }; @@ -516,7 +516,7 @@ static struct clk_rcg2 disp_cc_mdss_dptx3_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_rcg2_ops, + .ops = &clk_rcg2_shared_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, }, }; @@ -647,7 +647,7 @@ static struct clk_rcg2 disp_cc_mdss_vsync_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_rcg2_ops, + .ops = &clk_rcg2_shared_ops, }, };