Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9037979pxu; Mon, 28 Dec 2020 05:07:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJyz0UqnpKJnTFW0rOL6QUZ+kBoAIoXoO9CIJ4wzW70hqoGO2RJ9g8mGOFIYJtOJ1nvG1LA8 X-Received: by 2002:a17:906:16d6:: with SMTP id t22mr41499821ejd.154.1609160822107; Mon, 28 Dec 2020 05:07:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609160822; cv=none; d=google.com; s=arc-20160816; b=OG4YIY9CDdvJLtd1DVvgY9gHF3xCZZc1BqtMYkJyd1TQbtaGsRqRW4rM0FRInVjeID VCUIzlCynYC3PdqBp5EqeyKpp9TJ0vIFfY88Jzg3WjqMx/KF7VTBD12Zp6+agBxJ6mQZ 8YSrEBAvi/9qZGYDlNR7xV7CXtKszGywXAUFzSY6chDIwAcsMAhvTzmSy26SPEy4y1vC QZY/jvo9qIp8tWOg69i/bHfskbm/Trq6+pbH136yLM/fIpJYoO43p5yu2wcpFFgHZG+7 9EzZX5HJCLubSxn8ZDz9+Ky7m8EXROuxHdLcc/mrCjbhpKbQ/D6JHpFfOVfS7btYBX6l n10Q== 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=eUsVqOOtBXZE1BfMQUkt6uujgsmKr8cCfVNzg3wvBEc=; b=no3rI2ZZpBhk+ITiCM4ipq5Pxk2uCfrrjBO24+Jz/Q30tN6fUHoMapzCDhKPq9ItnY 9CnGqQyOZPjTFt/VkzKX/xva875XUyeYCivagprqLyXRvBFrHZh7vUNtQR7X3/yyhG37 1yPl6En7N5aYW9UX3bjXFrxdlkJHkAX27eJ0bA6Tw/H6veN+DqQ6DPObyIpQBg98o9x6 eiVjgnpUG6j8nxX3w8QQbb2rkALcE4sYih2p9nAJ1mfHxleCavxBvM61MVuQU9hXR4E7 U+H4k5FU4TNILWHDf84tkC5t1XSXsZvHHJn/FECvqbmqhuiMC7zu9exOos6KNzoGnKji gWQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tEXNBDx0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hd40si19419157ejc.265.2020.12.28.05.06.37; Mon, 28 Dec 2020 05:07:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tEXNBDx0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730444AbgL1NE2 (ORCPT + 99 others); Mon, 28 Dec 2020 08:04:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:60478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730410AbgL1NEU (ORCPT ); Mon, 28 Dec 2020 08:04:20 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B1F07206ED; Mon, 28 Dec 2020 13:03:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609160619; bh=cB6GxS2x63pOn/MpzovqZPI8ZneqZuI20R/cGwPS+38=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tEXNBDx0Yq6WgbgndPqIMnBZdtv36dO1cMFIaVqti4hydS9bEP6GJoqDTZFSYg/SE qy9Lx1ZhHIX3Pv6FAkkwFbLwG8IdsCMjav8okgCQewMVPFw3/2gu+1hjC+8vYCWpO+ xqHWuVH7aAaGdr2+FOrnxu0WcA9cmWRkjhfdJQOw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Osipenko , Thierry Reding , Stephen Boyd , Sasha Levin Subject: [PATCH 4.9 112/175] clk: tegra: Fix duplicated SE clock entry Date: Mon, 28 Dec 2020 13:49:25 +0100 Message-Id: <20201228124858.683750287@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124853.216621466@linuxfoundation.org> References: <20201228124853.216621466@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dmitry Osipenko [ Upstream commit 5bf5861d6ea6c3f4b38fc8fda2062b2dc44ac63d ] The periph_clks[] array contains duplicated entry for Security Engine clock which was meant to be defined for T210, but it wasn't added properly. This patch corrects the T210 SE entry and fixes the following error message on T114/T124: "Tegra clk 127: register failed with -17". Fixes: dc37fec48314 ("clk: tegra: periph: Add new periph clks and muxes for Tegra210") Tested-by Nicolas Chauvet Reported-by Nicolas Chauvet Signed-off-by: Dmitry Osipenko Link: https://lore.kernel.org/r/20201025224212.7790-1-digetx@gmail.com Acked-by: Thierry Reding Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/tegra/clk-id.h | 1 + drivers/clk/tegra/clk-tegra-periph.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/tegra/clk-id.h b/drivers/clk/tegra/clk-id.h index 5738635c52741..9f8397c696e6c 100644 --- a/drivers/clk/tegra/clk-id.h +++ b/drivers/clk/tegra/clk-id.h @@ -233,6 +233,7 @@ enum clk_id { tegra_clk_sdmmc4_8, tegra_clk_sdmmc4_9, tegra_clk_se, + tegra_clk_se_10, tegra_clk_soc_therm, tegra_clk_soc_therm_8, tegra_clk_sor0, diff --git a/drivers/clk/tegra/clk-tegra-periph.c b/drivers/clk/tegra/clk-tegra-periph.c index d9c1f229c644b..bf88f90e6c438 100644 --- a/drivers/clk/tegra/clk-tegra-periph.c +++ b/drivers/clk/tegra/clk-tegra-periph.c @@ -648,7 +648,7 @@ static struct tegra_periph_init_data periph_clks[] = { INT8("host1x", mux_pllm_pllc2_c_c3_pllp_plla, CLK_SOURCE_HOST1X, 28, 0, tegra_clk_host1x_8), INT8("host1x", mux_pllc4_out1_pllc_pllc4_out2_pllp_clkm_plla_pllc4_out0, CLK_SOURCE_HOST1X, 28, 0, tegra_clk_host1x_9), INT8("se", mux_pllp_pllc2_c_c3_pllm_clkm, CLK_SOURCE_SE, 127, TEGRA_PERIPH_ON_APB, tegra_clk_se), - INT8("se", mux_pllp_pllc2_c_c3_clkm, CLK_SOURCE_SE, 127, TEGRA_PERIPH_ON_APB, tegra_clk_se), + INT8("se", mux_pllp_pllc2_c_c3_clkm, CLK_SOURCE_SE, 127, TEGRA_PERIPH_ON_APB, tegra_clk_se_10), INT8("2d", mux_pllm_pllc2_c_c3_pllp_plla, CLK_SOURCE_2D, 21, 0, tegra_clk_gr2d_8), INT8("3d", mux_pllm_pllc2_c_c3_pllp_plla, CLK_SOURCE_3D, 24, 0, tegra_clk_gr3d_8), INT8("vic03", mux_pllm_pllc_pllp_plla_pllc2_c3_clkm, CLK_SOURCE_VIC03, 178, 0, tegra_clk_vic03), -- 2.27.0