Received: by 10.223.185.116 with SMTP id b49csp1072671wrg; Fri, 23 Feb 2018 11:25:14 -0800 (PST) X-Google-Smtp-Source: AH8x227tvhlIGyE7oWVDsg6TCtJO4IL0Wj6Ma8pmJLO4W93n+WnZ6U/WmMPT47Ov6RCW0dP6PT11 X-Received: by 10.98.33.4 with SMTP id h4mr2746338pfh.144.1519413914779; Fri, 23 Feb 2018 11:25:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519413914; cv=none; d=google.com; s=arc-20160816; b=NqLGdVn8/FE9Pg+k82F1sl1Sbj1fZhsviUgKJX/J8+0nyoaqAe552qtnFK1Wrcgn7Z YXFu30NhFI/oG+REgIrzGOutAzHebTSxqJ3OQgPut1LHn0zk8Ovfk2OV7CTdx9tVKcPD deFx1NqxEd9UvBmC60YNc7hKbrc/Fm+le9n+VIoBEHUIpcW0MaBerL3b/sQmFaI8USeE kGg/a9c1E6jgPQZJlFERRljeB4rOiU03EC7TrTMg+QqXYhe+X3H+VTVJnEbiBdWuOCPF 9nyYACTUM0JwRC5C5Z3OangoBXMH3X6kMGphhAnGSAK7SU5Tb0buzBZcftL5BxUPCnDK db6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=w0pKJ62YQFrz3UNu7TV+fzrrf62/lT4I6ArVbN7cvmg=; b=Cop8fPngxEvlPNpfHBW4InyYe/PM5yxY3aL0JBP3JwMEV+tedYhmrmVPp/ZM/LIE7Z hYGIsh0Kjo2urXAgyn1jgJUIsQqNi7tHXCwezo7h7A5LVQxWIwFPGuLvLl1m9S/HzRtK 04j9+EMyRqX61ZXfo5nqz+jakQQudmPrnA3qRdgFO8cfUYSp2dDyw2WhTBMAR61dvbDu e0PQxsr7Lw9Cvg9z8uXAmihIC6FFeIroH214DBVCrIc5Mr3sJ/O9+d4vQxnZNePJoQig x6BGG3m9z3n86Jx8LboAyzq8a99DzvGCJ+x6Khe2Uo9MmKbuEzylPaT8ILVMPm0vjZBJ hiZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z100-v6si2205314plh.415.2018.02.23.11.25.00; Fri, 23 Feb 2018 11:25:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935340AbeBWSxK (ORCPT + 99 others); Fri, 23 Feb 2018 13:53:10 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:47236 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935329AbeBWSxI (ORCPT ); Fri, 23 Feb 2018 13:53:08 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id CC7441005; Fri, 23 Feb 2018 18:53:07 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnaud Patard , Neil Armstrong , Kevin Hilman , Sasha Levin Subject: [PATCH 4.14 087/159] meson-gx-socinfo: Fix package id parsing Date: Fri, 23 Feb 2018 19:26:35 +0100 Message-Id: <20180223170754.050090618@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170743.086611315@linuxfoundation.org> References: <20180223170743.086611315@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnaud Patard [ Upstream commit 044d71bc6cdee8980d0fdc35ec79a0d5818b2ce3 ] I've noticed the following message while booting a S905X based board: soc soc0: Amlogic Meson GXL (S905D) Revision 21:82 (b:2) Detected The S905D string is obviously wrong. The vendor code does: ... ver = (readl(assist_hw_rev) >> 8) & 0xff; meson_cpu_version[MESON_CPU_VERSION_LVL_MINOR] = ver; ver = (readl(assist_hw_rev) >> 16) & 0xff; meson_cpu_version[MESON_CPU_VERSION_LVL_PACK] = ver; ... while the current code does: ... ... This means that the current mainline code has package id and minor version reversed. Fixes: a9daaba2965e8 ("soc: Add Amlogic SoC Information driver") Signed-off-by: Arnaud Patard Acked-by: Neil Armstrong Signed-off-by: Kevin Hilman Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/soc/amlogic/meson-gx-socinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/soc/amlogic/meson-gx-socinfo.c +++ b/drivers/soc/amlogic/meson-gx-socinfo.c @@ -20,8 +20,8 @@ #define AO_SEC_SOCINFO_OFFSET AO_SEC_SD_CFG8 #define SOCINFO_MAJOR GENMASK(31, 24) -#define SOCINFO_MINOR GENMASK(23, 16) -#define SOCINFO_PACK GENMASK(15, 8) +#define SOCINFO_PACK GENMASK(23, 16) +#define SOCINFO_MINOR GENMASK(15, 8) #define SOCINFO_MISC GENMASK(7, 0) static const struct meson_gx_soc_id {