cpsw.c (7731b8bc94e599c9a79e428f3359ff2c34b7576a) | cpsw.c (6c1f0a1ffb7c2b0501521b9fc1f53b4109f1791b) |
---|---|
1/* 2 * Texas Instruments Ethernet Switch Driver 3 * 4 * Copyright (C) 2012 Texas Instruments 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation version 2. --- 2913 unchanged lines hidden (view full) --- 2922 priv_sl2->msg_enable = netif_msg_init(debug_level, CPSW_DEBUG); 2923 2924 if (is_valid_ether_addr(data->slave_data[1].mac_addr)) { 2925 memcpy(priv_sl2->mac_addr, data->slave_data[1].mac_addr, 2926 ETH_ALEN); 2927 dev_info(cpsw->dev, "cpsw: Detected MACID = %pM\n", 2928 priv_sl2->mac_addr); 2929 } else { | 1/* 2 * Texas Instruments Ethernet Switch Driver 3 * 4 * Copyright (C) 2012 Texas Instruments 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation version 2. --- 2913 unchanged lines hidden (view full) --- 2922 priv_sl2->msg_enable = netif_msg_init(debug_level, CPSW_DEBUG); 2923 2924 if (is_valid_ether_addr(data->slave_data[1].mac_addr)) { 2925 memcpy(priv_sl2->mac_addr, data->slave_data[1].mac_addr, 2926 ETH_ALEN); 2927 dev_info(cpsw->dev, "cpsw: Detected MACID = %pM\n", 2928 priv_sl2->mac_addr); 2929 } else { |
2930 random_ether_addr(priv_sl2->mac_addr); | 2930 eth_random_addr(priv_sl2->mac_addr); |
2931 dev_info(cpsw->dev, "cpsw: Random MACID = %pM\n", 2932 priv_sl2->mac_addr); 2933 } 2934 memcpy(ndev->dev_addr, priv_sl2->mac_addr, ETH_ALEN); 2935 2936 priv_sl2->emac_port = 1; 2937 cpsw->slaves[1].ndev = ndev; 2938 ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; --- 446 unchanged lines hidden --- | 2931 dev_info(cpsw->dev, "cpsw: Random MACID = %pM\n", 2932 priv_sl2->mac_addr); 2933 } 2934 memcpy(ndev->dev_addr, priv_sl2->mac_addr, ETH_ALEN); 2935 2936 priv_sl2->emac_port = 1; 2937 cpsw->slaves[1].ndev = ndev; 2938 ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; --- 446 unchanged lines hidden --- |