So that "ifconfig -v <dpni>" can show a transceiver's SFF-8472 identity and
diagnostics: vendor, part and serial number, and the module's temperature,
voltage and optical power.
The transceiver is a device in its own right. Firmware names it in the
DPMAC's node -- an "sfp" phandle under FDT, an "sfp" _DSD reference under
ACPI -- and sff(4) drives it, so all this handler does is ask the MC bus for
that device and read from it. It learns neither how the module is wired up
nor which flavour of firmware described it, and there is nothing for it to
configure.
Answer the ioctl before opening any MC object: this talks to an i2c bus, not
to the MC.
Tested on a SolidRun CEX7 (NXP LX2160A) booted through UEFI/ACPI, with the
two 10G SFP+ cages behind the board's PCA9547 mux.
Depends on D60068