Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23C41C433E0 for ; Tue, 5 Jan 2021 10:06:56 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CB58D224F9 for ; Tue, 5 Jan 2021 10:06:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CB58D224F9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=BCWF7eVGuTk+sh65YtOMVMqhk6fg0A7W2ByzqP1mZKw=; b=gX69B++736fFd2CZjfxszkAry 57t5ghQv+tBjepQz3BTON2dPLL3jWPekb+pCh0xWn6dkeHXmclEXLP8MNph4XDN+F9kJ3056x2GwV zMzSb8gqwExt3GKstoIbxFwFAVX3q9MeNjfqCks6pp3LZw6fhdzM0WhgXODFu1u9F3l9VOfvz74QQ 3WvMc9OohnQcargQFx6oDtMG3OHzyO3UWygBvD0MUj56ACFtIt0TRqStIcAf+rrOMQov6hat7TJNs b64SvwXBbwRntJp4RRW9wN9lCgnBCr1+CUFZRtBZLK6L7E/WKC/6p3uBP3/jMwFjpi9PfeDzscY0N Yf+cWMh3A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwjD5-0004yH-9e; Tue, 05 Jan 2021 10:05:03 +0000 Received: from mickerik.phytec.de ([195.145.39.210]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwjCx-0004xc-L4 for linux-arm-kernel@lists.infradead.org; Tue, 05 Jan 2021 10:04:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a1; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1609841092; x=1612433092; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=LEdsrqXnp7mLQ/sPujQIr5GfitCg3PGt/ATCVa4gB0Y=; b=pvZpi2gtuC7zYTU05PSewchv1LMv41/kXdpufMQN+bdxIWZtvjA9erAPcdPr6iFX pif22LTPK148Z10xRD8pqV+RBa46ihkGTApISvAqjRgNFk8mGPhi2r6xegpBppn2 ut1+6BdmNPj2vLuJBldrPM9XBtdXtDGu372c5K2W6fg=; X-AuditID: c39127d2-0c7b670000001c86-a9-5ff439c4147d Received: from Florix.phytec.de (florix.phytec.de [172.16.0.118]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 53.C2.07302.4C934FF5; Tue, 5 Jan 2021 11:04:52 +0100 (CET) Received: from [172.16.21.49] (172.16.0.116) by Florix.phytec.de (172.16.0.118) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Tue, 5 Jan 2021 11:04:51 +0100 Subject: Re: [PATCH 1/2] ARM: mach-imx: imx6ul: Print SOC revision on boot and set system_rev To: Shawn Guo References: <1606151291-288303-1-git-send-email-r.karszniewicz@phytec.de> <20210105013118.GE4142@dragon> From: Robert Karszniewicz Message-ID: Date: Tue, 5 Jan 2021 11:04:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20210105013118.GE4142@dragon> Content-Language: en-US X-Originating-IP: [172.16.0.116] X-ClientProxiedBy: Florix.phytec.de (172.16.0.118) To Florix.phytec.de (172.16.0.118) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpjkeLIzCtJLcpLzFFi42JZI8BQpnvE8ku8wZN9/BbbZyZbPLzqb7Fq 6k4Wi02Pr7FadP1ayWxxaOpeRosfq76wWvzdvonF4sUWcQdOj8vXLjJ77Jx1l91j06pONo/N S+o9Nr7bweTR/9cggC2KyyYlNSezLLVI3y6BK2P/vedsBd/5Ko4u38fYwDifp4uRk0NCwETi zY1b7F2MXBxCAsuYJDY+/cAI4dxjlDj8upEVpEpYIF7i0rQvbCC2iICyxKmNfWAdzAIvmCQW rmtkBEkICWRJ3Ou/CWazAY3d3XyLGcTmFbCR2H+0k6WLkYODRUBFYtXsYpCwqECERGtfJ1SJ oMTJmU9YQGxOAW2JOacmgu1iFrCQmDn/PCOELS5x68l8JghbXmL72znMEGtVJU63vWaC+EZB Yu7vicwQdrjEvN+z2CcwCs9CsmIWkrGzkIydhWTsAkaWVYxCuZnJ2alFmdl6BRmVJanJeimp mxiBcXV4ovqlHYx9czwOMTJxMB5ilOBgVhLhrbjwIV6INyWxsiq1KD++qDQntfgQozQHi5I4 7wbekjAhgfTEktTs1NSC1CKYLBMHp1QDY1v3pJWM0lInhDJyjPVNmHZ7TvBfkTFv/cG5jtOP Xr69dkK6PYPs/bXLCq0cnDZNSbiXc8pbODH7j/+G5DyTJasrndcFSivX/174Qon9TMa/Mt3o Rrv/NsdSrq8q1jMtC9HPcJa8XcHVd+LM77WpnAyXp78VWLnmTE/vrimRXFONTH9OmnHLSoml OCPRUIu5qDgRAOlsaqqZAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210105_050455_912619_F8EA90AD X-CRM114-Status: GOOD ( 21.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , Stefan Riedmueller , Anson Huang , Sascha Hauer , Russell King , NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 1/5/21 2:31 AM, Shawn Guo wrote: > On Mon, Nov 23, 2020 at 06:08:10PM +0100, Robert Karszniewicz wrote: >> From: Stefan Riedmueller >> >> Add the print of the CPU type and SOC revision during boot and also set >> the system_rev variable to the SOC revision so the correct SOC revision >> will be shown in /proc/cpuinfo. >> >> Signed-off-by: Stefan Riedmueller >> Signed-off-by: Robert Karszniewicz > > Considering we already have /sys/devices/soc0 providing these > information, I do not this change is really necessary. Yes, I became aware of that, that's why I sent another patch which only prints the SOC revision: [PATCH] ARM: mach-imx: imx6ul: Print SOC revision on boot http://lists.infradead.org/pipermail/linux-arm-kernel/2020-December/624994.html Thanks. > > Shawn > >> --- >> arch/arm/mach-imx/mach-imx6ul.c | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/arch/arm/mach-imx/mach-imx6ul.c b/arch/arm/mach-imx/mach-imx6ul.c >> index e018e716735f..9c92cc72b857 100644 >> --- a/arch/arm/mach-imx/mach-imx6ul.c >> +++ b/arch/arm/mach-imx/mach-imx6ul.c >> @@ -11,9 +11,11 @@ >> #include >> #include >> #include >> +#include >> >> #include "common.h" >> #include "cpuidle.h" >> +#include "hardware.h" >> >> static void __init imx6ul_enet_clk_init(void) >> { >> @@ -55,6 +57,10 @@ static inline void imx6ul_enet_init(void) >> >> static void __init imx6ul_init_machine(void) >> { >> + system_rev = imx_get_soc_revision(); >> + imx_print_silicon_rev(cpu_is_imx6ull() ? "i.MX6ULL" : "i.MX6UL", >> + system_rev); >> + >> of_platform_default_populate(NULL, NULL, NULL); >> imx6ul_enet_init(); >> imx_anatop_init(); >> -- >> 2.7.4 >> _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel