Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2267566pxp; Mon, 21 Mar 2022 15:24:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZOmSWP2m9O3Jb5eRi1/DEDVo/sYYgcqbcLFbABdVKEtGnCZmvJNy/2xk2/c+oONznVVTV X-Received: by 2002:a05:6a00:1f08:b0:4fa:8a47:cf35 with SMTP id be8-20020a056a001f0800b004fa8a47cf35mr11616715pfb.22.1647901462576; Mon, 21 Mar 2022 15:24:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647901462; cv=none; d=google.com; s=arc-20160816; b=byYwK+0hXasVfBrQulJT5U8HYcAztkhpb280nBrYWLfLnePT/+PtyNJac1QxJKU7zw e39hxH2g0Pepgcr+0658GJmPtFLHN/WmA31Fn7Ff/1klIuRNMSWNK8fEU2kJAOMj88EY 3v1KH7/PbJY/JQfipyA7ZCF+Ct3Drm/Xp7MeCGIBIMDDE1KcE76eU4RD91xMUMXJg46O ZGIUCXiypUEObn+cB7towUfLjOjznSbdmTELjxV7qSvKptuxSTldspxoulKUDGcUxPQ+ p6Gd186CQPAqurPEmZEaTcSP4xKAAsG6UgcHV+0uOodNo8LJt1Wyiedn3Zw5o2MDf7pf gYnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=cBsMhTXsnT7Iw614Y1gRne4Qe3qy2TPJSvPbmeG1KVk=; b=NfH2S137pPaDuJi5LEJ+ENX0/ZKZ619ITmo9v9nVSeTP6eAqhJzpsdJSfwEiTEyYNl eWa9C/L193Cumz1jmFQr1L4h1r4gbW1YGXkKy1ZNvtPJIY9Q+yF1xMXn0OCitpHj425U fc6B8m/2gaaENI6mprnhtpHkOPzxWAWRN88w+plE/AHDnswPhzpMa7FTq/t3to77Celx awH/GBt52yJrDKTLDAEgfLpfTbXujGi7EGYALeQWnbYQ01RIZp2ygiZoBEKm+MG3o/iv sr9FwY1qabSsrj63WeP1IxwKbSY81v7bJCDahWN6ES7q1mKREXveB6XmRz2tomD4pfCf DoAg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s14-20020a17090302ce00b00153b2d16604si6886503plk.524.2022.03.21.15.24.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:24:22 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4A0AE3997E5; Mon, 21 Mar 2022 14:40:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231423AbiCSRvg (ORCPT + 99 others); Sat, 19 Mar 2022 13:51:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231363AbiCSRvf (ORCPT ); Sat, 19 Mar 2022 13:51:35 -0400 Received: from relay07.th.seeweb.it (relay07.th.seeweb.it [5.144.164.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 300874DF44 for ; Sat, 19 Mar 2022 10:50:12 -0700 (PDT) Received: from localhost.localdomain (abxi119.neoplus.adsl.tpnet.pl [83.9.2.119]) by m-r2.th.seeweb.it (Postfix) with ESMTPA id 3C8363F655; Sat, 19 Mar 2022 18:50:10 +0100 (CET) From: Konrad Dybcio To: ~postmarketos/upstreaming@lists.sr.ht Cc: martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, jamipkettunen@somainline.org, Konrad Dybcio , Petr Vorel , Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , =?UTF-8?q?Bastian=20K=C3=B6cher?= , Jeremy McNicoll , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: qcom: gcc-msm8994: Fix gpll4 width Date: Sat, 19 Mar 2022 18:49:40 +0100 Message-Id: <20220319174940.341137-1-konrad.dybcio@somainline.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 The gpll4 postdiv is actually a div4, so make sure that Linux is aware of this. This fixes the following error messages: [ 0.804491] mmc1: Card appears overclocked; req 200000000 Hz, actual 343999999 Hz [ 0.805057] mmc1: Card appears overclocked; req 400000000 Hz, actual 687999999 Hz Fixes: aec89f78cf01 ("clk: qcom: Add support for msm8994 global clock controller") Signed-off-by: Konrad Dybcio --- Cc: Petr Vorel drivers/clk/qcom/gcc-msm8994.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/qcom/gcc-msm8994.c b/drivers/clk/qcom/gcc-msm8994.c index f09499999eb3..6b702cdacbf2 100644 --- a/drivers/clk/qcom/gcc-msm8994.c +++ b/drivers/clk/qcom/gcc-msm8994.c @@ -77,6 +77,7 @@ static struct clk_alpha_pll gpll4_early = { static struct clk_alpha_pll_postdiv gpll4 = { .offset = 0x1dc0, + .width = 4, .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT], .clkr.hw.init = &(struct clk_init_data){ .name = "gpll4", -- 2.35.1