aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/patches-4.4/144-phylink-add-module-EEPROM-support.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-02-13 11:02:06 +0100
committerFelix Fietkau <nbd@nbd.name>2017-04-12 09:51:34 +0200
commit51397d7d95d9f5e210a5557f65de1fa21e6f5921 (patch)
tree0aee85f945fa4dc3e861c48dbf981d71a48cde92 /target/linux/mvebu/patches-4.4/144-phylink-add-module-EEPROM-support.patch
parentfc28830b6f0cd5fe9650d6c9cc750e19665d3a59 (diff)
downloadupstream-51397d7d95d9f5e210a5557f65de1fa21e6f5921.tar.gz
upstream-51397d7d95d9f5e210a5557f65de1fa21e6f5921.tar.bz2
upstream-51397d7d95d9f5e210a5557f65de1fa21e6f5921.zip
mvebu: remove linux 4.4 support
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/mvebu/patches-4.4/144-phylink-add-module-EEPROM-support.patch')
-rw-r--r--target/linux/mvebu/patches-4.4/144-phylink-add-module-EEPROM-support.patch137
1 files changed, 0 insertions, 137 deletions
diff --git a/target/linux/mvebu/patches-4.4/144-phylink-add-module-EEPROM-support.patch b/target/linux/mvebu/patches-4.4/144-phylink-add-module-EEPROM-support.patch
deleted file mode 100644
index f57f70dd9e..0000000000
--- a/target/linux/mvebu/patches-4.4/144-phylink-add-module-EEPROM-support.patch
+++ /dev/null
@@ -1,137 +0,0 @@
-From 5419ccb638aa5c353ea88815e98953d9fc02e6ca Mon Sep 17 00:00:00 2001
-From: Russell King <rmk+kernel@arm.linux.org.uk>
-Date: Thu, 1 Oct 2015 23:10:05 +0100
-Subject: [PATCH 732/744] phylink: add module EEPROM support
-
-Add support for reading module EEPROMs through phylink.
-
-Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
----
- drivers/net/phy/phylink.c | 66 +++++++++++++++++++++++++++++++++++++++++++++++
- include/linux/phylink.h | 12 +++++++++
- 2 files changed, 78 insertions(+)
-
---- a/drivers/net/phy/phylink.c
-+++ b/drivers/net/phy/phylink.c
-@@ -60,6 +60,9 @@ struct phylink {
- struct work_struct resolve;
-
- bool mac_link_up;
-+
-+ const struct phylink_module_ops *module_ops;
-+ void *module_data;
- };
-
- static const char *phylink_an_mode_str(unsigned int mode)
-@@ -819,6 +822,36 @@ int phylink_ethtool_set_pauseparam(struc
- }
- EXPORT_SYMBOL_GPL(phylink_ethtool_set_pauseparam);
-
-+int phylink_ethtool_get_module_info(struct phylink *pl,
-+ struct ethtool_modinfo *modinfo)
-+{
-+ int ret = -EOPNOTSUPP;
-+
-+ mutex_lock(&pl->config_mutex);
-+ if (pl->module_ops)
-+ ret = pl->module_ops->get_module_info(pl->module_data,
-+ modinfo);
-+ mutex_unlock(&pl->config_mutex);
-+
-+ return ret;
-+}
-+EXPORT_SYMBOL_GPL(phylink_ethtool_get_module_info);
-+
-+int phylink_ethtool_get_module_eeprom(struct phylink *pl,
-+ struct ethtool_eeprom *ee, u8 *buf)
-+{
-+ int ret = -EOPNOTSUPP;
-+
-+ mutex_lock(&pl->config_mutex);
-+ if (pl->module_ops)
-+ ret = pl->module_ops->get_module_eeprom(pl->module_data, ee,
-+ buf);
-+ mutex_unlock(&pl->config_mutex);
-+
-+ return ret;
-+}
-+EXPORT_SYMBOL_GPL(phylink_ethtool_get_module_eeprom);
-+
- int phylink_init_eee(struct phylink *pl, bool clk_stop_enable)
- {
- int ret = -EPROTONOSUPPORT;
-@@ -1016,6 +1049,39 @@ EXPORT_SYMBOL_GPL(phylink_mii_ioctl);
-
-
-
-+int phylink_register_module(struct phylink *pl, void *data,
-+ const struct phylink_module_ops *ops)
-+{
-+ int ret = -EBUSY;
-+
-+ mutex_lock(&pl->config_mutex);
-+ if (!pl->module_ops) {
-+ pl->module_ops = ops;
-+ pl->module_data = data;
-+ ret = 0;
-+ }
-+ mutex_unlock(&pl->config_mutex);
-+
-+ return ret;
-+}
-+EXPORT_SYMBOL_GPL(phylink_register_module);
-+
-+int phylink_unregister_module(struct phylink *pl, void *data)
-+{
-+ int ret = -EINVAL;
-+
-+ mutex_lock(&pl->config_mutex);
-+ if (pl->module_data == data) {
-+ pl->module_ops = NULL;
-+ pl->module_data = NULL;
-+ ret = 0;
-+ }
-+ mutex_unlock(&pl->config_mutex);
-+
-+ return ret;
-+}
-+EXPORT_SYMBOL_GPL(phylink_unregister_module);
-+
- void phylink_disable(struct phylink *pl)
- {
- set_bit(PHYLINK_DISABLE_LINK, &pl->phylink_disable_state);
---- a/include/linux/phylink.h
-+++ b/include/linux/phylink.h
-@@ -55,6 +55,11 @@ struct phylink_mac_ops {
- struct phy_device *);
- };
-
-+struct phylink_module_ops {
-+ int (*get_module_info)(void *, struct ethtool_modinfo *);
-+ int (*get_module_eeprom)(void *, struct ethtool_eeprom *, u8 *);
-+};
-+
- struct phylink *phylink_create(struct net_device *, struct device_node *,
- phy_interface_t iface, const struct phylink_mac_ops *ops);
- void phylink_destroy(struct phylink *);
-@@ -75,12 +80,19 @@ void phylink_ethtool_get_pauseparam(stru
- struct ethtool_pauseparam *);
- int phylink_ethtool_set_pauseparam(struct phylink *,
- struct ethtool_pauseparam *);
-+int phylink_ethtool_get_module_info(struct phylink *, struct ethtool_modinfo *);
-+int phylink_ethtool_get_module_eeprom(struct phylink *,
-+ struct ethtool_eeprom *, u8 *);
- int phylink_init_eee(struct phylink *, bool);
- int phylink_get_eee_err(struct phylink *);
- int phylink_ethtool_get_eee(struct phylink *, struct ethtool_eee *);
- int phylink_ethtool_set_eee(struct phylink *, struct ethtool_eee *);
- int phylink_mii_ioctl(struct phylink *, struct ifreq *, int);
-
-+int phylink_register_module(struct phylink *, void *,
-+ const struct phylink_module_ops *);
-+int phylink_unregister_module(struct phylink *, void *);
-+
- void phylink_set_link_port(struct phylink *pl, u32 support, u8 port);
- int phylink_set_link_an_mode(struct phylink *pl, unsigned int mode);
- void phylink_disable(struct phylink *pl);