From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Subject: Re: [PATCH 2/3] i2c: mxs: remove races in PIO code Date: Tue, 2 Apr 2013 00:58:41 +0200 Message-ID: <201304020058.41519.marex@denx.de> References: <1363261750-26645-1-git-send-email-l.stach@pengutronix.de> <1363261750-26645-2-git-send-email-l.stach@pengutronix.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1363261750-26645-2-git-send-email-l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Lucas Stach Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Wolfram Sang , "Ben Dooks (embedded platforms)" , Fabio Estevam List-Id: linux-i2c@vger.kernel.org Dear Lucas Stach, sorry for the delay, I'm totalled ... well, trying to make it through the queue now. CC Fabio on MXS patches please. [...] > -static int mxs_i2c_pio_wait_cplt(struct mxs_i2c_dev *i2c) > +static int mxs_i2c_pio_wait_cplt(struct mxs_i2c_dev *i2c, int last) You can use bool instead of int here and then use "true"/"false" below. Best regards, Marek Vasut