From patchwork Thu May 8 23:03:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 4139351 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E5442BFF02 for ; Thu, 8 May 2014 23:06:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 06C82202DD for ; Thu, 8 May 2014 23:06:33 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 46D65202E9 for ; Thu, 8 May 2014 23:06:32 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WiXM8-0000Cg-GY; Thu, 08 May 2014 23:04:00 +0000 Received: from exprod5og111.obsmtp.com ([64.18.0.22]) by bombadil.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WiXM2-0000AY-SG for linux-arm-kernel@lists.infradead.org; Thu, 08 May 2014 23:03:55 +0000 Received: from mail-pd0-f182.google.com ([209.85.192.182]) (using TLSv1) by exprod5ob111.postini.com ([64.18.4.12]) with SMTP ID DSNKU2wNRVjWiObyCyDNQcOXSwZ8Vjn8+9wk@postini.com; Thu, 08 May 2014 16:03:54 PDT Received: by mail-pd0-f182.google.com with SMTP id v10so2851075pde.13 for ; Thu, 08 May 2014 16:03:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=N8FGosSgJL0l4rm63Ddrbk+z7/vuyZLU+y1hhlGCsAE=; b=faNnbaRUpPDKJC1Kuz9rmtwJXj3W4fBlndgw4hEG1EUbN51dRqIGoxeyWC1qrqXcqT rFFXFv3aTioXh42hljjdw/DRWYd/NEu09MP5WRGyjPTTCZijNoVGufImesbF4glfzqZM 6pZfHDsiTdBnZrR+g3EYu6mvlA/2btUPuhCKRGDjhqpfuPhAoHeCF4qYxt/m5CxWdgQH /0qbxmJD+mAPvQ1QgNN60t1mCtPV07Hclw6YmwTpteMzQ9aULwlskjnz3MALHqDDejh7 zp8R6N6RbW+p0o2Drhr+TzhC62relAJaD5K665oGPD9w/paAW9hQU9bg7IYm3opkF7e3 mbVA== X-Gm-Message-State: ALoCoQlzFrtVHx997zPOYHy/XK0nCIDhmm/zjOstOyPuOK8XHBrfKZwZrNDfyqz81wNGHC93u4XyLE5R/M19RW/UnWFje9cap7luLXRpimplYaWQU1blDnrc67kvoYZqdcn1bN7gpUHBzY7mm5A7YRZLW9IrNzxsFA== X-Received: by 10.66.155.102 with SMTP id vv6mr12801869pab.89.1399590213356; Thu, 08 May 2014 16:03:33 -0700 (PDT) X-Received: by 10.66.155.102 with SMTP id vv6mr12801853pab.89.1399590213302; Thu, 08 May 2014 16:03:33 -0700 (PDT) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id yj6sm10043204pab.19.2014.05.08.16.03.32 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 08 May 2014 16:03:32 -0700 (PDT) From: Loc Ho To: dougthompson@xmission.com, bp@alien8.de, m.chehab@samsung.com Subject: [PATCH 1/4] edac: Fix MC scrub mode comparsion bug for correctable error Date: Thu, 8 May 2014 17:03:16 -0600 Message-Id: <1399590199-12256-2-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1399590199-12256-1-git-send-email-lho@apm.com> References: <1399590199-12256-1-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140508_160354_953915_D73C8A30 X-CRM114-Status: GOOD ( 13.21 ) X-Spam-Score: -2.3 (--) Cc: devicetree@vger.kernel.org, jcm@redhat.com, patches@apm.com, Loc Ho , linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the MC scrub mode comparsion bug by replacing '&' with '=='. The MC structure field scrub_mode is integer type - not bit field. Signed-off-by: Loc Ho --- drivers/edac/edac_mc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c index 33edd67..2c694b5 100644 --- a/drivers/edac/edac_mc.c +++ b/drivers/edac/edac_mc.c @@ -1018,7 +1018,7 @@ static void edac_ce_error(struct mem_ctl_info *mci, } edac_inc_ce_error(mci, enable_per_layer_report, pos, error_count); - if (mci->scrub_mode & SCRUB_SW_SRC) { + if (mci->scrub_mode == SCRUB_SW_SRC) { /* * Some memory controllers (called MCs below) can remap * memory so that it is still available at a different