hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/net/ethernet/intel/igb/e1000_82575.c
....@@ -466,7 +466,7 @@
466466 ? igb_setup_copper_link_82575
467467 : igb_setup_serdes_link_82575;
468468
469
- if (mac->type == e1000_82580) {
469
+ if (mac->type == e1000_82580 || mac->type == e1000_i350) {
470470 switch (hw->device_id) {
471471 /* feature not supported on these id's */
472472 case E1000_DEV_ID_DH89XXCC_SGMII:
....@@ -638,7 +638,7 @@
638638 dev_spec->sgmii_active = true;
639639 break;
640640 }
641
- /* fall through for I2C based SGMII */
641
+ fallthrough; /* for I2C based SGMII */
642642 case E1000_CTRL_EXT_LINK_MODE_PCIE_SERDES:
643643 /* read media type from SFP EEPROM */
644644 ret_val = igb_set_sfp_media_type_82575(hw);
....@@ -1704,7 +1704,7 @@
17041704 case E1000_CTRL_EXT_LINK_MODE_1000BASE_KX:
17051705 /* disable PCS autoneg and support parallel detect only */
17061706 pcs_autoneg = false;
1707
- /* fall through */
1707
+ fallthrough;
17081708 default:
17091709 if (hw->mac.type == e1000_82575 ||
17101710 hw->mac.type == e1000_82576) {
....@@ -2554,7 +2554,7 @@
25542554 /**
25552555 * __igb_access_emi_reg - Read/write EMI register
25562556 * @hw: pointer to the HW structure
2557
- * @addr: EMI address to program
2557
+ * @address: EMI address to program
25582558 * @data: pointer to value to read/write from/to the EMI address
25592559 * @read: boolean flag to indicate read or write
25602560 **/
....@@ -2590,7 +2590,7 @@
25902590 * igb_set_eee_i350 - Enable/disable EEE support
25912591 * @hw: pointer to the HW structure
25922592 * @adv1G: boolean flag enabling 1G EEE advertisement
2593
- * @adv100m: boolean flag enabling 100M EEE advertisement
2593
+ * @adv100M: boolean flag enabling 100M EEE advertisement
25942594 *
25952595 * Enable/disable EEE based on setting in dev_spec structure.
25962596 *
....@@ -2646,7 +2646,7 @@
26462646 * igb_set_eee_i354 - Enable/disable EEE support
26472647 * @hw: pointer to the HW structure
26482648 * @adv1G: boolean flag enabling 1G EEE advertisement
2649
- * @adv100m: boolean flag enabling 100M EEE advertisement
2649
+ * @adv100M: boolean flag enabling 100M EEE advertisement
26502650 *
26512651 * Enable/disable EEE legacy mode based on setting in dev_spec structure.
26522652 *