linux-am335x-joel 3.1rc: initial add
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-am335x-joel-3.1 / 0002-Enable-bit15-in-the-maccontrol-register-for-100Mbps.patch
1 From 5f4a12f2ab8c8a686875434bc9d4d60af5b16866 Mon Sep 17 00:00:00 2001
2 From: Steve Kipisz <s-kipisz2@ti.com>
3 Date: Thu, 6 Oct 2011 15:57:45 -0500
4 Subject: [PATCH 1/1] Enable bit15 in the maccontrol register for 100Mbps.
6 ---
7  drivers/net/cpsw.c |    2 ++
8  1 files changed, 2 insertions(+), 0 deletions(-)
10 diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c
11 index 402d8f6..080388c 100644
12 --- a/drivers/net/cpsw.c
13 +++ b/drivers/net/cpsw.c
14 @@ -399,6 +399,8 @@ static void _cpsw_adjust_link(struct cpsw_slave *slave,
15                         mac_control &= ~BIT(7); /* TODO: Do not enable  */
16                         phy->speed = 100;       /* gig support now      */
17                 }
18 +               if (phy->speed == 100)
19 +                       mac_control |= BIT(15);
20                 if (phy->duplex)
21                         mac_control |= BIT(0);  /* FULLDUPLEXEN */
22                 if (phy->interface == PHY_INTERFACE_MODE_RGMII) /* RGMII */
23 -- 
24 1.7.2.3