aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/e1000e/netdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/intel/e1000e/netdev.c')
-rw-r--r--drivers/net/ethernet/intel/e1000e/netdev.c42
1 files changed, 9 insertions, 33 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c
index ec4a9759a6f2..16a73bd9f4cb 100644
--- a/drivers/net/ethernet/intel/e1000e/netdev.c
+++ b/drivers/net/ethernet/intel/e1000e/netdev.c
@@ -1,24 +1,5 @@
1// SPDX-License-Identifier: GPL-2.0 1// SPDX-License-Identifier: GPL-2.0
2/* Intel PRO/1000 Linux driver 2/* Copyright(c) 1999 - 2018 Intel Corporation. */
3 * Copyright(c) 1999 - 2015 Intel Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * The full GNU General Public License is included in this distribution in
15 * the file called "COPYING".
16 *
17 * Contact Information:
18 * Linux NICS <linux.nics@intel.com>
19 * e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
20 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
21 */
22 3
23#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 4#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
24 5
@@ -3331,7 +3312,7 @@ static int e1000e_write_mc_addr_list(struct net_device *netdev)
3331 return 0; 3312 return 0;
3332 } 3313 }
3333 3314
3334 mta_list = kzalloc(netdev_mc_count(netdev) * ETH_ALEN, GFP_ATOMIC); 3315 mta_list = kcalloc(netdev_mc_count(netdev), ETH_ALEN, GFP_ATOMIC);
3335 if (!mta_list) 3316 if (!mta_list)
3336 return -ENOMEM; 3317 return -ENOMEM;
3337 3318
@@ -3546,15 +3527,12 @@ s32 e1000e_get_base_timinca(struct e1000_adapter *adapter, u32 *timinca)
3546 } 3527 }
3547 break; 3528 break;
3548 case e1000_pch_spt: 3529 case e1000_pch_spt:
3549 if (er32(TSYNCRXCTL) & E1000_TSYNCRXCTL_SYSCFI) { 3530 /* Stable 24MHz frequency */
3550 /* Stable 24MHz frequency */ 3531 incperiod = INCPERIOD_24MHZ;
3551 incperiod = INCPERIOD_24MHZ; 3532 incvalue = INCVALUE_24MHZ;
3552 incvalue = INCVALUE_24MHZ; 3533 shift = INCVALUE_SHIFT_24MHZ;
3553 shift = INCVALUE_SHIFT_24MHZ; 3534 adapter->cc.shift = shift;
3554 adapter->cc.shift = shift; 3535 break;
3555 break;
3556 }
3557 return -EINVAL;
3558 case e1000_pch_cnp: 3536 case e1000_pch_cnp:
3559 if (er32(TSYNCRXCTL) & E1000_TSYNCRXCTL_SYSCFI) { 3537 if (er32(TSYNCRXCTL) & E1000_TSYNCRXCTL_SYSCFI) {
3560 /* Stable 24MHz frequency */ 3538 /* Stable 24MHz frequency */
@@ -6876,8 +6854,6 @@ static pci_ers_result_t e1000_io_slot_reset(struct pci_dev *pdev)
6876 result = PCI_ERS_RESULT_RECOVERED; 6854 result = PCI_ERS_RESULT_RECOVERED;
6877 } 6855 }
6878 6856
6879 pci_cleanup_aer_uncorrect_error_status(pdev);
6880
6881 return result; 6857 return result;
6882} 6858}
6883 6859
@@ -7614,7 +7590,7 @@ module_exit(e1000_exit_module);
7614 7590
7615MODULE_AUTHOR("Intel Corporation, <linux.nics@intel.com>"); 7591MODULE_AUTHOR("Intel Corporation, <linux.nics@intel.com>");
7616MODULE_DESCRIPTION("Intel(R) PRO/1000 Network Driver"); 7592MODULE_DESCRIPTION("Intel(R) PRO/1000 Network Driver");
7617MODULE_LICENSE("GPL"); 7593MODULE_LICENSE("GPL v2");
7618MODULE_VERSION(DRV_VERSION); 7594MODULE_VERSION(DRV_VERSION);
7619 7595
7620/* netdev.c */ 7596/* netdev.c */