lan78xx_read_reg
if ((err = lan78xx_read_reg(sc, ETH_USB_CFG0, &buf)) != 0) {
err = lan78xx_read_reg(sc, ETH_HW_CFG, &buf);
if ((err = lan78xx_read_reg(sc, ETH_USB_CFG0, &buf)) < 0) {
err = lan78xx_read_reg(sc, ETH_RFE_CTL, &buf);
err = lan78xx_read_reg(sc, ETH_MAC_CR, &buf);
err = lan78xx_read_reg(sc, ETH_INT_EP_CTL, &buf);
err = lan78xx_read_reg(sc, ETH_MAC_TX, &buf);
err = lan78xx_read_reg(sc, ETH_FCT_TX_CTL, &buf);
err = lan78xx_read_reg(sc, ETH_MAC_RX, &buf);
err = lan78xx_read_reg(sc, ETH_FCT_RX_CTL, &buf);
lan78xx_read_reg(sc, 0, &val);
if ((lan78xx_read_reg(sc, ETH_RX_ADDRL, &mac_l) == 0) &&
(lan78xx_read_reg(sc, ETH_RX_ADDRH, &mac_h) == 0)) {
ret = lan78xx_read_reg(sc, ETH_DP_SEL, &dp_sel);
if ((err = lan78xx_read_reg(sc, reg, &val)) != 0)
err = lan78xx_read_reg(sc, ETH_HW_CFG, &val);
if ((err = lan78xx_read_reg(sc, ETH_E2P_CMD, &val)) !=
if ((err = lan78xx_read_reg(sc, ETH_E2P_DATA, &val)) != 0)
err = lan78xx_read_reg(sc, OTP_PWR_DN, &val);
if ((err = lan78xx_read_reg(sc, OTP_RD_DATA, &val)) != 0)
lan78xx_read_reg(sc, ETH_MAC_RX, &buf);
lan78xx_read_reg(sc, ETH_MII_DATA, &val);
err = lan78xx_read_reg(sc, ETH_FCT_FLOW, &fct_flow);
lan78xx_read_reg(sc, ETH_HW_CFG, &hw_reg) == 0) {
if ((err = lan78xx_read_reg(sc, ETH_ID_REV, &buf)) < 0) {