]> git.dujemihanovic.xyz Git - linux.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)
committerJakub Kicinski <kuba@kernel.org>
Fri, 2 Aug 2024 23:34:06 +0000 (16:34 -0700)
commit89108cb5c28527c1882df2987394e5c261a1f4aa
tree5fa10de113676964b82f38e07849580d7514c80b
parent9ab0faa7f9ffe31296dbb9bbe6f76c72c14eea18
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>
Link: https://patch.msgid.link/20240731154152.4020668-1-kyle.swenson@est.tech
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/pse-pd/tps23881.c