Re: [PATCH v2 06/29] nios2: I/O Mapping

2014-07-15 Thread Ley Foon Tan
On Tue, Jul 15, 2014 at 5:22 PM, Arnd Bergmann wrote: > On Tuesday 15 July 2014 16:45:33 Ley Foon Tan wrote: >> +#ifdef __IO_USE_DUFFS >> + >> +/* Use "Duff's Device" to unroll the loops. */ >> +#define __IO_OUT_LOOP(a, b, l) \ >> + do {

Re: [PATCH v2 06/29] nios2: I/O Mapping

2014-07-15 Thread Arnd Bergmann
On Tuesday 15 July 2014 16:45:33 Ley Foon Tan wrote: > +#ifdef __IO_USE_DUFFS > + > +/* Use "Duff's Device" to unroll the loops. */ > +#define __IO_OUT_LOOP(a, b, l) \ > + do {\ The I/O loops can probably better go into