net: sfp: only use soft polling if we have A2h access
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 9 Mar 2023 15:57:16 +0000 (15:57 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 Mar 2023 02:12:48 +0000 (18:12 -0800)
commit5daed426f012a1c0db0048339e359ee98a2c8752
tree1fa15bebb9b069063362cd3afe1a4ee34028f191
parentf94b9bed12e8244717512941494fe83c94773a58
net: sfp: only use soft polling if we have A2h access

The soft state bits are stored in the A2h memory space, and require
SFF-8472 compliance. This is what our have_a2 flag tells us, so use
this to indicate whether we should attempt to use the soft signals.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/sfp.c