rem: DEBUGOUT("MDI Write did not complete\n");
add: HW_DEBUGOUT("MDI Write did not complete");
context: em_write_phy_reg_ex(struct em_hw *hw,                    uint32_t reg_addr,                    uint16_t phy_data){    uint32_t i;    uint32_t mdic = 0;    const uint32_t phy_addr = 1;    DEBUGFUNC("em_write_phy_reg_ex");    if(reg_addr > MAX_PHY_REG_ADDRESS) {        DEBUGOUT1("PHY Address %d is out of range\n", reg_addr);        return -E1000_ERR_PARAM;    }    if(hw->mac_type > em_82543) {        /* Set up Op-code, Phy Address, register address, and data intended         * for the PHY register in the MDI Control register.  The MAC will take         * care of interfacing with the PHY to send the desired data.         */        mdic = (((uint32_t) phy_data) |                (reg_addr << E1000_MDIC_REG_SHIFT) |                (phy_addr << E1000_MDIC_PHY_SHIFT) |                (E1000_MDIC_OP_WRITE));        E1000_WRITE_REG(hw, MDIC, mdic);        /* Poll the ready bit to see if the MDI read completed */        for(i = 0; i < 640; i++) {            usec_delay(5);            mdic = E1000_READ_REG(hw, MDIC);            if(mdic & E1000_MDIC_READY) break;        }        if(!(mdic & E1000_MDIC_READY)) {            DEBUGOUT("MDI Write did not complete\n");            return -E1000_ERR_PHY;        }    } else {        /* We'll need to use the SW defined pins to shift the write command         * out to the PHY. We first send a preamble to the PHY to signal the         * beginning of the MII instruction.  This is done by sending 32         * consecutive "1" bits.         */        em_shift_out_mdi_bits(hw, PHY_PREAMBLE, PHY_PREAMBLE_SIZE);        /* Now combine the remaining required fields that will indicate a         * write operation. We use this method instead of calling the         * em_shift_out_mdi_bits routine for each field in the command. The         * format of a MII write instruction is as follows:         * <Preamble><SOF><Op Code><Phy Addr><Reg Addr><Turnaround><Data>.         */        mdic = ((PHY_TURNAROUND) | (reg_addr << 2) | (phy_addr << 7) |                (PHY_OP_WRITE << 12) | (PHY_SOF << 14));        mdic <<= 16;        mdic |= (uint32_t) phy_data;        em_shift_out_mdi_bits(hw, mdic, 32);    }    return E1000_SUCCESS;}