net: bcmgenet: Use correct I/O accessors
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 29 Aug 2017 19:25:31 +0000 (12:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Aug 2017 23:09:07 +0000 (16:09 -0700)
commit69d2ea9c798983c4a7157278ec84ff969d1cd8e8
treeb91dd8be8448731070c46e3219812996bf5d3410
parentb6eb9d500087a79feab2be8adb84826ffc955690
net: bcmgenet: Use correct I/O accessors

The GENET driver currently uses __raw_{read,write}l which means
native I/O endian. This works correctly for an ARM LE kernel (default)
but fails miserably on an ARM BE (BE8) kernel where registers are kept
little endian, so replace uses with {read,write}l_relaxed here which is
what we want because this is all performance sensitive code.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/genet/bcmgenet.h