OSDN Git Service

Merge branch 'rework-sfp-a2-access-conditionals'
authorJakub Kicinski <kuba@kernel.org>
Sat, 11 Mar 2023 02:12:50 +0000 (18:12 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 Mar 2023 02:12:50 +0000 (18:12 -0800)
commit127cd68563925577f7f27a5b17a788be18c577e5
tree1fa15bebb9b069063362cd3afe1a4ee34028f191
parentc568a8de6bb1cdf86badf01a1645e2efb433db21
parent5daed426f012a1c0db0048339e359ee98a2c8752
Merge branch 'rework-sfp-a2-access-conditionals'

Russell King says:

====================
Rework SFP A2 access conditionals

This series reworks the SFP A2 (diagnostics and control) access so we
don't end up testing a variable number of conditions in several places.

This also resolves a minor issue where we may have a module indicating
that it is not SFF8472 compliant, doesn't implement A2, but fails to
set the enhanced option byte to zero, leading to accesses to the A2
page that fail.

The first patch adds a new flag "have_a2" which indicates whether we
should be accessing the A2 page, and uses this for hwmon. The
conditions are kept the same.

The second patch extends the check for soft-state polling and control
by using this "have_a2" flag (which effectively augments the check to
include some level of SFF8472 compliance.)
====================

Link: https://lore.kernel.org/r/ZAoBnqGBnIZzLwpV@shell.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>