From patchwork Thu Nov 28 07:29:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srikanth Thokala X-Patchwork-Id: 3252071 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B7B2A9F3B8 for ; Thu, 28 Nov 2013 07:34:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AE98320621 for ; Thu, 28 Nov 2013 07:34:16 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C490220617 for ; Thu, 28 Nov 2013 07:34:15 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vlw6v-0008K6-3w; Thu, 28 Nov 2013 07:34:05 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vlw6s-0003Xn-Mf; Thu, 28 Nov 2013 07:34:02 +0000 Received: from tx2ehsobe003.messaging.microsoft.com ([65.55.88.13] helo=tx2outboundpool.messaging.microsoft.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vlw6o-0003Wt-W9 for linux-arm-kernel@lists.infradead.org; Thu, 28 Nov 2013 07:33:59 +0000 Received: from mail161-tx2-R.bigfish.com (10.9.14.240) by TX2EHSOBE006.bigfish.com (10.9.40.26) with Microsoft SMTP Server id 14.1.225.22; Thu, 28 Nov 2013 07:33:36 +0000 Received: from mail161-tx2 (localhost [127.0.0.1]) by mail161-tx2-R.bigfish.com (Postfix) with ESMTP id CA1F52403B3; Thu, 28 Nov 2013 07:33:36 +0000 (UTC) X-Forefront-Antispam-Report: CIP:149.199.60.83; KIP:(null); UIP:(null); IPV:NLI; H:xsj-gw1; RD:unknown-60-83.xilinx.com; EFVD:NLI X-SpamScore: 1 X-BigFish: VPS1(zzzz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h1d1ah1d2ah1fc6hzz1de098h8275bh1de097hz2fh95h839hd24hf0ah119dh1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h14ddh1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1b0ah224fh1d0ch1d2eh1d3fh1dfeh1dffh1e1dh1e23h1fe8h1ff5h2218h2216h226dh2327h906i1155h) Received-SPF: pass (mail161-tx2: domain of xilinx.com designates 149.199.60.83 as permitted sender) client-ip=149.199.60.83; envelope-from=srikanth.thokala@xilinx.com; helo=xsj-gw1 ; helo=xsj-gw1 ; Received: from mail161-tx2 (localhost.localdomain [127.0.0.1]) by mail161-tx2 (MessageSwitch) id 1385624013862637_8237; Thu, 28 Nov 2013 07:33:33 +0000 (UTC) Received: from TX2EHSMHS023.bigfish.com (unknown [10.9.14.226]) by mail161-tx2.bigfish.com (Postfix) with ESMTP id 250F76006B; Thu, 28 Nov 2013 07:33:32 +0000 (UTC) Received: from xsj-gw1 (149.199.60.83) by TX2EHSMHS023.bigfish.com (10.9.99.123) with Microsoft SMTP Server id 14.16.227.3; Thu, 28 Nov 2013 07:33:31 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-smtp1) by xsj-gw1 with esmtp (Exim 4.63) (envelope-from ) id 1Vlw6N-0003AB-Ge; Wed, 27 Nov 2013 23:33:31 -0800 From: Srikanth Thokala To: , Subject: [PATCH 2/2] net: emaclite: add barriers to support Xilinx Zynq platform Date: Thu, 28 Nov 2013 12:59:57 +0530 X-Mailer: git-send-email 1.8.2.GIT In-Reply-To: <1385623797-26034-1-git-send-email-sthokal@xilinx.com> References: <1385623797-26034-1-git-send-email-sthokal@xilinx.com> X-RCIS-Action: ALLOW MIME-Version: 1.0 Message-ID: <9045da6f-88e5-4a20-be68-477790588131@TX2EHSMHS023.ehs.local> X-OriginatorOrg: xilinx.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131128_023359_098602_A4FD7B57 X-CRM114-Status: GOOD ( 10.94 ) X-Spam-Score: -4.2 (----) Cc: Srikanth Thokala , davem@davemloft.net, Michal Simek 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 adds barriers at appropriate places to ensure the driver works on Xilinx Zynq ARM-based SoC platform. Signed-off-by: Srikanth Thokala --- drivers/net/ethernet/xilinx/xilinx_emaclite.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c index 3a693a1..31b8b6c 100644 --- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c +++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c @@ -220,6 +220,7 @@ static void xemaclite_aligned_write(void *src_ptr, u32 *dest_ptr, to_u16_ptr = (u16 *)&align_buffer; *to_u16_ptr++ = *from_u16_ptr++; *to_u16_ptr++ = *from_u16_ptr++; + wmb(); /* Output a word */ *to_u32_ptr++ = align_buffer; @@ -236,6 +237,7 @@ static void xemaclite_aligned_write(void *src_ptr, u32 *dest_ptr, for (; length > 0; length--) *to_u8_ptr++ = *from_u8_ptr++; + wmb(); *to_u32_ptr = align_buffer; } }