RE: What is the reel purpose of in_beXX() and out_beXX() fonctions ?

2014-10-27 Thread David Laight
From: leroy christophe Many drivers use in_be16(), in_be32(), out_be16(), out_be32(), etc to access to registrers in IO mapped memory. What is the real purpose of those functions, and are they really needed ? ioremap() maps the related areas as GUARDED, which means that accesses

Re: What is the reel purpose of in_beXX() and out_beXX() fonctions ?

2014-10-27 Thread Scott Wood
On Mon, 2014-10-27 at 13:52 +0100, leroy christophe wrote: Many drivers use in_be16(), in_be32(), out_be16(), out_be32(), etc to access to registrers in IO mapped memory. What is the real purpose of those functions, and are they really needed ? ioremap() maps the related areas as

Re: What is the reel purpose of in_beXX() and out_beXX() fonctions ?

2014-10-27 Thread Benjamin Herrenschmidt
On Mon, 2014-10-27 at 15:05 +, David Laight wrote: Unfortunately the functions sometimes contain additional (often unneeded) sequencing instructions - the driver may be able to perform multiple operations between the sequencing instructions. That's in part why some folks are working