.. | .. |
---|
5117 | 5117 | |
---|
5118 | 5118 | /* Adjust EEE LED frequency */ |
---|
5119 | 5119 | RTL_W8(tp, EEE_LED, RTL_R8(tp, EEE_LED) & ~0x07); |
---|
| 5120 | + printk("r8169 EEE_LED value init: %x\n",RTL_R16(tp,0x18)); |
---|
| 5121 | + RTL_W16(tp, 0x18, 0x024F); |
---|
| 5122 | + printk("r8169 EEE_LED write: %x\n",RTL_R16(tp,0x18)); |
---|
| 5123 | + |
---|
5120 | 5124 | } |
---|
5121 | 5125 | |
---|
5122 | 5126 | static void rtl_hw_start_8411(struct rtl8169_private *tp) |
---|
.. | .. |
---|
7435 | 7439 | clk_disable_unprepare(data); |
---|
7436 | 7440 | } |
---|
7437 | 7441 | |
---|
7438 | | -extern ssize_t at24_mac1_read(unsigned char* mac); |
---|
| 7442 | +extern ssize_t at24_mac2_read(unsigned char* mac); |
---|
7439 | 7443 | static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) |
---|
7440 | 7444 | { |
---|
7441 | 7445 | const struct rtl_cfg_info *cfg = rtl_cfg_infos + ent->driver_data; |
---|
.. | .. |
---|
7598 | 7602 | // for (i = 0; i < ETH_ALEN; i++) |
---|
7599 | 7603 | // dev->dev_addr[i] = RTL_R8(tp, MAC0 + i); |
---|
7600 | 7604 | memset(mac, 0x00, 6); |
---|
7601 | | - at24_mac1_read(mac); |
---|
| 7605 | + at24_mac2_read(mac); |
---|
7602 | 7606 | |
---|
7603 | 7607 | if ((mac[0] == 0x68) && (mac[1] == 0xed)) |
---|
7604 | 7608 | { |
---|