From: santosh.shilimkar@ti•com (Santosh Shilimkar)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH] i2c: omap: ensure writes to dev->buf_len are ordered
Date: Sun, 28 Oct 2012 09:41:05 +0530 [thread overview]
Message-ID: <508CB059.8000203@ti.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1210271545390.16409@utopia.booyaka.com>
On Saturday 27 October 2012 09:29 PM, Paul Walmsley wrote:
> On Sat, 27 Oct 2012, Santosh Shilimkar wrote:
>
>> Another alternative, which I will recommend to just make use of the
>> read*/wrire* instead __raw versions. The barriers are taken care
>> already and driver point of view, it is transparent.
>
> Those barriers will disappear if CONFIG_ARM_DMA_MEM_BUFFERABLE is set to
> N, so that's probably not the right thing to do in this case. The barrier
> here isn't DMA-related, it's needed due to the design of the driver.
>
Good point.
> In fact the wmb() is probably overkill, since only a compiler reordering
> barrier is needed. It can probably just be barrier().
>
I agree. Just barrier() is enough to avoid compiler re-ordering.
Regards
Santosh
next prev parent reply other threads:[~2012-10-28 4:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-25 9:00 [PATCH] i2c: omap: ensure writes to dev->buf_len are ordered Felipe Balbi
2012-10-25 9:16 ` Shubhrajyoti Datta
2012-10-25 16:38 ` Kevin Hilman
2012-10-25 18:03 ` Felipe Balbi
2012-10-26 23:01 ` Paul Walmsley
2012-10-27 10:50 ` Santosh Shilimkar
2012-10-27 15:59 ` Paul Walmsley
2012-10-28 4:11 ` Santosh Shilimkar [this message]
2012-11-01 22:23 ` Wolfram Sang
2012-11-02 8:54 ` Felipe Balbi
2012-11-05 8:04 ` [PATCH v2] " Felipe Balbi
2012-11-14 11:20 ` Wolfram Sang
2012-11-14 14:22 ` [PATCH v3] " Felipe Balbi
2012-11-14 16:46 ` Wolfram Sang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=508CB059.8000203@ti.com \
--to=santosh.shilimkar@ti$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox