* [PATCH 2/2] net: emaclite: add barriers to support Xilinx Zynq platform
[not found] <1385623797-26034-1-git-send-email-sthokal@xilinx.com>
@ 2013-11-28 7:29 ` Srikanth Thokala
2013-12-02 1:09 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Srikanth Thokala @ 2013-11-28 7:29 UTC (permalink / raw)
To: netdev, linux-arm-kernel; +Cc: davem, Michal Simek, Srikanth Thokala
This patch adds barriers at appropriate places to ensure the driver
works on Xilinx Zynq ARM-based SoC platform.
Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
---
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;
}
}
--
1.8.2.GIT
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] net: emaclite: add barriers to support Xilinx Zynq platform
2013-11-28 7:29 ` [PATCH 2/2] net: emaclite: add barriers to support Xilinx Zynq platform Srikanth Thokala
@ 2013-12-02 1:09 ` David Miller
2013-12-02 10:51 ` Srikanth Thokala
0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2013-12-02 1:09 UTC (permalink / raw)
To: srikanth.thokala; +Cc: netdev, linux-arm-kernel, michal.simek, sthokal
From: Srikanth Thokala <srikanth.thokala@xilinx.com>
Date: Thu, 28 Nov 2013 12:59:57 +0530
> This patch adds barriers at appropriate places to ensure the driver
> works on Xilinx Zynq ARM-based SoC platform.
>
> Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Memory barriers must have comments.
Specifically, the comment must describe what exactly is being ensured
by the memory barrier. What entity must see what memory operations in
what order?
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH 2/2] net: emaclite: add barriers to support Xilinx Zynq platform
2013-12-02 1:09 ` David Miller
@ 2013-12-02 10:51 ` Srikanth Thokala
0 siblings, 0 replies; 3+ messages in thread
From: Srikanth Thokala @ 2013-12-02 10:51 UTC (permalink / raw)
To: David Miller
Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
Michal Simek
Hi David,
> -----Original Message-----
> From: David Miller [mailto:davem@davemloft.net]
> Sent: Monday, December 02, 2013 6:39 AM
> To: Srikanth Thokala
> Cc: netdev@vger.kernel.org; linux-arm-kernel@lists.infradead.org; Michal
> Simek; Srikanth Thokala
> Subject: Re: [PATCH 2/2] net: emaclite: add barriers to support Xilinx Zynq
> platform
>
> From: Srikanth Thokala <srikanth.thokala@xilinx.com>
> Date: Thu, 28 Nov 2013 12:59:57 +0530
>
> > This patch adds barriers at appropriate places to ensure the driver
> > works on Xilinx Zynq ARM-based SoC platform.
> >
> > Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
>
> Memory barriers must have comments.
>
> Specifically, the comment must describe what exactly is being ensured by the
> memory barrier. What entity must see what memory operations in what order?
Ok. I will update and send you v2.
Thanks
Srikanth
This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-02 10:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1385623797-26034-1-git-send-email-sthokal@xilinx.com>
2013-11-28 7:29 ` [PATCH 2/2] net: emaclite: add barriers to support Xilinx Zynq platform Srikanth Thokala
2013-12-02 1:09 ` David Miller
2013-12-02 10:51 ` Srikanth Thokala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).