Alexandru Gagniuc d397f7c45b net: phy: micrel: Separate KSZ9000 drivers from KSZ8000 drivers
The KS8721BL and KSZ9021 PHYs are software-incompatible, yet they
share the same ID. Drivers for bothe PHYs cannot safely coexist, so
the solution was to use #ifdefs to select between the two drivers.

As a result KSZ9031, which has a unique ID, is now caught in the
crossfire. Unless CONFIG_PHY_MICREL_KSZ9031 is defined, the KSZ9031
will not function properly, as some essential configuration code is
ifdef'd-out.

To prevent such situations, move the KSZ9000 drivers to a separate
file, and place them under a separate Kconfig option. While it is
possible to enable both KSZ8000 and KSZ9000 drivers at the same time,
the assumption is that it is highly unlikely for a system to contain
both a KSZ8000 and a KSZ9000 PHY, and that only one of the drivers
will be enabled at any given time.

Signed-off-by: Alexandru Gagniuc <alex.g@adaptrum.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2017-08-07 15:18:30 -05:00
..
2017-07-11 22:41:48 -04:00
2016-10-23 18:33:18 -04:00
2017-06-28 11:43:39 -04:00
2017-06-28 11:43:39 -04:00
2016-12-04 13:55:01 -05:00
2016-02-05 12:47:23 +08:00
2017-06-01 07:03:01 -06:00
2016-12-16 17:15:27 +01:00
2017-06-01 07:03:01 -06:00
2016-02-06 12:00:59 +01:00
2015-08-11 13:27:15 -05:00
2016-08-15 15:29:03 -05:00
2015-11-05 08:22:21 +01:00
2017-06-02 14:44:20 -05:00
2017-06-01 07:03:10 -06:00
2017-08-03 04:26:25 +09:00
2017-06-01 07:03:01 -06:00
2016-08-15 15:29:03 -05:00
2015-09-11 17:14:43 -04:00
2017-04-05 13:52:01 -04:00
2017-06-01 07:03:01 -06:00
2017-06-01 07:03:01 -06:00
2017-07-03 17:35:28 -04:00