From patchwork Mon Aug 8 10:13:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Gang X-Patchwork-Id: 108876 X-Patchwork-Delegate: galak@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 40785B748A for ; Mon, 8 Aug 2011 20:36:48 +1000 (EST) Received: by ozlabs.org (Postfix) id E7904B6F72; Mon, 8 Aug 2011 20:12:56 +1000 (EST) Delivered-To: linuxppc-dev@ozlabs.org Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe005.messaging.microsoft.com [216.32.181.185]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "mail.global.frontbridge.com", Issuer "Microsoft Secure Server Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 70B02B6F71 for ; Mon, 8 Aug 2011 20:12:54 +1000 (EST) Received: from mail70-ch1-R.bigfish.com (216.32.181.170) by CH1EHSOBE017.bigfish.com (10.43.70.67) with Microsoft SMTP Server id 14.1.225.22; Mon, 8 Aug 2011 10:12:47 +0000 Received: from mail70-ch1 (localhost.localdomain [127.0.0.1]) by mail70-ch1-R.bigfish.com (Postfix) with ESMTP id AFF19EB0287; Mon, 8 Aug 2011 10:12:47 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275bhz2dh2a8h668h839h62h) X-Spam-TCS-SCL: 1:0 X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI Received: from mail70-ch1 (localhost.localdomain [127.0.0.1]) by mail70-ch1 (MessageSwitch) id 1312798367332842_15247; Mon, 8 Aug 2011 10:12:47 +0000 (UTC) Received: from CH1EHSMHS033.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.254]) by mail70-ch1.bigfish.com (Postfix) with ESMTP id 46C7313C8050; Mon, 8 Aug 2011 10:12:47 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CH1EHSMHS033.bigfish.com (10.43.70.33) with Microsoft SMTP Server (TLS) id 14.1.225.22; Mon, 8 Aug 2011 10:12:46 +0000 Received: from az33smr01.freescale.net (10.64.34.199) by 039-SN1MMR1-001.039d.mgd.msft.net (10.84.1.13) with Microsoft SMTP Server id 14.1.323.2; Mon, 8 Aug 2011 05:12:45 -0500 Received: from udp143655uds.ap.freescale.net (udp143655uds.ap.freescale.net [10.192.208.115]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id p78AChNd013758; Mon, 8 Aug 2011 05:12:44 -0500 (CDT) Received: from udp143655uds.ap.freescale.net (localhost.localdomain [127.0.0.1]) by udp143655uds.ap.freescale.net (8.13.8/8.13.8) with ESMTP id p78ADhNB003962; Mon, 8 Aug 2011 18:13:43 +0800 Received: (from mylinux@localhost) by udp143655uds.ap.freescale.net (8.13.8/8.13.8/Submit) id p78ADgiH003961; Mon, 8 Aug 2011 18:13:42 +0800 From: Liu Gang To: Subject: [PATCH] fsl-rio: Correct IECSR register clear value Date: Mon, 8 Aug 2011 18:13:39 +0800 Message-ID: <1312798419-3912-1-git-send-email-b34182@freescale.com> X-Mailer: git-send-email 1.7.3.1 MIME-Version: 1.0 X-OriginatorOrg: freescale.net X-Mailman-Approved-At: Mon, 08 Aug 2011 20:36:40 +1000 Cc: r58472@freescale.com, Liu Gang , r61911@freescale.com, Liu Gang , akpm@linux-foundation.org, B11780@freescale.com X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org The RETE bit in IECSR is cleared by writing a 1 to it. Signed-off-by: Liu Gang --- arch/powerpc/sysdev/fsl_rio.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c index b3fd081..cdd765b 100644 --- a/arch/powerpc/sysdev/fsl_rio.c +++ b/arch/powerpc/sysdev/fsl_rio.c @@ -54,6 +54,7 @@ #define ODSR_CLEAR 0x1c00 #define LTLEECSR_ENABLE_ALL 0xFFC000FC #define ESCSR_CLEAR 0x07120204 +#define IECSR_CLEAR 0x80000000 #define RIO_PORT1_EDCSR 0x0640 #define RIO_PORT2_EDCSR 0x0680 @@ -1089,11 +1090,11 @@ static void port_error_handler(struct rio_mport *port, int offset) if (offset == 0) { out_be32((u32 *)(rio_regs_win + RIO_PORT1_EDCSR), 0); - out_be32((u32 *)(rio_regs_win + RIO_PORT1_IECSR), 0); + out_be32((u32 *)(rio_regs_win + RIO_PORT1_IECSR), IECSR_CLEAR); out_be32((u32 *)(rio_regs_win + RIO_ESCSR), ESCSR_CLEAR); } else { out_be32((u32 *)(rio_regs_win + RIO_PORT2_EDCSR), 0); - out_be32((u32 *)(rio_regs_win + RIO_PORT2_IECSR), 0); + out_be32((u32 *)(rio_regs_win + RIO_PORT2_IECSR), IECSR_CLEAR); out_be32((u32 *)(rio_regs_win + RIO_PORT2_ESCSR), ESCSR_CLEAR); } }