Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9044961pxu; Mon, 28 Dec 2020 05:17:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzW4QPl5zGfOW9j7vsvri5VyotGNj37c2DW3bqeoa/AH4YCnkEqevbOhYKImNUe7iBTknrY X-Received: by 2002:aa7:d41a:: with SMTP id z26mr38767780edq.267.1609161442262; Mon, 28 Dec 2020 05:17:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609161442; cv=none; d=google.com; s=arc-20160816; b=tqB4qOp6ZaQswcX27gEBlD28CCAc5qyYZ7fdBQfZ3PXbGYNo0VmjNV36jqBKeeecod 6KCIVC7LCQxH7Ljt+539XNV7HL1pQ8pRa39WKrUpHxlgR1tpIhoNSrgk23aF0yZwm0ne 0eq26K2dWVCUPkWAz8XK3zIOB8pZS+suXfJSjygpJrwYsddSeuhbBq1GFjF9LnkAwmW2 LF3ckx9ayzYHFxEHA+fHi+CBUWBPxQ9894pH8GErhLuCFbNFiNMnA8Ou+0hy5KGTl5JK nErhoGdQgJEtstnFOZU5uM3splIKDL8wxlZcy64+NG/zvgmOC00ssiIQ4YuRgAvumYoo olDg== 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=noBj5vCjvO2HE+QfYFOaVsnfM+zV0Xql9Xwr8khuK60=; b=FBtz+OAqX0U5o4OXo/V5wkkDrVcU8DOsnazDAF8JNcVGwVMrhQKc7d3MHesPSOKiex lpvV1mrSaS1tL9CLi/lzZrFSR3hRSeDEKxcNVrSzf2AdAoKmtjYJYJIkBihh3wBE2L0R 2uhkhs7vMvNS8WIL2b1ncGZhDjDkCvATu4XGiCEHFswcDpYlkoyXEIVTcqTg3vy4ERP1 ndRBhTa6WyKHIM3QifvabnIE2AJSYdY1vDXWnStWLkYfN+Du+S9ar6GFJf9Qf9EqBWqg X2fKYVcHxSmjL8geyL3ZP1rI+gn2DFK4Nt+bgLZtGCkD7WaPNQsIErnqd/frCTCrOaIc UZKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aNCVI2gi; 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 35si21359640edm.126.2020.12.28.05.16.59; Mon, 28 Dec 2020 05:17:22 -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=aNCVI2gi; 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 S1732614AbgL1NPF (ORCPT + 99 others); Mon, 28 Dec 2020 08:15:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:43156 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732583AbgL1NPD (ORCPT ); Mon, 28 Dec 2020 08:15:03 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B735121D94; Mon, 28 Dec 2020 13:14:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161262; bh=MWHurgC4BsjA3NwXuu2el1M+mmAGPR9FK+lcdwXIh34=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aNCVI2gixB3QJGeKf8N6KzXJKSublqom63H+8ZgSX83kjQjaVp2t/w8BxR01i9LjS Jn4YEG/ZVgC575zF4O0B7iiFP8JDh4hAhHYgaPUnjSZ44YkECfuc2QmxFy9joBBY4p h/wlhFJ9hnyo+ylVJw9IUqJTmE57b03FJxSNEpao= 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.14 156/242] clk: tegra: Fix duplicated SE clock entry Date: Mon, 28 Dec 2020 13:49:21 +0100 Message-Id: <20201228124912.384579194@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@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 11ee5f9ce99e1..4374e4a6b5be5 100644 --- a/drivers/clk/tegra/clk-id.h +++ b/drivers/clk/tegra/clk-id.h @@ -234,6 +234,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 d300a256fcacb..ca0735dc70ece 100644 --- a/drivers/clk/tegra/clk-tegra-periph.c +++ b/drivers/clk/tegra/clk-tegra-periph.c @@ -673,7 +673,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