]> 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)
commitca039ed483725b1225f7821b0bb326c51405bccd
tree663c9aa968f9db9bb68e3495c66839c9cf915d70
parentd7965a7dedcae32cf37ddceb9bba0cd8a703340c
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