Re: [PATCH net-next 0/3] net: dsa: restore HWMON support in dsa2
From: Andrew Lunn
Date: Tue Jan 03 2017 - 15:09:52 EST
> Well, I agree with the regression part, but an argument could
> definitively be made that HWMON did not belong in the DSA layer in the
> first place, unless we were able to find some commonality between
> devices which AFAICT, we could not yet.
Florian, does SF2 or b53 have a temperature sensor?
John, does the qca8k have a temperature sensor?
If we do have a switch with a temperature sensor, making the HWMON
code available as a library for switch drivers to use makes sense.
However, if we move the Marvell code into the PHY driver, and there
are no other switches with temperature sensors, we should just remove
it.
Andrew