]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: pse-pd: tps23881: Fix the device ID check
authorKyle Swenson <kyle.swenson@est.tech>
Wed, 31 Jul 2024 15:42:14 +0000 (15:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Aug 2024 11:17:06 +0000 (12:17 +0100)
commitc4b28e5699d2a789fc9464e7ce89f2a1e9d5085d
tree8bae52eb1c347d5bbe591398a0b174a12dc0a2a4
parent8d5be2c4f4477915fee079572665198e70246b69
net: pse-pd: tps23881: Fix the device ID check

The DEVID register contains two pieces of information: the device ID in
the upper nibble, and the silicon revision number in the lower nibble.
The driver should work fine with any silicon revision, so let's mask
that out in the device ID check.

Fixes: 20e6d190ffe1 ("net: pse-pd: Add TI TPS23881 PSE controller driver")
Signed-off-by: Kyle Swenson <kyle.swenson@est.tech>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pse-pd/tps23881.c