Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9110420pxu; Mon, 28 Dec 2020 06:55:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhKZvNw67sMwRIGACFPsl5BLCa8aH+C0MZgECtQ6UidW55qdagcePlBAvKCIJXF7G+5Hqc X-Received: by 2002:a17:906:fb1a:: with SMTP id lz26mr41679206ejb.194.1609167307123; Mon, 28 Dec 2020 06:55:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609167307; cv=none; d=google.com; s=arc-20160816; b=TEGhXjgc148ktN6VhWiCtdwoAjfb51MTCIye2GOO9JjU5muvGDR/kJNsKoIvr5nisU 4P+p3BWWgOBuZqlbZjCRMMNjOe/rH0rgesgRYV8OxJHQDjog9D0LAmYtoKDPGuomEReQ fhajgVL1nd1rvFrGnQWU+hZZFM6xc/QmVbFAMSyXiKUy1LLTSPigw+oI5iHu78XhUFsX JAHIK3TZDZNfawx6JL1YxcdsELMQQNlhpITzIBSyurdEVFJoCYDIm2cJuEhgVB60Ou0l /Z0Bm6VGOy6kqZtRI34bZGvrOlKz4A47DmW3XMYYur9QYH4tWnE7nhDqECg24XX2RWk1 0GKQ== 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=nNVDFrmyu4Z4nTyqCG4jh6efnhiW98v9zSIEmRrYl/4=; b=pj3HV5jt+3uXsmXTJsfBcpcB8d2uHkzn711tKRQv2DzwnX4JsDTHu57BKsbJLzCV9g Q4M12Oaxt0LcudYL075Enodjvt/hlSiQxoRPkT6yfETUkhOLZV+j8470LN8GsAMueeCZ mVNj5HTXSt+mQI8iE1NhFMMKyLtCLW7fkcFADQNUO7Lcu7ACfYeXs2OsuguPTrxApk+x Y45HCWbh7gFWD04iTNGjneS7ChirgmViRgzkGSnQJSgJv45kjiy1uBeoam6SUOpGv7YG NX5razw4lGMatb/eEGpiEUjdNBm2fVHq3NI8AauPHD9N6Do2zm7gooibJoLEMIkBcBeP CuMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eIBqEaeA; 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 hj15si19268392ejb.734.2020.12.28.06.54.44; Mon, 28 Dec 2020 06:55:07 -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=eIBqEaeA; 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 S2502052AbgL1OS6 (ORCPT + 99 others); Mon, 28 Dec 2020 09:18:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:54020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391868AbgL1OSw (ORCPT ); Mon, 28 Dec 2020 09:18:52 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9563922573; Mon, 28 Dec 2020 14:18:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165092; bh=17o2/p10oa9yjBrY7dXRV74qBpYP5pz8IQOtbq6lqeI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eIBqEaeAiOklgedGywhLKTip+RFtl0MWLO6ZE7nHSbVgspYJtrvSYPxpVg/yix37r 8AnKmhZOLan6nEcMU62zPzFK3QV8hY+EqBVsp8SI6K/J3na2rFHI6xuFuHsfLhvCxd bMS9MamgLsvpdmE/fOV+tX4sa2tr4XvdqIFf/tjQ= 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 5.10 407/717] clk: tegra: Fix duplicated SE clock entry Date: Mon, 28 Dec 2020 13:46:45 +0100 Message-Id: <20201228125040.486318339@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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 ff7da2d3e94d8..24413812ec5b6 100644 --- a/drivers/clk/tegra/clk-id.h +++ b/drivers/clk/tegra/clk-id.h @@ -227,6 +227,7 @@ enum clk_id { tegra_clk_sdmmc4, tegra_clk_sdmmc4_8, 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 2b2a3b81c16ba..60cc34f90cb9b 100644 --- a/drivers/clk/tegra/clk-tegra-periph.c +++ b/drivers/clk/tegra/clk-tegra-periph.c @@ -630,7 +630,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