From patchwork Fri Jun 21 14:01:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13707632 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 D8D042F2F for ; Fri, 21 Jun 2024 14:01:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718978507; cv=none; b=EVDimBWhJoFqbEhIJRb96s9mQdXPwjn6L1HJU/iFumcmKtgvldpVVp54InEoBFRjnmQhu7ohesCSgMf7ANmYKdHdxryWmq8ySQfSanlUfLNAT8xAWUz1vAwWR703LeX9WRd8HDRws1ZmhwWve3gZj6cWgz+8Tq7aG3LTv50wyG4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718978507; c=relaxed/simple; bh=o8Jk/KDgS55zSjUEldegAfGbkL6Ys6e48LJPFBGTp74=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=V2wVQcQU4Ca5iF4bVed9U56XGiNbNFw9zBw61IDCWxgnFkMkLbcm24N7uSMZSAl9sokHEo2ZPire1Q0KK3Mt1BPl6jsPP29Pkbsg8qL2eZmEsbjrt4OcH8TzdxOwiAlm0n/LPXwAqcfSjCaVSh8dLoFI3pit5cOw9oXOEbayQrQ= 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=JOHyWcz2; arc=none smtp.client-ip=209.85.167.48 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="JOHyWcz2" Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-52cdb0d8107so537118e87.1 for ; Fri, 21 Jun 2024 07:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718978504; x=1719583304; 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=wVyK8gM5VJzx24ZCzyzdqKTryh1LaYBXMgMLguRXSY8=; b=JOHyWcz2q+d8RRzLnuvRvRtvMq9p4cEd9f4OeB4sGyy+ewVgUpBpBYhahbsQXb/Xxl +OVg+J346NSnVcDfzJhfhKUDLXNG9DSdl+y8S4cJNIArYsI4PStNcT7ZKvh1x8dFjLaM zSrDMj2382AJ8vJIIS5fHhbGDk9DbLV4VOlYAYfSgjHUDAIOTFOSJuRDE7t5enwYSuHj hMqQawQcQBT4KZT7sr35smN+4fpptxtqG18xkEFb8qaAgG6/uNnx1ZHeS08iAa9Ova3+ icoLi2rORUktZ/jXjnCFOj/NecbiI042eKbeWIa9hcyXULx1EpBOuts2PpJ9/+AQdAIy tqEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718978504; x=1719583304; 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=wVyK8gM5VJzx24ZCzyzdqKTryh1LaYBXMgMLguRXSY8=; b=gRKHoUG41Xp/RRsw6hEgd3hjeuADrf9+7uij4/j9tRp3gdfEQzFU+X4ZOjgduo4LF3 8CB1AmL+7Q08Hnt/mhKZOM5IKDc20wiKyR7xLYClF5esG1I2DakNUnwoGDXcUOGPOHTS EN+npvdQPmFF4J9sWcgdgpWYfOHON/k2RN3Zt+OASZ2Ae9CeuE5K3cKqiAV17efPrt/k ZACtUj561D8VPKYH8ift+alWGmomKfZhFJFuByeU7l+BaCqnDX8duHtuqWiWL4mFs908 MCY5pC2IKSfgIBVvVZtItjf0BCEJyusoy41x5zq013JpXrxrl2CcANT7ltr5OCfgu9PY UCVw== X-Gm-Message-State: AOJu0YxGw5BW0RUnF/VBGvuHtx5OD1aSpM9FfQxjNDg/fg1SIQRpKYQJ 2/kxZ35YksBpOtyaRfZ+0oe4ijD+9u3m9x4rRkZW7kTrHm5qyFWrN6Y2zrOcawI= X-Google-Smtp-Source: AGHT+IGn90Vc/K7XSYxwzxsNwSduYALlV+IHzILL024upvXUNpV36AAp+B2C+5pdwrjg6G3MFeWPWg== X-Received: by 2002:ac2:4317:0:b0:52c:8944:2427 with SMTP id 2adb3069b0e04-52ccaa61fc5mr5134234e87.31.1718978503388; Fri, 21 Jun 2024 07:01:43 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-366383f6722sm1847342f8f.24.2024.06.21.07.01.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 07:01:42 -0700 (PDT) From: Neil Armstrong Date: Fri, 21 Jun 2024 16:01:14 +0200 Subject: [PATCH 1/5] clk: qcom: dispcc-sm8650: Park RCG's clk source at XO during disable Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240621-topic-sm8650-upstream-fix-dispcc-v1-1-7b297dd9fcc1@linaro.org> References: <20240621-topic-sm8650-upstream-fix-dispcc-v1-0-7b297dd9fcc1@linaro.org> In-Reply-To: <20240621-topic-sm8650-upstream-fix-dispcc-v1-0-7b297dd9fcc1@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=2843; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=o8Jk/KDgS55zSjUEldegAfGbkL6Ys6e48LJPFBGTp74=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBmdYfDnD+UDG34Hq8SxNde8xLsCxAmu9Zzo8CqFw2x vfwtYZyJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZnWHwwAKCRB33NvayMhJ0a+pD/ 9Pj5oFBpclrEjkPLmY5u7a/C8FuDKtb2YBM+SrWBilpqGoUo0F7A6U3iuqvpvA/6GPGRHwZMKnC29X 8W4OWwUwIiJnc6a1N/3J7eZC4OFE0HwiWxiF8dVPKj2BPNeTFVungpupJ11ODK9ZzzgpOAqNZYxyXV YDTvyJCvFsgMmL18Es62eiNbTPkMnvayk0DJz+LYkDIXNrFmHaiedzT8yZM9yF2ONkfXCJfzeGAQ8q cHW2OkAgRWDu++oL8SpOrjFCLRVZcziUXvVgEfbNUe3Pns64y2x4meC2s6bEksj/xjm3j9ErxzUU7u T/0ffojPHMAm0SV2uFDOKAyKE/2lyz5IX5APxaup+sHUvTBNs9+AssqWTzYWcpHOd4sR32iNL6Xiut GslGCicZPdBgBMneR2p2n9HYLHPbyQakx7d6hf6r9l+C0oXrVLMv7EagnLsKwPMT6Wz6DmxhxS+CWi sf+vnBr9jxhSV049aCdjNWAFf3sgI4YUBNH2NxwjjjaE0hh0SNPLVKCry7MGDRch5lacgjX+3HOaAm pdSxpk8nfzFL5KiCZgLSGmoUVGQz2p2UEnlaJNmm44d+K67vFfLDUdD+ACJGxvkN+AZPKFGhKEIz1h A3UFwwqKlZ8stW01HdW1tTBMhIE90liIIBRv2wA2JLshPH/wQTGpUAo3f8cA== 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. Fixes: 9e939f008338 ("clk: qcom: add the SM8650 Display Clock Controller driver") Signed-off-by: Neil Armstrong --- drivers/clk/qcom/dispcc-sm8650.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/clk/qcom/dispcc-sm8650.c b/drivers/clk/qcom/dispcc-sm8650.c index c9d2751f5cb8..31c82f791b44 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, }, }; @@ -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, }, }; @@ -667,7 +667,7 @@ static struct clk_rcg2 disp_cc_sleep_clk_src = { .parent_data = disp_cc_parent_data_9, .num_parents = ARRAY_SIZE(disp_cc_parent_data_9), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_shared_ops, }, }; @@ -682,7 +682,7 @@ static struct clk_rcg2 disp_cc_xo_clk_src = { .parent_data = disp_cc_parent_data_0_ao, .num_parents = ARRAY_SIZE(disp_cc_parent_data_0_ao), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_shared_ops, }, }; From patchwork Fri Jun 21 14:01:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13707633 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (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 A115211182 for ; Fri, 21 Jun 2024 14:01:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718978508; cv=none; b=V9o8yFJsSwWeC+DtO1uMPB4O80KJf/vrSDv/TNaU7PKU5pImn0GuApi0oc9PNWbTniI+hk46Kezo614eruB/dE5sMgaQgOuwqO71k4iR7JsoueqMu+ybvMvdmHre0XzZWzJcBeca7gATus4eBgmptT/c6Uwz6RAZErmHKXWnv4c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718978508; c=relaxed/simple; bh=s29/37KKHt3PZEwZnsIXFrVPh+olGHQ9l5FpzQHfmHw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Y07eUcxYr9fXpFZWUSdERveMtt+bWZvLuDCIKGBfgOc5Xbczgvl7ERlSkYFRjAJO6ug8/OM121ymDYgGZdsFj2H7cK0CpMW7HqafQzxWAcGCR2uQBHSy6cReJAJbtCaVmlZ5f9bqpDFrsPtPm9cH2mUvAsB8Fb89RvAPYejzSPU= 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=EC5yeuEE; arc=none smtp.client-ip=209.85.221.43 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="EC5yeuEE" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-36279cf6414so1620327f8f.3 for ; Fri, 21 Jun 2024 07:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718978505; x=1719583305; 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=VTmCmBVw5TK18hnTViwPxa5USZ4/k7Zp22q2p7WUivg=; b=EC5yeuEED0zCLAT0OiirYaGoGFhJEws9ShPOkQsKgObdNmUb4ZHtHGStzETBrN0OzM MdI91x5ktx0JOEP+Ud0fxQ3eZ9gyolx3jkaLID0dH+tyLSNDghSRd8i/cQG8ZL7JZ3Xp nrjVAgcASZJEX/Lvd/iPgN0Tmb2jxjnBvmzYCXS9ovetMt0C5+576wyBSZiRVAgwhfGF xLyBPfCxtgay0qbEuc8FRq1kPqVx3Wv58WNo3LhVh0keyepwUpLTnhS7q5PF3lV/6415 6aEWOLqGorDPSwcoL5BaREKwq1al5PQGw+hZu8Ms/kvMVhTNcxpdh9nwo0I6eizG3366 EPcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718978505; x=1719583305; 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=VTmCmBVw5TK18hnTViwPxa5USZ4/k7Zp22q2p7WUivg=; b=qbWbMifCDwnmAkD53/OWH8nXCvzg9s4SoQwEMmrEryH+VANrUO6YiQVMO4FlLencD6 WjCi0of2Kxjk8ZipiSH4QRW3y0hYDcd8Dio3N136Iaibnmaz+txKeZuCVsi9R2GZaimo 7fHSZrH3K4Fv+gAaF2I3QquRkpo8dnQpLYFs/IMano2j78Wsr0GRTLRQc/bjqnrC873E jRvyBf3BmvDtlBQ1KkWBr5zzOuzZZCRuJqp5Bl+omgS3YgpA/qOxlnCTSXEWywEWDpXO WB0wteO52RauMAYJQuEktptMM4T5Y/Arh/c4rz7ngW5GIXLq30GuiqOAyd++ahedtZar gLBQ== X-Gm-Message-State: AOJu0YxqqrdjibIKE264dF7pGqwx3mizxDVFPO+6VZBf8d6eyeKpeo+8 II4NZGLwvNiUINeD4k0jj85TIHKxhp1yQX9P93zkneq8a648K3o8bJigtpH4mG0= X-Google-Smtp-Source: AGHT+IFxktwNEdIxzRgRaxMr7311ZbKCUGBy3Qbuf1UdLbqLslUUN9msZmInAMl92TDdPTiCwLSvqw== X-Received: by 2002:a5d:55c6:0:b0:35f:3166:8d6 with SMTP id ffacd0b85a97d-363192d0074mr6882584f8f.52.1718978504494; Fri, 21 Jun 2024 07:01:44 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-366383f6722sm1847342f8f.24.2024.06.21.07.01.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 07:01:43 -0700 (PDT) From: Neil Armstrong Date: Fri, 21 Jun 2024 16:01:15 +0200 Subject: [PATCH 2/5] clk: qcom: dispcc-sm8650: use correct clk ops for dptx1_aux_clk_src Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240621-topic-sm8650-upstream-fix-dispcc-v1-2-7b297dd9fcc1@linaro.org> References: <20240621-topic-sm8650-upstream-fix-dispcc-v1-0-7b297dd9fcc1@linaro.org> In-Reply-To: <20240621-topic-sm8650-upstream-fix-dispcc-v1-0-7b297dd9fcc1@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=836; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=s29/37KKHt3PZEwZnsIXFrVPh+olGHQ9l5FpzQHfmHw=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBmdYfDx4ESgTofISPDhVJkMyU4w7Sks9rcsq7u4Z1A BEpXkI6JAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZnWHwwAKCRB33NvayMhJ0bMvD/ 4pwokQdsAV24Bn3hk2mghSfM8Rr5qBzdvPGNZBEUtbmyxB89MReRbLkuAm6A3Ay5jLptC/+cfd4XEp 5UrdXpIeHb77rKXamOW6SLw3/Ek0dE8gTiU51SICLBYXB+0wXKdmfQMYWNvyg3jN0qtsDXoRDrXdi5 PjgP36Gck8YK0YTCYWIAxvQ6CVqZz8O7RM8bMCuPhSBPQD9Zttd98OjRUL5SzZ70TPqTLNkxcGygkL jkEwZWOIc40CZPJGwfZVWAYl1gicfgkfTyvfDHujClDRc1/aIv3Lo28ugLRfh28jgYQH1LmRbIqskD ICkOQncVdQvr7ZyOlWkJ2Bcd8llUM25us+39G3TilMtH43bIlYcxWrtwzD56k9QvBQmU3BC3knG/Ec 5M92rY2Ly1P8EWolMyZRJzsMHKzwalf3Rd7ldCn/ZZqumjIVlHoZGBWZB0apk/u5++vrLFhIo1J0W+ fbkvPOXM3stI9EULzwihoplgFQVQnB0UVPM7aUmnHVp5IhsBYl/nGxvlj+o2yow1Nhbym0w4vCb2Ev iOYZRj/XXJOO/RGCA9iXFyoWJ8cTmIaRr1jqMoTX0pZp1T4AIDhpE34ou4esRgZozC11sko7wiGIZz TO583s770P5wlEgG7lRF4fB3c+lKbRzalUA8384W1Q/dC1mCDEZqnzpm/Sbg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Use the same clk clocks ops as the dptx0_aux_clk_src, dptx2_aux_clk_src and dptx3_aux_clk_src. Fixes: 9e939f008338 ("clk: qcom: add the SM8650 Display Clock Controller driver") Signed-off-by: Neil Armstrong --- drivers/clk/qcom/dispcc-sm8650.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/dispcc-sm8650.c b/drivers/clk/qcom/dispcc-sm8650.c index 31c82f791b44..70944b7128e2 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_shared_ops, }, }; From patchwork Fri Jun 21 14:01:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13707634 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 799B0182DA for ; Fri, 21 Jun 2024 14:01:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718978509; cv=none; b=E49MpxtYb9aqYcr6zdgXYBhp+s1H5q3igMg1WcU0bZs0CW5aK7/sTF1FglTSiUg7NZLOpGRUVqeeV6lzfRw75EReNhgA8UP47stiKVSyguvO7fxZSIP3VGt/IcottTckVX1PZR1ATrCX62UHRDtnbT4q6/NMSCQmkSyKkwqTPxA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718978509; c=relaxed/simple; bh=ZBPKe0HHy+NyoafIzdK5mOmvrNkqjTbzbqbuR1ZiAVA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CBFQ+6eh1Rfw4/Jqa7VPTQLL2Xqd5rLcLHH7wEV8AVqnGVuBK/cHTWZEbWXHDl8NRSmcpNimvmWU6fID11v7LoQN0fTKS2yHpu6LHytHNypyA0EBpqWntOeebhMLMfxCPBbjIgu0xteoMAYMkcSOCnGC+FcYsLKF3lIqaGvTU30= 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=eM65aqwS; arc=none smtp.client-ip=209.85.128.50 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="eM65aqwS" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-42281d8cd2dso15190005e9.3 for ; Fri, 21 Jun 2024 07:01:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718978506; x=1719583306; 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=o5+sTt6uiJKalIlmDHjnKyJpvfmOgCNjSbZLNNkLsCU=; b=eM65aqwSZRHDhCgrZ8DWpaxLJ4SIoBYG2JPKbaQ3UpCytScI2raYwIaFobleuHeUaU itGaCzX+tyR0VlygI4oKl1Sm7y/vRxoPllPC+x7V1rnpFq3yfjeDquodKiLAVTGmRpMJ He/iSb2gVa5fbnORXQOLapWjYwaaik4OxefC00Yp2/dfVCf9huOmYe7r/CD1P6CFNvLy POe8nZ4ow+ff4+PBZRHHSBgUN3wqSdS8qHXxos0DGIjCfgZFRvYV8SMNPbboy45N3URX bcjFwBCBUQgznx6nwN1DFRUBnH9m+FW7GcEEONzqyS2Hs+3h/z59/eYW9xv8cTRVleel 1l2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718978506; x=1719583306; 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=o5+sTt6uiJKalIlmDHjnKyJpvfmOgCNjSbZLNNkLsCU=; b=t/9G6EkjN7vZYD5nE0tERPwUkfZ3TzVWpPGXJuzAZGmGIOZj5k+FfuiGaNcmYgXbgk vNdDOTy+NIZeMopYjNN6YWGf9/egZz5EdA3NR5pX5DO3JVFez5mxNpfJjSib3RqHpkQs hZ7YyYusqh4cFD81vGlOYN6Cf3j6A/zt0WHLIN3WUXiX2YeEUvRFuQy9kJc95/4Uz0e0 nWHTenYUb+eFmkaok2lTP7tyN5j8EiWcip5DHtj58GYfILY7+biDPkM92O/FBcgHOgPR oRdfbvgFduxgBPQ5SagQXFTn2BvM9QaG0iyg2f4EeJNFDSkWPl/J/61Z1wa7S6SuKblw jIFg== X-Gm-Message-State: AOJu0Yz7jfxqkWXnbE+ima1hCXbfPO0Uu6N7bzdkREMt5j4EQGLgrZfC yviPYcv2XKEAvbnD73U6Y4XL8cHXXny6HI7UKkdvsu19WSP1Db/ExlMDNL3e+7o= X-Google-Smtp-Source: AGHT+IFRf4YsT1LA7JumYO+RE0NnDI449Jn1lv64bJfe1l8pnL0UTsbQHKu1g5tW7vg6O7EPoOJvgA== X-Received: by 2002:a05:600c:1615:b0:420:2cbe:7efd with SMTP id 5b1f17b1804b1-42475298bd5mr70005875e9.31.1718978505587; Fri, 21 Jun 2024 07:01:45 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-366383f6722sm1847342f8f.24.2024.06.21.07.01.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 07:01:44 -0700 (PDT) From: Neil Armstrong Date: Fri, 21 Jun 2024 16:01:16 +0200 Subject: [PATCH 3/5] clk: qcom: dispcc-sm8650: drop TCXO from table when using rcg2_shared_ops Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240621-topic-sm8650-upstream-fix-dispcc-v1-3-7b297dd9fcc1@linaro.org> References: <20240621-topic-sm8650-upstream-fix-dispcc-v1-0-7b297dd9fcc1@linaro.org> In-Reply-To: <20240621-topic-sm8650-upstream-fix-dispcc-v1-0-7b297dd9fcc1@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=1213; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=ZBPKe0HHy+NyoafIzdK5mOmvrNkqjTbzbqbuR1ZiAVA=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBmdYfEgA3rC4cjm5PQ1CVeHpk6hPGldHPUXsaYPo8b SH57d16JAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZnWHxAAKCRB33NvayMhJ0WyMD/ 9SzxrvD4BNIm4PO11v+MDIOg8BVs84oUGJWLrIP5yTOzWNwVz8bZMVzdkpedrHaFULpN60Mg5bJ244 jx6/vHumGEkqDghgPpB9fadZJ+p/HFESHlqTG3pjE9z+cyVuNXJGBTiU09UfZ3TdWO+qLKBpZzFlB8 2IEKj6RCrSfPg2tagsON2LPn48i/F9yQ+bg4x0x0ltZCY5DXYFJB7b4h1FysgoJn75uJY42Wflrn1W 8zZrwET2ACnPEW4g7ypzaDZSJDu0GHQeDC0YOLEuQmVNTejLVyPbGB4fCOSrD6Mq7v9G6Cr8zyil2h 4OfHQnPbS9lABAWkAG9DE13G9ZohJATPgkSbPnvH9W4tv/8Rz3ETGS/ec0k7GVtGzK2m0EEC4TCwLA 2AX7IwbWXlymvvftEF4GRWEZuG0XpWeNNOSf6rqVw1Vvm/W7ic5OtEtCP//Oyx7HCogyFMn8fJFl5Z hGzUddX2ybyFnOu1AlhobNIWbB6Z4+HSUrYPsXBdAnekDlTI03f74XZq1OvqZ+0ET81mOYBbVYVo9J m+F1Kqf7SWIMT0VBHe46sTbP0TQaUzKT03ppXBwBkGyt8B4IDo7RTAYHBILj4oxgUgLkGQaJsZYR8s fMwo6fJPWruhuzJvzYcmQaVVQDnXl4n6v4mm+O2jamu6Psw0f1kjHtYChKhQ== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Since those clocks are using rcg2_shared_ops to park on TCXO instead of disable, no need to have TCXO in the frequency table. Fixes: 9e939f008338 ("clk: qcom: add the SM8650 Display Clock Controller driver") Signed-off-by: Neil Armstrong --- drivers/clk/qcom/dispcc-sm8650.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/qcom/dispcc-sm8650.c b/drivers/clk/qcom/dispcc-sm8650.c index 70944b7128e2..d22f61772667 100644 --- a/drivers/clk/qcom/dispcc-sm8650.c +++ b/drivers/clk/qcom/dispcc-sm8650.c @@ -272,7 +272,6 @@ static const struct clk_parent_data disp_cc_parent_data_9[] = { }; static const struct freq_tbl ftbl_disp_cc_mdss_ahb_clk_src[] = { - F(19200000, P_BI_TCXO, 1, 0, 0), F(37500000, P_DISP_CC_PLL1_OUT_MAIN, 16, 0, 0), F(75000000, P_DISP_CC_PLL1_OUT_MAIN, 8, 0, 0), { } @@ -580,7 +579,6 @@ static struct clk_rcg2 disp_cc_mdss_esc1_clk_src = { }; static const struct freq_tbl ftbl_disp_cc_mdss_mdp_clk_src[] = { - F(19200000, P_BI_TCXO, 1, 0, 0), F(85714286, P_DISP_CC_PLL0_OUT_MAIN, 3, 0, 0), F(100000000, P_DISP_CC_PLL0_OUT_MAIN, 3, 0, 0), F(150000000, P_DISP_CC_PLL0_OUT_MAIN, 3, 0, 0), From patchwork Fri Jun 21 14:01:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13707635 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 959A9208C3 for ; Fri, 21 Jun 2024 14:01:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718978510; cv=none; b=IFfoMmN6tMWT648gwUn13gMT3wYSsCR/OWXo/pdquiV/y0X2CXX/fWEn1M7MqXt2kMsYQlV4u+Ydwua8F1mZtczy2r5C+ijehOzr2JwX4MMrtU/8EM3qO5gMTy4b786PnUFN4fTKhAsVh6Z94ZCXVZE6bsIw/BfuLosazzG1QdU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718978510; c=relaxed/simple; bh=VQk7sZTiA8wCKqvgDmKRoTUmlQX31qFVVMeZqdFX4f8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=O9n2LKUl7iemvS8v1fZyp0jyBnKoTwxINUzIxuniNT0TGwQ+b4VvbMD8KUfR8sNvEO/0joxkAlmus8brg6logJ0T6ft4sTcxo4Pjd4qqLQefX7vVzOI0qYsKqiGO3zd/vpXC01wSNR16BV0D3Bmbr2r7TfNAAkGzrGYrfCEuC4I= 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=CvOEjRUh; arc=none smtp.client-ip=209.85.221.41 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="CvOEjRUh" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-361785bfa71so1701164f8f.2 for ; Fri, 21 Jun 2024 07:01:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718978507; x=1719583307; 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=HIq5NFporX9JL7hH7seYl7KxrZat3hGcNxPAVyQ42iM=; b=CvOEjRUhPUPxLzTFFFGJ2v/KCC7of/q/myCWM75lIIxYw1rVbM05em13him2b9dKEh SASSYv4oqzCS4LfNIqP7KfM7kHtqzSORvMheS9j+CS1x20Bmo2yqoWYJbubSANlog9ht +XzQc5ZLno6T6MMQyqDbEqsq8z1qUTsW+umEE+YYlOWfD5VE8EWtBUJk+oqNHJM57Nw9 MQY522cNotfAqlQaTgQyKyN2sDbmHG81ojjtLWEbJV6noY8TIae2m97obPjdSwrXsTwC Vb8EHatZktQi+usdqnsBi7QKYcm68zzljo2p+SWgH193Qv6/WGjCnsZB4ngnOKI/CKSs m9zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718978507; x=1719583307; 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=HIq5NFporX9JL7hH7seYl7KxrZat3hGcNxPAVyQ42iM=; b=r20vY/hfkjfuFtDnTnRu4/vXaUq9/j11ozKx8gnK2jvDR1JjyTX2Og6cqA9HP6CUof lNjzh+c+kjbU/8JKtPgQ4O8v5vfUROApLwwP/QTW6IP18S0ZuoHN26U2BNSQil4NdduN AXoezogK8oBDxR7Ct8GcSFrOH2qNPU654380dlHsql5L+nlJRoN12CKDrQ7znraasmkQ aTRDAJHSW5d8He6sG0rvh7k3kklR3SXMbsDbNRUecTKEXeFAhYgfYaaOKSypc/vcmq8J J0YGLCR2NPlqLsg0GrmzLJhW22QjUQwg6SlnX/UZpANmLPTyvHAmFMbl0bC6AE0l/vGA 3E+w== X-Gm-Message-State: AOJu0YwRgC0FLmJbZEnU5yaCjjQk7wkhu1sr8UtY9O5uwwG53+1EUrJl B40FGjXyDuzyBxnt/4QiDZ4lE9mPTJTtyL1EobZup4SGWTKBzpLitOAHNI4PZEQ= X-Google-Smtp-Source: AGHT+IFSqdMZ2rBm5DpH9rcAlEZXXwPTN8ojNO4QOtSfIWSE6aXjyDv1ozNml8jDWBt1IAxYyU5FAw== X-Received: by 2002:a5d:4902:0:b0:360:7f79:b4cc with SMTP id ffacd0b85a97d-3631998ebe5mr5943433f8f.68.1718978506614; Fri, 21 Jun 2024 07:01:46 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-366383f6722sm1847342f8f.24.2024.06.21.07.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 07:01:45 -0700 (PDT) From: Neil Armstrong Date: Fri, 21 Jun 2024 16:01:17 +0200 Subject: [PATCH 4/5] clk: qcom: dispcc-sm8650: add missing CLK_SET_RATE_PARENT flag Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240621-topic-sm8650-upstream-fix-dispcc-v1-4-7b297dd9fcc1@linaro.org> References: <20240621-topic-sm8650-upstream-fix-dispcc-v1-0-7b297dd9fcc1@linaro.org> In-Reply-To: <20240621-topic-sm8650-upstream-fix-dispcc-v1-0-7b297dd9fcc1@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=1062; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=VQk7sZTiA8wCKqvgDmKRoTUmlQX31qFVVMeZqdFX4f8=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBmdYfEFHDRWYkjp39n+HmQdqAoGn//ocgCqERcabOO jWuGhOGJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZnWHxAAKCRB33NvayMhJ0cRQD/ 4hljnI17ls7MCb7+we/IEpqnLHxfOUqBt8jxMRUJKGNVKC88x3eD1HCiRGMjimQ6f1GwyDR4qFeRnz aoCfHwrpn78tWxcTEZmuwtXeHO0VaGn+YIM6Dsn9Z0xtquawGXH8nNqHAJaKFjHXzGvn55H1OrYyqZ i732H+XKUHqroi/IKBrfRMsB3NmGcdInpWrD5b+9mtmUNwRerxdUBbKpIFDys/RA61lV/fjE2O7T6W H96SuPcm3tRbbrLiUu8EvjVTjKauBq1YxwkMZ6t0lLhlkiVhqeEnXePZL6/iMByWH/SDV21LrxGYuk a1TLLuIUeByAEktGVzqCmwg/ZgA4ye2K3wsWKxtXs/TA9z7WnUhZND50LxUNn0dtsC2LTPYfbJeyBd 282/RkTvE98V75Hw9gaXU91zoojSbeSwpQ2S0XpUNi5uD9zzlPncXIYUdnkxSNV3qJ2TBZwChz5Dn5 YFOSYKJMcPodBhk7BA27A9XCwXoUQAxZpVmSFI8jt8R86Y/s38IvjBr5qpVX+jYRBZJWofuNIYYRK1 kC/w/WXBWA6pG8JGI4/RlMOvWy5fnfiXeiFUwpDCA0so7Y4G2kDd6iKsQBH0TUrCXGENGdOCniEg1s r/QbOiLgNEgQmCh6KVSdLLrE0tfLl99ADkEvsGFvp+QmEypqlPtFZ39mOUMA== 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") Signed-off-by: Neil Armstrong Reviewed-by: Dmitry Baryshkov --- 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 d22f61772667..d88eebb32575 100644 --- a/drivers/clk/qcom/dispcc-sm8650.c +++ b/drivers/clk/qcom/dispcc-sm8650.c @@ -694,6 +694,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, }, }; @@ -708,6 +709,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 Fri Jun 21 14:01:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13707636 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 C89462BB1B for ; Fri, 21 Jun 2024 14:01:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718978511; cv=none; b=WKYZa6s2SpUvPPaeAe5mKA1IElz/ku8M5gM4V6FnntPuGuPss3xyzgg0QxNKEPKMvTeNt8CIVoZo1zX9XiuQnGI717VyPERjyd+6DePyBnTMi4MY+o84fBIMu7BezxK987T8jYDoeERGZgoKrp64eofOQ8ILUjWqlMkuaPmXotc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718978511; c=relaxed/simple; bh=4bDh7sRBhgwG5+mLbZdufXiPUuyeNa+prJH8L8Jmc14=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Uwzq8+7m4H+06VSEwmoPy6vciSjkln72c1FlTMdVbJYc8zcIfftGnfZyWbGUrSxsGb8NuuzvhRLoF9VsWZ+LHW482UvcROoo5oD3s/ZZTNm6yE+UKnYQL0Oi336GNV3AO6QO0ZfFsTQs9coY6le/lWrlocJBkJ4SyVxo7VsolLU= 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=NTBjE9yM; arc=none smtp.client-ip=209.85.128.48 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="NTBjE9yM" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-424720e73e1so17582565e9.1 for ; Fri, 21 Jun 2024 07:01:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718978508; x=1719583308; 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=K0jH/bj7Lqj0At6MAhYLJTdfQCIn+n13kr0wPP2H/nA=; b=NTBjE9yMYFAXdOTkOeSAWQrQrnC7fq00QgetNYOJyQe5irP4ghpn31ZyCqXOvCFL4S ObDXQ8oQj399inUaBSKT2JQNWzYbIkYTCJYDnrTJLk95JPxnUeT9/KP3x0S/S71X6ecR TL5nhbm6wf/AbabOKLDk99RF0w5yteHAWVSLRA7J4gfe5N+uWl6xdKKiBD34xiLD3rmh mIzhm6gYps2TlmZ10JcJiJrilMV9zn8wY0vT+2B+QriiBjz+76CCvkuvIUfzdOTx051J BseMonTLcCvDoXaa+2urq/jrONEvOjLfTWdoFd1J4Q/WFJI8uPot0wvWxCwGcXbHMMTt idyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718978508; x=1719583308; 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=K0jH/bj7Lqj0At6MAhYLJTdfQCIn+n13kr0wPP2H/nA=; b=YR0yxmQ3QDzAPD2wgGEaUScjahjwLwU7P8xDo7UscjTgb7NXsAP2CYEoOZRhEai8sv RW3saFfh1RxRTG5xvpvekDy+FqQLr86GCWv86DgHej4GRiuhG3ktYzGo5NKqjNxIxDuk /X8+XAYeqmypi+HqlSbl5PpP5eo8QhWT3K81b5SAurQPrDipDi4DtP/fFF0M2VeuAwVh bqyehCqFOiraR9OxDeiNiFjGlPqux350J9+99aRaKKwa5VwgWdnvOUG9rl+1XHGna2bi 50saVeXeu6N8wlz3tAhKS1hH/U5Z75ik1mwW69r13CN3saH41S1o3Ha5BtRbyAWoOyMv ykSw== X-Gm-Message-State: AOJu0Yy0HD29AYvuvt1MPIXPqxDcDwaa5Op8W60VyqjhRHU/PIYlnlQy hfnTuNQjWlYTZMhvIYmZuxbh3kLsAcV5HyKtPxpjFRsR4yxrS51VjU0q7dgJKQs= X-Google-Smtp-Source: AGHT+IHQhtN0geVJUd7mOt3RhAhPJ693+WAnvErRVzmUP4NSBKoEdkmKBpU+SGk0NmCnwdouZ1nXNw== X-Received: by 2002:a7b:c3cc:0:b0:422:6449:1307 with SMTP id 5b1f17b1804b1-42475296a62mr65318825e9.32.1718978507859; Fri, 21 Jun 2024 07:01:47 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-366383f6722sm1847342f8f.24.2024.06.21.07.01.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 07:01:47 -0700 (PDT) From: Neil Armstrong Date: Fri, 21 Jun 2024 16:01:18 +0200 Subject: [PATCH 5/5] clk: qcom: dispcc-sm8650: Update the GDSC wait_val fields and flags Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240621-topic-sm8650-upstream-fix-dispcc-v1-5-7b297dd9fcc1@linaro.org> References: <20240621-topic-sm8650-upstream-fix-dispcc-v1-0-7b297dd9fcc1@linaro.org> In-Reply-To: <20240621-topic-sm8650-upstream-fix-dispcc-v1-0-7b297dd9fcc1@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=1354; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=4bDh7sRBhgwG5+mLbZdufXiPUuyeNa+prJH8L8Jmc14=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBmdYfEIJAtyBOt9vpTxJ/ZTkkFM/nBTe1lGqWGLbCc PThoYZiJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZnWHxAAKCRB33NvayMhJ0TBwD/ 9IvnzqHvxjgGHvLWvkLAi1AJlRmMikHj42W+nItBO6zESHJ7quCKgo+LaDBRF7hSMmeoRClh6NVMhw SgB+6gjnOlmS0CV7Tl97EnYoKD/xUOmJGUC/arXRZ1G11R1IzYkrlgZutHTTfJ0smtKjHZDIA65iBM v5vmo1SgwfGAtWmf2dInYfz7dttvDdwUkFYz3uv83hvXAG9eTrJALX4N3yvNo+SuFlnc1b3dj/jGBk Rl7MEYy70gMN0PKwVzC5dptCL6RPTy5UxWaebb3Ww1jwcIQhFdhW6b+YI+Ta3ZNrm1RuOJ8t3hV7Ci WuzlEj2tDe/nHSMDNl7/U1xoun0zHIsvGGjfmUmEhqtkLoEuOGdn5KY/63wKG/EBjSq2MFBB8M7EZ4 gtD/gZ/VITNT9y1O1jLkFulz80l9VqQ5XnhoK7dK9W7Oi1xVL+yaPbamPxlHWE323Q6IUjGPaJRFcm HevFMPSiCgXEELadcpKlA4GOMB1GBJqh64zs8g3/1r3pEA8Sox/1FMWXhoEGfMwT4Ly46aplLB/vBG Yuvr9LxjbMBdZwm/EuTL/yU85KmITSpUXJ0haWJvmhEA+t99mDfrFyqvbBnQDUIC2YtGfP8Q54jK8X JhXXuN9izKXP8deS7RDvmbnitxkZ5vAbflt2c/2achSX2SR4/vqpbum9Vqpg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Update the GDSC wait_val fields and flags as per the default hardware values. Add the missing POLL_CFG_GDSCR flag. 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 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/dispcc-sm8650.c b/drivers/clk/qcom/dispcc-sm8650.c index d88eebb32575..2da3c11b0c3d 100644 --- a/drivers/clk/qcom/dispcc-sm8650.c +++ b/drivers/clk/qcom/dispcc-sm8650.c @@ -1604,20 +1604,26 @@ static struct clk_branch disp_cc_sleep_clk = { static struct gdsc mdss_gdsc = { .gdscr = 0x9000, + .en_rest_wait_val = 0x2, + .en_few_wait_val = 0x2, + .clk_dis_wait_val = 0xf, .pd = { .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 = { .gdscr = 0xb000, + .en_rest_wait_val = 0x2, + .en_few_wait_val = 0x2, + .clk_dis_wait_val = 0xf, .pd = { .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[] = {