]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: fix SMI bit checking
authorVivien Didelot <vivien.didelot@gmail.com>
Fri, 9 Aug 2019 22:47:58 +0000 (18:47 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Aug 2019 04:27:15 +0000 (21:27 -0700)
commit5593ab2ad528bab7a83c8b008380d7d27bc5e1c1
tree5c87b0cde12fa6a5989dfad735ac29f7226618ad
parent3c943b5f79e41c49ed38900ff06b505ab2c3d4f2
net: dsa: mv88e6xxx: fix SMI bit checking

The current mv88e6xxx_smi_direct_wait function is only used to check
the 16th bit of the (16-bit) SMI Command register. But the bit shift
operation is not enough if we eventually use this function to check
other bits, thus replace it with a mask.

Fixes: aac4024bacbc ("net: dsa: mv88e6xxx: refine SMI support")
Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/smi.c