Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp663421pxb; Tue, 5 Apr 2022 17:50:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8wW+VmBgSknJZ8zKeP0yHqmYeyOEnj3sxgtyKhVlg8Cgxti+XgkCwAMV+3d0g1ey9iFBm X-Received: by 2002:a17:907:1c9f:b0:6df:eb80:3581 with SMTP id nb31-20020a1709071c9f00b006dfeb803581mr5913193ejc.198.1649206252447; Tue, 05 Apr 2022 17:50:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649206252; cv=none; d=google.com; s=arc-20160816; b=VLMRzV2reT56H67mDzCOq3yPPZFQq72M3yE2+V1n56hXCV8QsZp8G7092h9/ctPoxm EPIO39ISXBGqzTmsFrutnbaOV3CPpBWbYHGKW71zjwOGoVgN+D3KeV4QhCGjukusXR7/ bBpp2+7zOG7SeltwRe4yQ5Dgc2b5Po2rzPz5P3kFJrDnxN6bIcLGm08J4XPH5ROuX+92 0t4wkTq+6r70V7kb1l9/4toad3Kxhqw1eObXTcGU/AoB/zCn71K5t2ET8DdKAkfpkGJn ttulTIlkEWR6QhC+kqrHLhCZHb52mhHKbag/X3Nd0g84poju/cHjUnSusYCVXEmrA2hr Z+Ww== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DWkKiZinji3aX/HWx8G8Hoi2Cp+Mp4AsKQdfUiAytHc=; b=jE2LDXE98HlFpmuPHFqbx/us7WogxgETf3S3dvWMmcNS/h3idlFHmGGw5lLzlRUhD4 ZiSl+COlLxmBV0/prwpehN0HUwO475ciGHIL7f/hRTrZott4DwfRiqtivqnccwoPsBTx U+pqEsnlPBVzdtmdlfUyKrArK2iIR/EQL7hEStYpyS9s1gerLdui5911bLcug0t2qTjV SQhkzVU0Up2hTpyy8kti9vGxTh9uaPsiG6JtjPcJ3KLIyP3XPuQffiOT/ZNZ3GTa2VZy 4AnPHmBZojJeAfZrwfInY86oBa/LV0CWrVppK2kproaW+jCLWfs1KYqZzScXYZGXutsd 5bgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tE++zjri; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q26-20020a170906a09a00b006df76385ea7si9722350ejy.839.2022.04.05.17.50.27; Tue, 05 Apr 2022 17:50:52 -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=@linuxfoundation.org header.s=korg header.b=tE++zjri; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357630AbiDENIw (ORCPT + 99 others); Tue, 5 Apr 2022 09:08:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344125AbiDEJSS (ORCPT ); Tue, 5 Apr 2022 05:18:18 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13672381A6; Tue, 5 Apr 2022 02:04:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C1F1EB81B75; Tue, 5 Apr 2022 09:04:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 285BCC385A3; Tue, 5 Apr 2022 09:04:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649149456; bh=IyvszfkDkm6hI3tAPv+IVXNBSOMINnf8lFK83KPg6kA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tE++zjriN/TTcOsPEHA5nA2XaH2jQ+pzTOlBbO/MwRXo/RA/7j/KVq68CRsytyHPE jhz05znvDiZhQp61EyZIA9MFgugEum6PZjstBTvKCkLPl/nJXs2bGAFIY7eQRiv5kA qQDHyBITcWjiotgYc8RqxpMmTfrpzr+uUOhiFyX4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Konrad Dybcio , Petr Vorel , Stephen Boyd , Sasha Levin Subject: [PATCH 5.16 0722/1017] clk: qcom: gcc-msm8994: Fix gpll4 width Date: Tue, 5 Apr 2022 09:27:15 +0200 Message-Id: <20220405070415.698257143@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Konrad Dybcio [ Upstream commit 71021db1c532c2545ae53b9ee85b37b7154f51d4 ] The gpll4 postdiv is actually a div4, so make sure that Linux is aware of this. This fixes the following error messages: mmc1: Card appears overclocked; req 200000000 Hz, actual 343999999 Hz 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 Link: https://lore.kernel.org/r/20220319174940.341137-1-konrad.dybcio@somainline.org Tested-by: Petr Vorel Reviewed-by: Petr Vorel Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- 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 5df9f1ead48e..4a9eb845b050 100644 --- a/drivers/clk/qcom/gcc-msm8994.c +++ b/drivers/clk/qcom/gcc-msm8994.c @@ -76,6 +76,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.34.1