diff options
author | Russell King <linux@armlinux.org.uk> | 2019-11-27 11:45:15 +0000 |
---|---|---|
committer | Jonas Gorski <jonas.gorski@gmail.com> | 2020-01-21 22:32:48 +0100 |
commit | e81a5b055658c599c37a07c3e83a7b08df81dd31 (patch) | |
tree | ea5b9c504e00e088925959acba464d20f9b52e4b /target/linux/mvebu/patches-4.19/408-sfp-more-cotsworks-fixes.patch | |
parent | 2982997f1b4e29af86c9041cf391ed5e21d12f55 (diff) | |
download | upstream-e81a5b055658c599c37a07c3e83a7b08df81dd31.tar.gz upstream-e81a5b055658c599c37a07c3e83a7b08df81dd31.tar.bz2 upstream-e81a5b055658c599c37a07c3e83a7b08df81dd31.zip |
kernel: remove obsolete phylink/SFP patches
Remove the old phylink/SFP patches from the OpenWRT build; these will
be updated with a new set in subsequent.
450-reprobe_sfp_phy is also removed for several reasons:
1) it is not in mainline.
2) it breaks copper modules that do not have a PHY.
3) it makes backporting the current patch set harder.
Discussion is ongoing with the patch author for a mainline Linux kernel
patch for this.
Signed-off-by: Russell King <linux@armlinux.org.uk>
Diffstat (limited to 'target/linux/mvebu/patches-4.19/408-sfp-more-cotsworks-fixes.patch')
-rw-r--r-- | target/linux/mvebu/patches-4.19/408-sfp-more-cotsworks-fixes.patch | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/target/linux/mvebu/patches-4.19/408-sfp-more-cotsworks-fixes.patch b/target/linux/mvebu/patches-4.19/408-sfp-more-cotsworks-fixes.patch deleted file mode 100644 index 69a31cb9f0..0000000000 --- a/target/linux/mvebu/patches-4.19/408-sfp-more-cotsworks-fixes.patch +++ /dev/null @@ -1,44 +0,0 @@ -From e26af2726067ff260b77485df6af8375b82bfb1d Mon Sep 17 00:00:00 2001 -From: Russell King <rmk+kernel@armlinux.org.uk> -Date: Sat, 23 Dec 2017 12:22:58 +0000 -Subject: [PATCH] sfp: more cotsworks fixes - -Cotsworks also gets the date code wrong. - -Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> ---- - drivers/net/phy/sfp.c | 15 ++++++++------- - 1 file changed, 8 insertions(+), 7 deletions(-) - ---- a/drivers/net/phy/sfp.c -+++ b/drivers/net/phy/sfp.c -@@ -1571,9 +1571,9 @@ static int sfp_sm_mod_probe(struct sfp * - return -EAGAIN; - } - -- /* Cotsworks do not seem to update the checksums when they -- * do the final programming with the final module part number, -- * serial number and date code. -+ /* Cotsworks do not seem to update the checksums when they update the -+ * module part number, serial number and date code. They also format -+ * the date code incorrectly. - */ - cotsworks = !memcmp(id.base.vendor_name, "COTSWORKS ", 16); - -@@ -1612,11 +1612,12 @@ static int sfp_sm_mod_probe(struct sfp * - - sfp->id = id; - -- date[0] = sfp->id.ext.datecode[4]; -- date[1] = sfp->id.ext.datecode[5]; -+ /* Cotsworks also gets the date code wrong. */ -+ date[0] = sfp->id.ext.datecode[4 - 2 * cotsworks]; -+ date[1] = sfp->id.ext.datecode[5 - 2 * cotsworks]; - date[2] = '-'; -- date[3] = sfp->id.ext.datecode[2]; -- date[4] = sfp->id.ext.datecode[3]; -+ date[3] = sfp->id.ext.datecode[2 + 2 * cotsworks]; -+ date[4] = sfp->id.ext.datecode[3 + 2 * cotsworks]; - date[5] = '-'; - date[6] = sfp->id.ext.datecode[0]; - date[7] = sfp->id.ext.datecode[1]; |