[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150117224021.GA26493@n2100.arm.linux.org.uk>
Date: Sat, 17 Jan 2015 22:40:21 +0000
From: Russell King - ARM Linux <linux@....linux.org.uk>
To: Ray Jui <rjui@...adcom.com>
Cc: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>, Wolfram Sang <wsa@...-dreams.de>,
Rob Herring <robh+dt@...nel.org>,
Pawel Moll <pawel.moll@....com>,
Mark Rutland <mark.rutland@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Kumar Gala <galak@...eaurora.org>,
Grant Likely <grant.likely@...aro.org>,
Christian Daudt <bcm@...thebug.org>,
Matt Porter <mporter@...aro.org>,
Florian Fainelli <f.fainelli@...il.com>,
Scott Branden <sbranden@...adcom.com>,
linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
bcm-kernel-feedback-list@...adcom.com, devicetree@...r.kernel.org
Subject: Re: [PATCH v4 2/3] i2c: iproc: Add Broadcom iProc I2C Driver
On Sat, Jan 17, 2015 at 01:26:41PM -0800, Ray Jui wrote:
> time_left = wait_for_completion_timeout(&iproc_i2c->done, time_left);
>
> /* disable all interrupts */
> writel(0, iproc_i2c->base + IE_OFFSET);
>
> if (!time_left && !atomic_read(&iproc_i2c->transfer_is_successful)) {
Why are you using atomic_read() here?
--
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists