[kernel] r13849 - in dists/trunk/linux-2.6/debian: . patches/debian/dfsg patches/series
Ben Hutchings
benh at alioth.debian.org
Sun Jun 28 13:07:45 UTC 2009
Author: benh
Date: Sun Jun 28 13:07:41 2009
New Revision: 13849
Log:
Remove PHY firmware blobs from cxgb3
Added:
dists/trunk/linux-2.6/debian/patches/debian/dfsg/drivers-net-cxgb3.patch
Modified:
dists/trunk/linux-2.6/debian/changelog
dists/trunk/linux-2.6/debian/patches/debian/dfsg/files-1
dists/trunk/linux-2.6/debian/patches/series/orig-0
Modified: dists/trunk/linux-2.6/debian/changelog
==============================================================================
--- dists/trunk/linux-2.6/debian/changelog Sun Jun 28 13:03:48 2009 (r13848)
+++ dists/trunk/linux-2.6/debian/changelog Sun Jun 28 13:07:41 2009 (r13849)
@@ -5,6 +5,7 @@
[ Ben Hutchings ]
* mga: remove unnecessary change from firmware-loading patch
+ * cxgb3: remove PHY firmware
-- maximilian attems <maks at debian.org> Thu, 18 Jun 2009 23:50:56 +0200
Added: dists/trunk/linux-2.6/debian/patches/debian/dfsg/drivers-net-cxgb3.patch
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ dists/trunk/linux-2.6/debian/patches/debian/dfsg/drivers-net-cxgb3.patch Sun Jun 28 13:07:41 2009 (r13849)
@@ -0,0 +1,117 @@
+From c8a3b4da329c53ccaa8075344d9fe3bda0a9ae2e Mon Sep 17 00:00:00 2001
+From: Ben Hutchings <ben at decadent.org.uk>
+Date: Thu, 11 Jun 2009 14:25:05 +0100
+Subject: [PATCH] cxgb3: Disable AEL20xx firmware and mark it for removal
+
+---
+ drivers/net/cxgb3/ael1002.c | 21 +++++++++++++++++++++
+ 1 files changed, 21 insertions(+), 0 deletions(-)
+
+diff --git a/drivers/net/cxgb3/ael1002.c b/drivers/net/cxgb3/ael1002.c
+index 9fe008e..f94f237 100644
+--- a/drivers/net/cxgb3/ael1002.c
++++ b/drivers/net/cxgb3/ael1002.c
+@@ -298,12 +298,14 @@ unknown:
+ */
+ static int ael2005_setup_sr_edc(struct cphy *phy)
+ {
++#if 0
+ static struct reg_val regs[] = {
+ { MDIO_MMD_PMAPMD, 0xc003, 0xffff, 0x181 },
+ { MDIO_MMD_PMAPMD, 0xc010, 0xffff, 0x448a },
+ { MDIO_MMD_PMAPMD, 0xc04a, 0xffff, 0x5200 },
+ { 0, 0, 0, 0 }
+ };
++#ifdef REMOVE_DFSG
+ static u16 sr_edc[] = {
+ 0xcc00, 0x2ff4,
+ 0xcc01, 0x3cd4,
+@@ -577,6 +579,7 @@ static int ael2005_setup_sr_edc(struct cphy *phy)
+ 0xcd0d, 0x1002,
+ 0xcd0e, 0
+ };
++#endif /* REMOVE_DFSG */
+ int i, err;
+
+ err = set_phy_regs(phy, regs);
+@@ -591,10 +594,15 @@ static int ael2005_setup_sr_edc(struct cphy *phy)
+ if (!err)
+ phy->priv = edc_sr;
+ return err;
++#else
++ CH_ERR(phy->adapter, "SR EDC firmware not available\n");
++ return -ENODEV;
++#endif
+ }
+
+ static int ael2005_setup_twinax_edc(struct cphy *phy, int modtype)
+ {
++#if 0
+ static struct reg_val regs[] = {
+ { MDIO_MMD_PMAPMD, 0xc04a, 0xffff, 0x5a00 },
+ { 0, 0, 0, 0 }
+@@ -604,6 +612,7 @@ static int ael2005_setup_twinax_edc(struct cphy *phy, int modtype)
+ { MDIO_MMD_PMAPMD, 0xc015, 0xffff, 0xa000 },
+ { 0, 0, 0, 0 }
+ };
++#ifdef REMOVE_DFSG
+ static u16 twinax_edc[] = {
+ 0xcc00, 0x4009,
+ 0xcc01, 0x27ff,
+@@ -972,6 +981,7 @@ static int ael2005_setup_twinax_edc(struct cphy *phy, int modtype)
+ 0xcd6c, 0x1002,
+ 0xcd6d, 0
+ };
++#endif /* REMOVE_DFSG */
+ int i, err;
+
+ err = set_phy_regs(phy, regs);
+@@ -988,6 +998,10 @@ static int ael2005_setup_twinax_edc(struct cphy *phy, int modtype)
+ if (!err)
+ phy->priv = edc_twinax;
+ return err;
++#else
++ CH_ERR(phy->adapter, "TWINAX EDC firmware not available\n");
++ return -ENODEV;
++#endif
+ }
+
+ static int ael2005_get_module_type(struct cphy *phy, int delay_ms)
+@@ -1182,6 +1196,7 @@ static int ael2020_setup_sr_edc(struct cphy *phy)
+ */
+ static int ael2020_setup_twinax_edc(struct cphy *phy, int modtype)
+ {
++#if 0
+ /* set uC to 40MHz */
+ static struct reg_val uCclock40MHz[] = {
+ { MDIO_MMD_PMAPMD, 0xff28, 0xffff, 0x4001 },
+@@ -1202,6 +1217,7 @@ static int ael2020_setup_twinax_edc(struct cphy *phy, int modtype)
+ { 0, 0, 0, 0 }
+ };
+
++#ifdef REMOVE_DFSG
+ /* TWINAX EDC firmware */
+ static u16 twinax_edc[] = {
+ 0xd800, 0x4009,
+@@ -1600,6 +1616,7 @@ static int ael2020_setup_twinax_edc(struct cphy *phy, int modtype)
+ 0xd989, 0x1002,
+ 0xd98a, 0x0000,
+ };
++#endif /* REMOVE_DFSG */
+ int i, err;
+
+ /* set uC clock and activate it */
+@@ -1621,6 +1638,10 @@ static int ael2020_setup_twinax_edc(struct cphy *phy, int modtype)
+ if (!err)
+ phy->priv = edc_twinax;
+ return err;
++#else
++ CH_ERR(phy->adapter, "TWINAX EDC firmware not available\n");
++ return -ENODEV;
++#endif
+ }
+
+ /*
+--
+1.6.3.1
+
Modified: dists/trunk/linux-2.6/debian/patches/debian/dfsg/files-1
==============================================================================
--- dists/trunk/linux-2.6/debian/patches/debian/dfsg/files-1 Sun Jun 28 13:03:48 2009 (r13848)
+++ dists/trunk/linux-2.6/debian/patches/debian/dfsg/files-1 Sun Jun 28 13:07:41 2009 (r13849)
@@ -44,6 +44,8 @@
rm drivers/net/appletalk/cops_ffdrv.h
rm drivers/net/appletalk/cops_ltdrv.h
+unifdef drivers/net/cxgb3/ael1002.c -UREMOVE_DFSG
+
rm drivers/staging/me4000/me*_firmware.h
rm drivers/staging/otus/hal/hp*fw*.c*
Modified: dists/trunk/linux-2.6/debian/patches/series/orig-0
==============================================================================
--- dists/trunk/linux-2.6/debian/patches/series/orig-0 Sun Jun 28 13:03:48 2009 (r13848)
+++ dists/trunk/linux-2.6/debian/patches/series/orig-0 Sun Jun 28 13:07:41 2009 (r13849)
@@ -3,6 +3,7 @@
+ debian/dfsg/drivers-gpu-drm-r128-disable.patch
+ debian/dfsg/drivers-gpu-drm-radeon-disable.patch
+ debian/dfsg/drivers-net-appletalk-cops.patch
++ debian/dfsg/drivers-net-cxgb3.patch
+ debian/dfsg/drivers-staging-me4000-disable.patch
+ debian/dfsg/drivers-staging-otus-disable.patch
+ debian/dfsg/drivers-staging-rt2860-disable.patch
More information about the Kernel-svn-changes
mailing list