From patchwork Wed Apr 12 14:53:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 82524 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp404071vqo; Wed, 12 Apr 2023 08:15:04 -0700 (PDT) X-Google-Smtp-Source: AKy350ZgU7xJ2eO4L/Hjos9fpLd3DoGxRpwx3L6L54wFVKbnm14LQK1jxi568lcEY9S31ONFrtOn X-Received: by 2002:a62:3815:0:b0:63a:b1ab:79a5 with SMTP id f21-20020a623815000000b0063ab1ab79a5mr8526228pfa.18.1681312503710; Wed, 12 Apr 2023 08:15:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681312503; cv=none; d=google.com; s=arc-20160816; b=u8tsxmSbXUREnv0k/1nMicL7bAJi3jUutw7ph6MNh3lbZUM2n4aaCRWChRt2otRXSP +fyyM6clECPI5p7mZPTjeUbnkCC9TEdmaNUm8/rqmnpG1Wcj0FwiTghC3XAmrJsIw7sv uwXa29fXvLhWZAQqzGVr7x/mljCXRKvgYCs5qoYftfTo3Y25Qb8avocwMpxX/cq0MXLE 3hRn9uIP28IucKkhzzazYijVarlUiT5RURT/IHu13Vvmu8/HDM53PYtEd3jX7m2fL46B bpa8mn/mNs4ZybnICITUVjBg9hAe3Ajr8aKHixQBcbZPFMyHGhCrFCfxdMAqtXPsHFJW oWgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=QcBUTwrPn98Ub9uNAVdB99KXgqzNGzqHRdwuVwi4QY0=; b=pxmO3kabfXjuieFjitKttGlSnegtThqbCf47J0UegLtQCKidwnaj8YRqlw/dCeM8RO /y1AQfsgg2zy8v4VgU2DZz1+mbNw4p/GvRg36OSKoOC8kHzzdDTjSpgX43oTG8L2km6B u+7YiUU3FYQVVw5ZhSucpMfNipmvnR8P8/NSyCDP7rv9mNXqN6y14VGw5Ll7bINM1iAc xrB/mAbC8rvWYGIFKpSaeWw87gWhUZRB2tSUz5C1V3aAZNE81Apw1Hwe8W9J+AXdVumw CuwnBisUgfZ0+U845ofPNPRzxPq6pnMJi8WZWo610sQ6hkQONJb81jR89Cs82AkYnfFs 8mOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FTE84kV8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r11-20020aa79ecb000000b00639cb36bb82si6890093pfq.362.2023.04.12.08.14.50; Wed, 12 Apr 2023 08:15:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FTE84kV8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230253AbjDLOxh (ORCPT + 99 others); Wed, 12 Apr 2023 10:53:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230081AbjDLOxU (ORCPT ); Wed, 12 Apr 2023 10:53:20 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01B3A6E88 for ; Wed, 12 Apr 2023 07:53:18 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id z8so16885842lfb.12 for ; Wed, 12 Apr 2023 07:53:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681311196; x=1683903196; 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=QcBUTwrPn98Ub9uNAVdB99KXgqzNGzqHRdwuVwi4QY0=; b=FTE84kV8JcYu5Uc3XNq6UbkUo6STYOeJDee4Oi0FFI5g2B7rq+su2i53iiAZCi/zoY MA9UvPc0qtcz7w/pihTBVcZIW88OHfX89fkJyribV8Qc3k3NkO4Vizs2sQ4v8XLHnS+k zpwIjJtXmBl6T4/73l56oUYq+9eNpd72crloZ9lyi/yGMFrgItAt1NSSFpTg7wk4cXgp v5CMMJhj17eNhCX/UknNx2b4UrT/kfXkoaRoxKT+X4dd8YWF4QX5K27Olhc3PEM/s99M pVKxRZ+H/TceYszlcwcOn9M2mzH4CdRUz9DTxD+XYCn36cnBgwMg2diHxsiWFC47+bKN NGFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681311196; x=1683903196; 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=QcBUTwrPn98Ub9uNAVdB99KXgqzNGzqHRdwuVwi4QY0=; b=73OnbvCEL6nm9p61gSmQEcNDrQdgimenRXZpaar4gAM8/fO0uLA+rS3E1uFal6yJfL b8iakEzIEqrKeSCgiG6o7mFrTKwEDqhTSKBhkp4G31RPfRpVKgN10aXK15RU+sMt7N8r jD2W7bNaSkH5Arg3ZF9xDN7yF/k+/DV/CMbuiAr19edTugumpd1mCu3/gZxc1mO2Ga6+ cVlc99UPC6rwT9DXrIKtjGTbiZ7mMUM+vu5XEH7/e1j5D9Fah4WvMepSaygGPvplpIGD AcxnM1NaAXIOwXzROBklr8ZHZf6OIdz8T/1HfNwk3oy+LvXxvaBKvRggRYjloJkpaZD8 AN6w== X-Gm-Message-State: AAQBX9c1dBORKOPHY6oeF+warD1vhwk0FyVoLpapoWBHPiA+3sQUiKU4 zno+Aw+sUAadWoOJKcqoZn5r8fssxeaJXBjh85E= X-Received: by 2002:ac2:51a6:0:b0:4ea:f8f0:545f with SMTP id f6-20020ac251a6000000b004eaf8f0545fmr3831047lfk.52.1681311196306; Wed, 12 Apr 2023 07:53:16 -0700 (PDT) Received: from [192.168.1.101] (abxj23.neoplus.adsl.tpnet.pl. [83.9.3.23]) by smtp.gmail.com with ESMTPSA id w5-20020ac24425000000b004e95f1c9e7dsm3015367lfl.78.2023.04.12.07.53.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 07:53:16 -0700 (PDT) From: Konrad Dybcio Date: Wed, 12 Apr 2023 16:53:07 +0200 Subject: [PATCH 3/3] clk: qcom: dispcc-qcm2290: Fix GPLL0_OUT_DIV handling MIME-Version: 1.0 Message-Id: <20230412-topic-qcm_dispcc-v1-3-bf2989a75ae4@linaro.org> References: <20230412-topic-qcm_dispcc-v1-0-bf2989a75ae4@linaro.org> In-Reply-To: <20230412-topic-qcm_dispcc-v1-0-bf2989a75ae4@linaro.org> To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Loic Poulain Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1681311191; l=1435; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=0ujSVRUiOXtdaFduY1BUwp/tKHCvG84AuQ805mYqR5c=; b=44aZNte1QZmDbZwJffhUosLZ1SYc+AmEHM4NinljzKhiUgke/oDbeX8sOLmZe9criHLgNua6QdwX 8qWTpd6eB7m8nPI7tqzUdpkW24oZmgUlAkzIOqi40/UYZQ6lt7KM X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762983939881004437?= X-GMAIL-MSGID: =?utf-8?q?1762983939881004437?= GPLL0_OUT_DIV was previously shoved in under the name of its undivided sibling in parent_map_2. Resolve it. Fixes: cc517ea3333f ("clk: qcom: Add display clock controller driver for QCM2290") Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/dispcc-qcm2290.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/clk/qcom/dispcc-qcm2290.c b/drivers/clk/qcom/dispcc-qcm2290.c index ee62aca4e5bb..44dd5cfcc150 100644 --- a/drivers/clk/qcom/dispcc-qcm2290.c +++ b/drivers/clk/qcom/dispcc-qcm2290.c @@ -28,6 +28,7 @@ enum { P_DISP_CC_PLL0_OUT_MAIN, P_DSI0_PHY_PLL_OUT_BYTECLK, P_DSI0_PHY_PLL_OUT_DSICLK, + P_GPLL0_OUT_DIV, P_GPLL0_OUT_MAIN, P_SLEEP_CLK, }; @@ -84,7 +85,7 @@ static const struct clk_parent_data disp_cc_parent_data_1[] = { static const struct parent_map disp_cc_parent_map_2[] = { { P_BI_TCXO_AO, 0 }, - { P_GPLL0_OUT_MAIN, 4 }, + { P_GPLL0_OUT_DIV, 4 }, }; static const struct clk_parent_data disp_cc_parent_data_2[] = { @@ -153,8 +154,8 @@ static struct clk_regmap_div disp_cc_mdss_byte0_div_clk_src = { static const struct freq_tbl ftbl_disp_cc_mdss_ahb_clk_src[] = { F(19200000, P_BI_TCXO_AO, 1, 0, 0), - F(37500000, P_GPLL0_OUT_MAIN, 8, 0, 0), - F(75000000, P_GPLL0_OUT_MAIN, 4, 0, 0), + F(37500000, P_GPLL0_OUT_DIV, 8, 0, 0), + F(75000000, P_GPLL0_OUT_DIV, 4, 0, 0), { } };