aqc111: fix writing to the phy on BE
authorOliver Neukum <oneukum@suse.com>
Thu, 9 May 2019 09:08:17 +0000 (11:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 May 2019 16:35:40 +0000 (09:35 -0700)
commit369b46e9fbcfa5136f2cb5f486c90e5f7fa92630
tree663c9aa968f9db9bb68e3495c66839c9cf915d70
parentb8b277525e9df2fd2dc3d1f4fe01c6796bb107fc
aqc111: fix writing to the phy on BE

When writing to the phy on BE architectures an internal data structure
was directly given, leading to it being byte swapped in the wrong
way for the CPU in 50% of all cases. A temporary buffer must be used.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/aqc111.c