Received: by 10.223.185.116 with SMTP id b49csp4097038wrg; Tue, 13 Feb 2018 12:42:58 -0800 (PST) X-Google-Smtp-Source: AH8x224IbL6JZAvtTLDFcD2wQDYbZQGhg5qfrLY913szO7f0+5zOBjCN9UJwLepYlpVizFI/WgdR X-Received: by 10.101.92.138 with SMTP id a10mr1932171pgt.191.1518554577979; Tue, 13 Feb 2018 12:42:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518554577; cv=none; d=google.com; s=arc-20160816; b=u9TbZveckz7yX1HdOpSsz6fono8vry24IE9/zZ5Aes2qgwBorsFePsilSrk5Sq6qVS fYN3ObPBoJJyuTk2UckpYVW96BrAVuCYLWuZJbS0m2XV9mMNE0lHBdULDjFAdO6HLrIR 7R07StsEl8Sgyyx1cNb23j8PtcI1r084O6RenKLlR8+yKWYRNBnYVYyCUjszXTAanh+k PlXiUHixCh5p24/+Va4kXgtBO9eTgYppaxVqHdJx/vkVHuX5rZVwsqj4le0O0AnUKBmp 8vAefk1l8HNw/mUTH7zQy3I+S/u/ErRHpLL0fsKY+01AErlUwvq7SMG3lQWZmgFrRUKn 4UjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=BzvSTyi3WxB22kBNkr0aJ7yEvINFygId3sNHWTnG61Y=; b=1BSpaaR+sbaxu3Z8uKi6ySeb9U3Oft4QDxclEMOAHXb2XsolNOgzFvsKxG0j/HetPX VYVsWepUKk/D6+KOGK6WmzzUNqnkFUA+KlA4PI1sdJVlep952gde26y9JkQXwzd37Zhv Y57BuDP/RWsrtsdKyOS3e6z3G6toNLPyEHOCGS+FVVxOFZjRveGICJwag874/OL6AzgZ TVsVLFsaz1+KgKJk0Kri4YaA4HqEaxqwne9+IqbnF3HhDy1ElrF7cE5uVPDKOusvexP8 OQ9Wv3xlxWFPvrRKQoTgaxRi3rjmj7UT28xGkeevynZMxF1l1N29Midy2Ee2lJFrwu/6 lYkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=AmeCCK5J; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5-v6si5353ple.457.2018.02.13.12.42.43; Tue, 13 Feb 2018 12:42:57 -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; dkim=pass header.i=@broadcom.com header.s=google header.b=AmeCCK5J; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965825AbeBMUl1 (ORCPT + 99 others); Tue, 13 Feb 2018 15:41:27 -0500 Received: from mail-qt0-f196.google.com ([209.85.216.196]:43118 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965676AbeBMUl0 (ORCPT ); Tue, 13 Feb 2018 15:41:26 -0500 Received: by mail-qt0-f196.google.com with SMTP id d26so5125058qtk.10 for ; Tue, 13 Feb 2018 12:41:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BzvSTyi3WxB22kBNkr0aJ7yEvINFygId3sNHWTnG61Y=; b=AmeCCK5JIOZ4caShzko8WP2Qmdh+fAa2mPWOG/2/V2JagditJ9vkXnlrnQir4uZjxY SBoR7tB/71F6MHY+lK6PPQ+sdozoREJ9tSYUfobVI2OGrYEh1bBHLFp13LSSz7xt5Sh2 1tlPhXOg/v75G3wMiaj7p0eRe687Rl1L8ngaw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BzvSTyi3WxB22kBNkr0aJ7yEvINFygId3sNHWTnG61Y=; b=H9/HNf3pGdEo8Aqhkg3vOzH4AvG7KMV3dcsmiETYZG6lXsEuWxoFd8MBjmbWqMLStg keQOKJTGPvSArcKyifr3+iOltuHJx0lsiIfnEyLneyl+C3FOKsynSpX+4l5I9S2D59pO rUagDMDgIjNu9wIP9zfCk0wlwvDzoG0SSvcboa2zzY3Sw1Kz+AgaTmd6XEJmgIBY6f20 DEwXu1KfkyKyzGwHHNgSJYL3iKFPjklUEvEtbovRH1fsz3umXh8y8JFCjvapI6gGzrrr kHajKA7EGBoYixDa1pa0ikly+o3Mf19K6iXKs1HIVVcIVTRewlxO1HreWeFpx1N/8s/Y x/ww== X-Gm-Message-State: APf1xPC1v8h7Cdg3rM05J+KnsYIaUbh/RRNCmhvqtbkL3hsbHfDAbdP1 +pRxugbBZi5cWfgkR07lkFiVDQ== X-Received: by 10.200.63.123 with SMTP id w56mr4034363qtk.318.1518554485299; Tue, 13 Feb 2018 12:41:25 -0800 (PST) Received: from lbrmn-mmayer.igp.broadcom.net ([192.19.224.250]) by smtp.gmail.com with ESMTPSA id m28sm2907978qtc.65.2018.02.13.12.41.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Feb 2018 12:41:23 -0800 (PST) From: Markus Mayer To: Brian Norris , Florian Fainelli , Gregory Fong Cc: Markus Mayer , Broadcom Kernel List , ARM Kernel List , Linux Kernel Mailing List Subject: [PATCH 1/3] memory: brcmstb: dpfe: properly mask vendor error bits Date: Tue, 13 Feb 2018 12:40:38 -0800 Message-Id: <1518554440-21805-2-git-send-email-mmayer@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518554440-21805-1-git-send-email-mmayer@broadcom.com> References: <1518554440-21805-1-git-send-email-mmayer@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We were printing the entire 32 bit register rather than just the lower 8 bits. Anything above bit 7 is reserved and may be any random value. Fixes: 2f330caff577 ("memory: brcmstb: Add driver for DPFE") Signed-off-by: Markus Mayer --- drivers/memory/brcmstb_dpfe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/memory/brcmstb_dpfe.c b/drivers/memory/brcmstb_dpfe.c index 0a7bdbed3a6f..088153760e52 100644 --- a/drivers/memory/brcmstb_dpfe.c +++ b/drivers/memory/brcmstb_dpfe.c @@ -603,7 +603,8 @@ static ssize_t show_vendor(struct device *dev, struct device_attribute *devattr, readl_relaxed(info + DRAM_VENDOR_MR6) & DRAM_VENDOR_MASK, readl_relaxed(info + DRAM_VENDOR_MR7) & DRAM_VENDOR_MASK, readl_relaxed(info + DRAM_VENDOR_MR8) & DRAM_VENDOR_MASK, - readl_relaxed(info + DRAM_VENDOR_ERROR)); + readl_relaxed(info + DRAM_VENDOR_ERROR) & + DRAM_VENDOR_MASK); } static int brcmstb_dpfe_resume(struct platform_device *pdev) -- 2.7.4