lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Wed, 2 Apr 2014 21:41:50 +0400
From:	mihailov ivan <mihailov.iaa@...il.com>
To:	netdev@...r.kernel.org
Subject: [PATCH] add missing support of 10mbit in emac/rgmii

In chips of emac/rgmii b'000' for 0/1 channel isn't suitable which
resulted in non working network interface in this mode.

Signed-off-by: Ivan Mikhaylov <mihailov.iaa@...il.com>

--- a/drivers/net/ethernet/ibm/
emac/rgmii.c    2014-03-31
07:40:15.000000000 +0400
+++ b/drivers/net/ethernet/ibm/emac/rgmii.c    2014-04-02
19:52:12.957559554 +0400
@@ -45,6 +45,7 @@

 /* RGMIIx_SSR */
 #define RGMII_SSR_MASK(idx)    (0x7 << ((idx) * 8))
+#define RGMII_SSR_10(idx)    (0x1 << ((idx) * 8))
 #define RGMII_SSR_100(idx)    (0x2 << ((idx) * 8))
 #define RGMII_SSR_1000(idx)    (0x4 << ((idx) * 8))

@@ -139,6 +140,8 @@
         ssr |= RGMII_SSR_1000(input);
     else if (speed == SPEED_100)
         ssr |= RGMII_SSR_100(input);
+    else if (speed == SPEED_10)
+        ssr |= RGMII_SSR_10(input);

     out_be32(&p->ssr, ssr);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists