Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2919179rwb; Mon, 15 Aug 2022 14:03:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR4oSu2Hfu3GC0fFTa4rKlp0YtNgcRJi5wOPoku80aXKTMoqA/ACJTTB1yfEDEJSQsimqJpm X-Received: by 2002:a17:907:9606:b0:72f:826d:21b4 with SMTP id gb6-20020a170907960600b0072f826d21b4mr11473605ejc.510.1660597422108; Mon, 15 Aug 2022 14:03:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597422; cv=none; d=google.com; s=arc-20160816; b=odOYLvjPj6E2eF9IoNaiz1oMjR2h/qDWcn5seNpC73o72KQzP0V9eTkLLnBKwck3ra HDBcmz0Z7reCL134qoqTObUtux+ODpWlxZpNcntB+XAsw/G5V/9Wh+284Vvhd0egU1oq iR0NbwuyofV1YZESYkx7eML854GkwXbmdu37qLV3HJ8ApYSef7tLuRSdlsrLLHZA/DG5 d3y9xE7SeGUw1ZPwJGN+2jw/e95qTw8FEI6xT1OW6ZAMkDA8Qbg98kI5EGGGX2Cj3X+c P4YLjkfz0H3D1ZAswd3cA7xldyIzJ600etS6u8Ji+d4OxQGSUL0/rn6YobPKAaE+/QCA JDEg== 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=9fEcwTKWdsVmo1iN0NhqcXfm6FO1g3HYAcTFYYN+AEM=; b=uzAdOpwOkUVjYY158XmoJiK0ITSv9EngnPvBySEZzdhAObHHWuKJUuPl14gmNPTX43 Sv5nl+btvrKKEz3aSCXbhfC7TPg1AbBB2+LODRRVHFWGR1ImB9sOzkON85sTrfFc46Ra By/n+PKHgFClYFPyK9qhLKHmF9uJkTvw/lYJUuo+erL8FchayI0dfa5uhBpWYxJ4WM/1 XcA0g4y/DYbTdD6oYLLQWZT6AFjXn8Na8MNdHqvt+n8FxbLRylZhIRJhjfSobxjt+5PM xOMavga8gBpD/hByooGDVU1ILHSR7ZLf2GMa4j2M2/WuC9BpY01gPI1gZAuG6PFneg6b vpcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jE4UzM3J; 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 h1-20020a0564020e8100b00443d657d8d7si1966929eda.220.2022.08.15.14.03.15; Mon, 15 Aug 2022 14:03:42 -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=jE4UzM3J; 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 S1343945AbiHOTNs (ORCPT + 99 others); Mon, 15 Aug 2022 15:13:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343709AbiHOTK2 (ORCPT ); Mon, 15 Aug 2022 15:10:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05E522D1D8; Mon, 15 Aug 2022 11:36:35 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 98A9D60FB8; Mon, 15 Aug 2022 18:36:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84CD1C433C1; Mon, 15 Aug 2022 18:36:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588594; bh=exXlSyE6+QPcILp+nxmGivamKTdZ39q0PQQr8Zupu9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jE4UzM3JyTGJ504jj4TbUoIhNPw6u59odD6woCLwfGIUhHHGKRq0E7kEBjXXEN8wu lszX1F3fGUV0+jg213OK5XAToL6kwrEUtvUbSAQ8FP6o/DVXdcfosyGj5cwt4a0Ru2 XPb1j415DnhCdA9g/u70eygLHwBgpdl9aT3Mw8S0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Robert Marko , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.15 452/779] clk: qcom: ipq8074: fix NSS port frequency tables Date: Mon, 15 Aug 2022 20:01:36 +0200 Message-Id: <20220815180356.604886648@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@linuxfoundation.org> User-Agent: quilt/0.67 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: Robert Marko [ Upstream commit 0e9e61a2815b5cd34f1b495b2d72e8127ce9b794 ] NSS port 5 and 6 frequency tables are currently broken and are causing a wide ranges of issue like 1G not working at all on port 6 or port 5 being clocked with 312 instead of 125 MHz as UNIPHY1 gets selected. So, update the frequency tables with the ones from the downstream QCA 5.4 based kernel which has already fixed this. Fixes: 7117a51ed303 ("clk: qcom: ipq8074: add NSS ethernet port clocks") Signed-off-by: Robert Marko Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220515210048.483898-3-robimarko@gmail.com Signed-off-by: Sasha Levin --- drivers/clk/qcom/gcc-ipq8074.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/clk/qcom/gcc-ipq8074.c b/drivers/clk/qcom/gcc-ipq8074.c index b4291ba53c78..f1017f2e61bd 100644 --- a/drivers/clk/qcom/gcc-ipq8074.c +++ b/drivers/clk/qcom/gcc-ipq8074.c @@ -1788,8 +1788,10 @@ static struct clk_regmap_div nss_port4_tx_div_clk_src = { static const struct freq_tbl ftbl_nss_port5_rx_clk_src[] = { F(19200000, P_XO, 1, 0, 0), F(25000000, P_UNIPHY1_RX, 12.5, 0, 0), + F(25000000, P_UNIPHY0_RX, 5, 0, 0), F(78125000, P_UNIPHY1_RX, 4, 0, 0), F(125000000, P_UNIPHY1_RX, 2.5, 0, 0), + F(125000000, P_UNIPHY0_RX, 1, 0, 0), F(156250000, P_UNIPHY1_RX, 2, 0, 0), F(312500000, P_UNIPHY1_RX, 1, 0, 0), { } @@ -1828,8 +1830,10 @@ static struct clk_regmap_div nss_port5_rx_div_clk_src = { static const struct freq_tbl ftbl_nss_port5_tx_clk_src[] = { F(19200000, P_XO, 1, 0, 0), F(25000000, P_UNIPHY1_TX, 12.5, 0, 0), + F(25000000, P_UNIPHY0_TX, 5, 0, 0), F(78125000, P_UNIPHY1_TX, 4, 0, 0), F(125000000, P_UNIPHY1_TX, 2.5, 0, 0), + F(125000000, P_UNIPHY0_TX, 1, 0, 0), F(156250000, P_UNIPHY1_TX, 2, 0, 0), F(312500000, P_UNIPHY1_TX, 1, 0, 0), { } @@ -1867,8 +1871,10 @@ static struct clk_regmap_div nss_port5_tx_div_clk_src = { static const struct freq_tbl ftbl_nss_port6_rx_clk_src[] = { F(19200000, P_XO, 1, 0, 0), + F(25000000, P_UNIPHY2_RX, 5, 0, 0), F(25000000, P_UNIPHY2_RX, 12.5, 0, 0), F(78125000, P_UNIPHY2_RX, 4, 0, 0), + F(125000000, P_UNIPHY2_RX, 1, 0, 0), F(125000000, P_UNIPHY2_RX, 2.5, 0, 0), F(156250000, P_UNIPHY2_RX, 2, 0, 0), F(312500000, P_UNIPHY2_RX, 1, 0, 0), @@ -1907,8 +1913,10 @@ static struct clk_regmap_div nss_port6_rx_div_clk_src = { static const struct freq_tbl ftbl_nss_port6_tx_clk_src[] = { F(19200000, P_XO, 1, 0, 0), + F(25000000, P_UNIPHY2_TX, 5, 0, 0), F(25000000, P_UNIPHY2_TX, 12.5, 0, 0), F(78125000, P_UNIPHY2_TX, 4, 0, 0), + F(125000000, P_UNIPHY2_TX, 1, 0, 0), F(125000000, P_UNIPHY2_TX, 2.5, 0, 0), F(156250000, P_UNIPHY2_TX, 2, 0, 0), F(312500000, P_UNIPHY2_TX, 1, 0, 0), -- 2.35.1