Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/aq/aq_main.c
| Show First 20 Lines • Show All 776 Lines • ▼ Show 20 Lines | if (err != 0) { | ||||
| softc->init_failed = true; | softc->init_failed = true; | ||||
| AQ_DBG_EXIT(err); | AQ_DBG_EXIT(err); | ||||
| return; | return; | ||||
| } | } | ||||
| softc->init_failed = false; | softc->init_failed = false; | ||||
| softc->init_retries = 0; | softc->init_retries = 0; | ||||
| /* aq_hw_init reloads the PHY, resetting the thermal-shutdown arming. */ | /* aq_hw_init reloads the PHY, resetting the thermal-shutdown arming. */ | ||||
| if (hw->fw_ops->thermal_arm != NULL && | if (hw->fw_ops->thermal_arm != NULL) { | ||||
| hw->fw_ops->thermal_arm(hw) != 0) | err = hw->fw_ops->thermal_arm(hw); | ||||
| if (err != 0 && err != ENOTSUP) | |||||
| device_printf(softc->dev, | device_printf(softc->dev, | ||||
| "could not arm PHY thermal shutdown\n"); | "could not arm PHY thermal shutdown\n"); | ||||
| } | |||||
| aq_if_media_status(ctx, &ifmr); | aq_if_media_status(ctx, &ifmr); | ||||
| aq_update_vlan_filters(softc); | aq_update_vlan_filters(softc); | ||||
| for (i = 0; i < softc->tx_rings_count; i++) { | for (i = 0; i < softc->tx_rings_count; i++) { | ||||
| struct aq_ring *ring = softc->tx_rings[i]; | struct aq_ring *ring = softc->tx_rings[i]; | ||||
| err = aq_ring_tx_init(&softc->hw, ring); | err = aq_ring_tx_init(&softc->hw, ring); | ||||
| ▲ Show 20 Lines • Show All 798 Lines • Show Last 20 Lines | |||||