From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfram Sang Subject: Re: [PATCH v8 1/2] i2c: imx: add DMA support for freescale i2c driver Date: Wed, 8 Oct 2014 08:46:59 +0200 Message-ID: <20141008064659.GA1264@katana> References: <1411632689-31531-1-git-send-email-yao.yuan@freescale.com> <1411632689-31531-2-git-send-email-yao.yuan@freescale.com> <20141003075441.GA1349@katana> <3cd0b028391140b9a75cddf58dbe40b8@DM2PR03MB349.namprd03.prod.outlook.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Return-path: Content-Disposition: inline In-Reply-To: <3cd0b028391140b9a75cddf58dbe40b8-ufbTtyGzTTQImQYq+4zkFeO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Yao Yuan Cc: "marex-ynQEQJNshbs@public.gmane.org" , "LW-bxm8fMRDkQLDiMYJYoSAnRvVK+yQ3ZXh@public.gmane.org" , "mark.rutland-5wv7dgnIgG8@public.gmane.org" , "fugang.duan-KZfg59tc24xl57MIdRCFDg@public.gmane.org" , "shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , "linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: linux-i2c@vger.kernel.org --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 08, 2014 at 06:30:14AM +0000, Yao Yuan wrote: > > -----Original Message----- > > From: Wolfram Sang [mailto:wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org] > > Sent: Friday, October 03, 2014 3:55 PM > > To: Yuan Yao-B46683 > > Cc: marex-ynQEQJNshbs@public.gmane.org; LW-bxm8fMRDkQLDiMYJYoSAnRvVK+yQ3ZXh@public.gmane.org; mark.rutland-5wv7dgnIgG8@public.gmane.org; Duan > > Fugang-B38611; shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org; linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; linu= x- > > arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org; linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > > Subject: Re: [PATCH v8 1/2] i2c: imx: add DMA support for freescale i2c > > driver > > > -#include > > > -#include > > > -#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > #include > > > #include > > > #include > > > -#include > > > #include > > > +#include > > > #include > > > -#include > > > -#include > > > -#include > > > -#include > > > +#include > > > +#include > > > #include > > > #include > > > +#include > > > #include > > > +#include > > > +#include > > > +#include > >=20 > > This is a seperate patch. >=20 > [Yuan Yao]=20 > Here I just adjust the order of the include file as alphabetical order. > If it looks strange I can only add the include files about DMA. It doesn't look strange, it makes sense to do that. However, this should be a seperate patch. a) sort includes b) add the dma includes in the dma patch > After DMA callback, I must wait until the last byte transfer completely. > It's a very short time which less than 10us. > By the way, how about use udelay(10) instead of schedule()? > udelay(10) is waiting a appropriate time. > schedule() is waiting too long for i2c but may be good for whole system. > Can you give me some suggestion? It doesn't matter much. Leave it as it is. If somebody wants to change it, it can be patched. --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUNN3jAAoJEBQN5MwUoCm2tQsP/RSToURuxuC+pyUo4cWcPsM8 xzaq/7HzEanP7a3nzih1aN1UYigWJ9slbxRZ1QOMtZjminJotWhSe37CYziFIRjY AvS8ptYycv5jBkC/kDeeCrXssT8UI3544KKLbbEHg68C5TAipys4F3NE1ttH9U4m V+PeJKucCaqhFmveF2oIYODEeMWgDRy1TQyJdrKPZkvX8P5Y6ZCiSU2MSSNUoyKH IB9b9uxJeIyFhEpMmP+aciOHEgCL4B42TG470/x9gvYTMfbahAL/M9oWB0zpbjxL p98U0pZY9dcsOZR2IUj3BHHh4opXcSpjKpcT+6cGNqORzF2JRfyKMXbM69ReIOcL YsV8DvcVhOKJmaHyNIKC3t1GMEkD0kQImqs9LVqYyuX3ZQseDsAAU+6SrHT1McMH h/W6wGVPG64fsR7w+e4BYkm/Uweewu+IXpSceh31UiH2lWLZlbefihfUHLal50gg k6KRN7c4199skteAWuIX337f1Wbj/UCZ3dZ/vUhQ8r32CHq/NmvJCHwdGfWnSjFK jVzMVHQGqBfg7VdXkDfpA1hkNfd8gFv5nyXYntIp+S0cRjLw3jt6WOlTk8TmMyd0 x7I5s1nmoFOwEFMLJT24L1QHexCcOS7b6DnNFyUAO4+T256jzBY8a8iozkXC57QH ppKYUZWNpnRY2BxGlvBK =dn7S -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9--