]> git.baikalelectronics.ru Git - kernel.git/commit
net/macb: improve big endian CPU support
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 24 Jul 2015 18:23:59 +0000 (21:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2015 08:10:29 +0000 (01:10 -0700)
commitf29f0d80a7f40fc92f8d69fc59a8128cc0d37f07
tree7226bddfdacdaaa762b2403a502c77bc41c40f17
parentf783cd5ade0c05fdce6734f5562423a1713fdbc6
net/macb: improve big endian CPU support

The commit 9430c71c0992 (net: macb: Add big endian CPU support) converted I/O
accessors to readl_relaxed() and writel_relaxed() and consequentially broke
MACB driver on AVR32 platforms such as ATNGW100.

This patch improves I/O access by checking endiannes first and use the
corresponding methods.

Fixes: 9430c71c0992 (net: macb: Add big endian CPU support)
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c
drivers/net/ethernet/cadence/macb.h