macintosh/adb-iop: Use big-endian autopoll mask
authorFinn Thain <fthain@telegraphics.com.au>
Mon, 18 Jan 2021 06:19:40 +0000 (17:19 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:37:42 +0000 (11:37 +0100)
commit18f10ae0d477e0b4f5494b7dd9d572283a209214
treeb91416fb7b0470a41be91ffb6145c7ab254f816e
parent1c7b7d476e6aedd2a72ee08e3e59a14cf120946f
macintosh/adb-iop: Use big-endian autopoll mask

[ Upstream commit c396dd2ec5bbd1cb80eafe32a72ab6bd6b17cb5a ]

As usual, the available documentation is inadequate and leaves endianness
unspecified for message data. However, testing shows that this patch does
improve correctness. The mistake should have been detected earlier but it
was obscured by other bugs. In testing, this patch reinstated pre-v5.9
behaviour. The old driver bugs remain and ADB input devices may stop
working. But that appears to be unrelated.

Cc: Joshua Thompson <funaho@jurai.org>
Fixes: c66da95a39ec ("macintosh/adb-iop: Implement SRQ autopolling")
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20210125074524.3027452-1-geert@linux-m68k.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/macintosh/adb-iop.c