net: dsa: microchip: Fix ksz_read64()
authorBen Hutchings <ben.hutchings@mind.be>
Mon, 9 Aug 2021 22:59:12 +0000 (00:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Aug 2021 08:58:14 +0000 (09:58 +0100)
commitc34f674c8875235725c3ef86147a627f165d23b4
treee075cfa2820412a4f22865f06f1602d7dcfb6e8f
parent31782a01d14f04bcdd5414861e806937a1db21c4
net: dsa: microchip: Fix ksz_read64()

ksz_read64() currently does some dubious byte-swapping on the two
halves of a 64-bit register, and then only returns the high bits.
Replace this with a straightforward expression.

Fixes: e66f840c08a2 ("net: dsa: ksz: Add Microchip KSZ8795 DSA driver")
Signed-off-by: Ben Hutchings <ben.hutchings@mind.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz_common.h