]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb186c588ece44a64183382ae09516ee3053b71f9
tree663c9aa968f9db9bb68e3495c66839c9cf915d70
parent6ec3164ced1b47b28cc26f167f9e4acfbc2d32b5
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