Lines Matching refs:net

94 		netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n",  in __smsc75xx_read_reg()
126 netdev_warn(dev->net, "Failed to write reg index 0x%08x: %d\n", in __smsc75xx_write_reg()
168 netdev_warn(dev->net, "Error reading MII_ACCESS\n"); in __smsc75xx_phy_wait_not_busy()
191 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_read\n"); in __smsc75xx_mdio_read()
203 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_read()
209 netdev_warn(dev->net, "Timed out reading MII reg %02X\n", idx); in __smsc75xx_mdio_read()
215 netdev_warn(dev->net, "Error reading MII_DATA\n"); in __smsc75xx_mdio_read()
238 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_write\n"); in __smsc75xx_mdio_write()
245 netdev_warn(dev->net, "Error writing MII_DATA\n"); in __smsc75xx_mdio_write()
257 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_write()
263 netdev_warn(dev->net, "Timed out writing MII reg %02X\n", idx); in __smsc75xx_mdio_write()
303 netdev_warn(dev->net, "Error reading E2P_CMD\n"); in smsc75xx_wait_eeprom()
313 netdev_warn(dev->net, "EEPROM read operation timeout\n"); in smsc75xx_wait_eeprom()
329 netdev_warn(dev->net, "Error reading E2P_CMD\n"); in smsc75xx_eeprom_confirm_not_busy()
339 netdev_warn(dev->net, "EEPROM is busy\n"); in smsc75xx_eeprom_confirm_not_busy()
360 netdev_warn(dev->net, "Error writing E2P_CMD\n"); in smsc75xx_read_eeprom()
370 netdev_warn(dev->net, "Error reading E2P_DATA\n"); in smsc75xx_read_eeprom()
398 netdev_warn(dev->net, "Error writing E2P_CMD\n"); in smsc75xx_write_eeprom()
412 netdev_warn(dev->net, "Error writing E2P_DATA\n"); in smsc75xx_write_eeprom()
420 netdev_warn(dev->net, "Error writing E2P_CMD\n"); in smsc75xx_write_eeprom()
442 netdev_warn(dev->net, "Error reading DP_SEL\n"); in smsc75xx_dataport_wait_not_busy()
452 netdev_warn(dev->net, "smsc75xx_dataport_wait_not_busy timed out\n"); in smsc75xx_dataport_wait_not_busy()
468 netdev_warn(dev->net, "smsc75xx_dataport_write busy on entry\n"); in smsc75xx_dataport_write()
474 netdev_warn(dev->net, "Error reading DP_SEL\n"); in smsc75xx_dataport_write()
482 netdev_warn(dev->net, "Error writing DP_SEL\n"); in smsc75xx_dataport_write()
489 netdev_warn(dev->net, "Error writing DP_ADDR\n"); in smsc75xx_dataport_write()
495 netdev_warn(dev->net, "Error writing DP_DATA\n"); in smsc75xx_dataport_write()
501 netdev_warn(dev->net, "Error writing DP_CMD\n"); in smsc75xx_dataport_write()
507 netdev_warn(dev->net, "smsc75xx_dataport_write timeout\n"); in smsc75xx_dataport_write()
530 netif_dbg(dev, drv, dev->net, "deferred multicast write 0x%08x\n", in smsc75xx_deferred_multicast_write()
538 netdev_warn(dev->net, "Error writing RFE_CRL\n"); in smsc75xx_deferred_multicast_write()
557 if (dev->net->flags & IFF_PROMISC) { in smsc75xx_set_multicast()
558 netif_dbg(dev, drv, dev->net, "promiscuous mode enabled\n"); in smsc75xx_set_multicast()
560 } else if (dev->net->flags & IFF_ALLMULTI) { in smsc75xx_set_multicast()
561 netif_dbg(dev, drv, dev->net, "receive all multicast enabled\n"); in smsc75xx_set_multicast()
563 } else if (!netdev_mc_empty(dev->net)) { in smsc75xx_set_multicast()
566 netif_dbg(dev, drv, dev->net, "receive multicast hash filter\n"); in smsc75xx_set_multicast()
576 netif_dbg(dev, drv, dev->net, "receive own packets only\n"); in smsc75xx_set_multicast()
604 netif_dbg(dev, link, dev->net, "rx pause %s, tx pause %s\n", in smsc75xx_update_flowcontrol()
608 netif_dbg(dev, link, dev->net, "half duplex\n"); in smsc75xx_update_flowcontrol()
613 netdev_warn(dev->net, "Error writing FLOW\n"); in smsc75xx_update_flowcontrol()
619 netdev_warn(dev->net, "Error writing FCT_FLOW\n"); in smsc75xx_update_flowcontrol()
634 smsc75xx_mdio_write(dev->net, mii->phy_id, PHY_INT_SRC, in smsc75xx_link_reset()
639 netdev_warn(dev->net, "Error writing INT_STS\n"); in smsc75xx_link_reset()
645 lcladv = smsc75xx_mdio_read(dev->net, mii->phy_id, MII_ADVERTISE); in smsc75xx_link_reset()
646 rmtadv = smsc75xx_mdio_read(dev->net, mii->phy_id, MII_LPA); in smsc75xx_link_reset()
648 netif_dbg(dev, link, dev->net, "speed: %u duplex: %d lcladv: %04x rmtadv: %04x\n", in smsc75xx_link_reset()
659 netdev_warn(dev->net, "unexpected urb length %d\n", in smsc75xx_status()
666 netif_dbg(dev, link, dev->net, "intdata: 0x%08X\n", intdata); in smsc75xx_status()
671 netdev_warn(dev->net, "unexpected interrupt, intdata=0x%08X\n", in smsc75xx_status()
675 static int smsc75xx_ethtool_get_eeprom_len(struct net_device *net) in smsc75xx_ethtool_get_eeprom_len() argument
696 netdev_warn(dev->net, "EEPROM: magic value mismatch: 0x%x\n", in smsc75xx_ethtool_set_eeprom()
704 static void smsc75xx_ethtool_get_wol(struct net_device *net, in smsc75xx_ethtool_get_wol() argument
707 struct usbnet *dev = netdev_priv(net); in smsc75xx_ethtool_get_wol()
714 static int smsc75xx_ethtool_set_wol(struct net_device *net, in smsc75xx_ethtool_set_wol() argument
717 struct usbnet *dev = netdev_priv(net); in smsc75xx_ethtool_set_wol()
728 netdev_warn(dev->net, "device_set_wakeup_enable error %d\n", ret); in smsc75xx_ethtool_set_wol()
765 ether_addr_copy(dev->net->dev_addr, mac_addr); in smsc75xx_init_mac_address()
771 dev->net->dev_addr) == 0) { in smsc75xx_init_mac_address()
772 if (is_valid_ether_addr(dev->net->dev_addr)) { in smsc75xx_init_mac_address()
774 netif_dbg(dev, ifup, dev->net, in smsc75xx_init_mac_address()
781 eth_hw_addr_random(dev->net); in smsc75xx_init_mac_address()
782 netif_dbg(dev, ifup, dev->net, "MAC address set to eth_random_addr\n"); in smsc75xx_init_mac_address()
787 u32 addr_lo = dev->net->dev_addr[0] | dev->net->dev_addr[1] << 8 | in smsc75xx_set_mac_address()
788 dev->net->dev_addr[2] << 16 | dev->net->dev_addr[3] << 24; in smsc75xx_set_mac_address()
789 u32 addr_hi = dev->net->dev_addr[4] | dev->net->dev_addr[5] << 8; in smsc75xx_set_mac_address()
793 netdev_warn(dev->net, "Failed to write RX_ADDRH: %d\n", ret); in smsc75xx_set_mac_address()
799 netdev_warn(dev->net, "Failed to write RX_ADDRL: %d\n", ret); in smsc75xx_set_mac_address()
806 netdev_warn(dev->net, "Failed to write ADDR_FILTX: %d\n", ret); in smsc75xx_set_mac_address()
812 netdev_warn(dev->net, "Failed to write ADDR_FILTX+4: %d\n", ret); in smsc75xx_set_mac_address()
822 dev->mii.dev = dev->net; in smsc75xx_phy_initialize()
831 smsc75xx_mdio_write(dev->net, dev->mii.phy_id, MII_BMCR, BMCR_RESET); in smsc75xx_phy_initialize()
835 bmcr = smsc75xx_mdio_read(dev->net, dev->mii.phy_id, MII_BMCR); in smsc75xx_phy_initialize()
837 netdev_warn(dev->net, "Error reading MII_BMCR\n"); in smsc75xx_phy_initialize()
844 netdev_warn(dev->net, "timeout on PHY Reset\n"); in smsc75xx_phy_initialize()
851 smsc75xx_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE, in smsc75xx_phy_initialize()
854 smsc75xx_mdio_write(dev->net, dev->mii.phy_id, MII_CTRL1000, in smsc75xx_phy_initialize()
858 ret = smsc75xx_mdio_read(dev->net, dev->mii.phy_id, PHY_INT_SRC); in smsc75xx_phy_initialize()
860 netdev_warn(dev->net, "Error reading PHY_INT_SRC\n"); in smsc75xx_phy_initialize()
864 smsc75xx_mdio_write(dev->net, dev->mii.phy_id, PHY_INT_SRC, 0xffff); in smsc75xx_phy_initialize()
866 smsc75xx_mdio_write(dev->net, dev->mii.phy_id, PHY_INT_MASK, in smsc75xx_phy_initialize()
870 netif_dbg(dev, ifup, dev->net, "phy initialised successfully\n"); in smsc75xx_phy_initialize()
882 netdev_warn(dev->net, "Failed to read MAC_RX: %d\n", ret); in smsc75xx_set_rx_max_frame_length()
892 netdev_warn(dev->net, "Failed to write MAC_RX: %d\n", ret); in smsc75xx_set_rx_max_frame_length()
903 netdev_warn(dev->net, "Failed to write MAC_RX: %d\n", ret); in smsc75xx_set_rx_max_frame_length()
911 netdev_warn(dev->net, "Failed to write MAC_RX: %d\n", ret); in smsc75xx_set_rx_max_frame_length()
926 netdev_warn(dev->net, "Failed to set mac rx frame length\n"); in smsc75xx_change_mtu()
954 netdev_warn(dev->net, "Error writing RFE_CTL\n"); in smsc75xx_set_features()
971 netdev_warn(dev->net, "Failed to read PMT_CTL: %d\n", ret); in smsc75xx_wait_ready()
982 netdev_warn(dev->net, "timeout waiting for device ready\n"); in smsc75xx_wait_ready()
993 smsc75xx_mdio_write(dev->net, mii->phy_id, MII_BMCR, 0x4040); in smsc75xx_phy_gig_workaround()
1003 netdev_warn(dev->net, "Timeout waiting for PHY link up\n"); in smsc75xx_phy_gig_workaround()
1010 netdev_warn(dev->net, "Failed to read PMT_CTL: %d\n", ret); in smsc75xx_phy_gig_workaround()
1018 netdev_warn(dev->net, "Failed to write PMT_CTL: %d\n", ret); in smsc75xx_phy_gig_workaround()
1027 netdev_warn(dev->net, "Failed to read PMT_CTL: %d\n", in smsc75xx_phy_gig_workaround()
1035 netdev_warn(dev->net, "timeout waiting for PHY Reset\n"); in smsc75xx_phy_gig_workaround()
1048 netif_dbg(dev, ifup, dev->net, "entering smsc75xx_reset\n"); in smsc75xx_reset()
1052 netdev_warn(dev->net, "device not ready in smsc75xx_reset\n"); in smsc75xx_reset()
1058 netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret); in smsc75xx_reset()
1066 netdev_warn(dev->net, "Failed to write HW_CFG: %d\n", ret); in smsc75xx_reset()
1075 netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret); in smsc75xx_reset()
1082 netdev_warn(dev->net, "timeout on completion of Lite Reset\n"); in smsc75xx_reset()
1086 netif_dbg(dev, ifup, dev->net, "Lite reset complete, resetting PHY\n"); in smsc75xx_reset()
1090 netdev_warn(dev->net, "Failed to read PMT_CTL: %d\n", ret); in smsc75xx_reset()
1098 netdev_warn(dev->net, "Failed to write PMT_CTL: %d\n", ret); in smsc75xx_reset()
1107 netdev_warn(dev->net, "Failed to read PMT_CTL: %d\n", ret); in smsc75xx_reset()
1114 netdev_warn(dev->net, "timeout waiting for PHY Reset\n"); in smsc75xx_reset()
1118 netif_dbg(dev, ifup, dev->net, "PHY reset complete\n"); in smsc75xx_reset()
1122 netdev_warn(dev->net, "Failed to set mac address\n"); in smsc75xx_reset()
1126 netif_dbg(dev, ifup, dev->net, "MAC Address: %pM\n", in smsc75xx_reset()
1127 dev->net->dev_addr); in smsc75xx_reset()
1131 netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret); in smsc75xx_reset()
1135 netif_dbg(dev, ifup, dev->net, "Read Value from HW_CFG : 0x%08x\n", in smsc75xx_reset()
1142 netdev_warn(dev->net, "Failed to write HW_CFG: %d\n", ret); in smsc75xx_reset()
1148 netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret); in smsc75xx_reset()
1152 netif_dbg(dev, ifup, dev->net, "Read Value from HW_CFG after writing HW_CFG_BIR: 0x%08x\n", in smsc75xx_reset()
1166 netif_dbg(dev, ifup, dev->net, "rx_urb_size=%ld\n", in smsc75xx_reset()
1171 netdev_warn(dev->net, "Failed to write BURST_CAP: %d\n", ret); in smsc75xx_reset()
1177 netdev_warn(dev->net, "Failed to read BURST_CAP: %d\n", ret); in smsc75xx_reset()
1181 netif_dbg(dev, ifup, dev->net, in smsc75xx_reset()
1186 netdev_warn(dev->net, "Failed to write BULK_IN_DLY: %d\n", ret); in smsc75xx_reset()
1192 netdev_warn(dev->net, "Failed to read BULK_IN_DLY: %d\n", ret); in smsc75xx_reset()
1196 netif_dbg(dev, ifup, dev->net, in smsc75xx_reset()
1202 netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret); in smsc75xx_reset()
1206 netif_dbg(dev, ifup, dev->net, "HW_CFG: 0x%08x\n", buf); in smsc75xx_reset()
1212 netdev_warn(dev->net, "Failed to write HW_CFG: %d\n", ret); in smsc75xx_reset()
1218 netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret); in smsc75xx_reset()
1222 netif_dbg(dev, ifup, dev->net, "HW_CFG: 0x%08x\n", buf); in smsc75xx_reset()
1229 netdev_warn(dev->net, "Failed to write FCT_RX_FIFO_END: %d\n", ret); in smsc75xx_reset()
1233 netif_dbg(dev, ifup, dev->net, "FCT_RX_FIFO_END set to 0x%08x\n", buf); in smsc75xx_reset()
1238 netdev_warn(dev->net, "Failed to write FCT_TX_FIFO_END: %d\n", ret); in smsc75xx_reset()
1242 netif_dbg(dev, ifup, dev->net, "FCT_TX_FIFO_END set to 0x%08x\n", buf); in smsc75xx_reset()
1246 netdev_warn(dev->net, "Failed to write INT_STS: %d\n", ret); in smsc75xx_reset()
1252 netdev_warn(dev->net, "Failed to read ID_REV: %d\n", ret); in smsc75xx_reset()
1256 netif_dbg(dev, ifup, dev->net, "ID_REV = 0x%08x\n", buf); in smsc75xx_reset()
1260 netdev_warn(dev->net, "Failed to read E2P_CMD: %d\n", ret); in smsc75xx_reset()
1268 netdev_warn(dev->net, "Failed to read LED_GPIO_CFG: %d\n", ret); in smsc75xx_reset()
1277 netdev_warn(dev->net, "Failed to write LED_GPIO_CFG: %d\n", ret); in smsc75xx_reset()
1284 netdev_warn(dev->net, "Failed to write FLOW: %d\n", ret); in smsc75xx_reset()
1290 netdev_warn(dev->net, "Failed to write FCT_FLOW: %d\n", ret); in smsc75xx_reset()
1297 netdev_warn(dev->net, "Failed to read RFE_CTL: %d\n", ret); in smsc75xx_reset()
1305 netdev_warn(dev->net, "Failed to write RFE_CTL: %d\n", ret); in smsc75xx_reset()
1311 netdev_warn(dev->net, "Failed to read RFE_CTL: %d\n", ret); in smsc75xx_reset()
1315 netif_dbg(dev, ifup, dev->net, "RFE_CTL set to 0x%08x\n", in smsc75xx_reset()
1319 smsc75xx_set_features(dev->net, dev->net->features); in smsc75xx_reset()
1321 smsc75xx_set_multicast(dev->net); in smsc75xx_reset()
1325 netdev_warn(dev->net, "Failed to initialize PHY: %d\n", ret); in smsc75xx_reset()
1331 netdev_warn(dev->net, "Failed to read INT_EP_CTL: %d\n", ret); in smsc75xx_reset()
1340 netdev_warn(dev->net, "Failed to write INT_EP_CTL: %d\n", ret); in smsc75xx_reset()
1347 netdev_warn(dev->net, "Failed to read MAC_CR: %d\n", ret); in smsc75xx_reset()
1354 netdev_warn(dev->net, "Failed to write MAC_CR: %d\n", ret); in smsc75xx_reset()
1360 netdev_warn(dev->net, "Failed to read MAC_TX: %d\n", ret); in smsc75xx_reset()
1368 netdev_warn(dev->net, "Failed to write MAC_TX: %d\n", ret); in smsc75xx_reset()
1372 netif_dbg(dev, ifup, dev->net, "MAC_TX set to 0x%08x\n", buf); in smsc75xx_reset()
1376 netdev_warn(dev->net, "Failed to read FCT_TX_CTL: %d\n", ret); in smsc75xx_reset()
1384 netdev_warn(dev->net, "Failed to write FCT_TX_CTL: %d\n", ret); in smsc75xx_reset()
1388 netif_dbg(dev, ifup, dev->net, "FCT_TX_CTL set to 0x%08x\n", buf); in smsc75xx_reset()
1390 ret = smsc75xx_set_rx_max_frame_length(dev, dev->net->mtu + ETH_HLEN); in smsc75xx_reset()
1392 netdev_warn(dev->net, "Failed to set max rx frame length\n"); in smsc75xx_reset()
1398 netdev_warn(dev->net, "Failed to read MAC_RX: %d\n", ret); in smsc75xx_reset()
1406 netdev_warn(dev->net, "Failed to write MAC_RX: %d\n", ret); in smsc75xx_reset()
1410 netif_dbg(dev, ifup, dev->net, "MAC_RX set to 0x%08x\n", buf); in smsc75xx_reset()
1414 netdev_warn(dev->net, "Failed to read FCT_RX_CTL: %d\n", ret); in smsc75xx_reset()
1422 netdev_warn(dev->net, "Failed to write FCT_RX_CTL: %d\n", ret); in smsc75xx_reset()
1426 netif_dbg(dev, ifup, dev->net, "FCT_RX_CTL set to 0x%08x\n", buf); in smsc75xx_reset()
1428 netif_dbg(dev, ifup, dev->net, "smsc75xx_reset, return 0\n"); in smsc75xx_reset()
1455 netdev_warn(dev->net, "usbnet_get_endpoints failed: %d\n", ret); in smsc75xx_bind()
1474 dev->net->features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM; in smsc75xx_bind()
1477 dev->net->features |= NETIF_F_RXCSUM; in smsc75xx_bind()
1479 dev->net->hw_features = NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | in smsc75xx_bind()
1484 netdev_warn(dev->net, "device not ready in smsc75xx_bind\n"); in smsc75xx_bind()
1493 netdev_warn(dev->net, "smsc75xx_reset error %d\n", ret); in smsc75xx_bind()
1497 dev->net->netdev_ops = &smsc75xx_netdev_ops; in smsc75xx_bind()
1498 dev->net->ethtool_ops = &smsc75xx_ethtool_ops; in smsc75xx_bind()
1499 dev->net->flags |= IFF_MULTICAST; in smsc75xx_bind()
1500 dev->net->hard_header_len += SMSC75XX_TX_OVERHEAD; in smsc75xx_bind()
1501 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in smsc75xx_bind()
1502 dev->net->max_mtu = MAX_SINGLE_PACKET_SIZE; in smsc75xx_bind()
1511 netif_dbg(dev, ifdown, dev->net, "free pdata\n"); in smsc75xx_unbind()
1532 netdev_warn(dev->net, "Error writing WUF_CFGX\n"); in smsc75xx_write_wuff()
1538 netdev_warn(dev->net, "Error writing WUF_MASKX\n"); in smsc75xx_write_wuff()
1544 netdev_warn(dev->net, "Error writing WUF_MASKX\n"); in smsc75xx_write_wuff()
1550 netdev_warn(dev->net, "Error writing WUF_MASKX\n"); in smsc75xx_write_wuff()
1556 netdev_warn(dev->net, "Error writing WUF_MASKX\n"); in smsc75xx_write_wuff()
1571 netdev_warn(dev->net, "Error reading PMT_CTL\n"); in smsc75xx_enter_suspend0()
1580 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_enter_suspend0()
1597 netdev_warn(dev->net, "Error reading PMT_CTL\n"); in smsc75xx_enter_suspend1()
1606 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_enter_suspend1()
1616 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_enter_suspend1()
1633 netdev_warn(dev->net, "Error reading PMT_CTL\n"); in smsc75xx_enter_suspend2()
1642 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_enter_suspend2()
1659 netdev_warn(dev->net, "Error reading FCT_RX_CTL\n"); in smsc75xx_enter_suspend3()
1664 netdev_dbg(dev->net, "rx fifo not empty in autosuspend\n"); in smsc75xx_enter_suspend3()
1670 netdev_warn(dev->net, "Error reading PMT_CTL\n"); in smsc75xx_enter_suspend3()
1679 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_enter_suspend3()
1689 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_enter_suspend3()
1703 netdev_dbg(dev->net, "enabling PHY wakeup interrupts\n"); in smsc75xx_enable_phy_wakeup_interrupts()
1706 ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, PHY_INT_SRC); in smsc75xx_enable_phy_wakeup_interrupts()
1708 netdev_warn(dev->net, "Error reading PHY_INT_SRC\n"); in smsc75xx_enable_phy_wakeup_interrupts()
1713 ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, PHY_INT_MASK); in smsc75xx_enable_phy_wakeup_interrupts()
1715 netdev_warn(dev->net, "Error reading PHY_INT_MASK\n"); in smsc75xx_enable_phy_wakeup_interrupts()
1721 smsc75xx_mdio_write_nopm(dev->net, mii->phy_id, PHY_INT_MASK, ret); in smsc75xx_enable_phy_wakeup_interrupts()
1732 ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, MII_BMSR); in smsc75xx_link_ok_nopm()
1734 netdev_warn(dev->net, "Error reading MII_BMSR\n"); in smsc75xx_link_ok_nopm()
1738 ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, MII_BMSR); in smsc75xx_link_ok_nopm()
1740 netdev_warn(dev->net, "Error reading MII_BMSR\n"); in smsc75xx_link_ok_nopm()
1751 if (!netif_running(dev->net)) { in smsc75xx_autosuspend()
1753 netdev_dbg(dev->net, "autosuspend entering SUSPEND2\n"); in smsc75xx_autosuspend()
1759 netdev_dbg(dev->net, "autosuspend entering SUSPEND1\n"); in smsc75xx_autosuspend()
1765 netdev_warn(dev->net, "error enabling PHY wakeup ints\n"); in smsc75xx_autosuspend()
1769 netdev_info(dev->net, "entering SUSPEND1 mode\n"); in smsc75xx_autosuspend()
1777 netdev_warn(dev->net, "error enabling PHY wakeup ints\n"); in smsc75xx_autosuspend()
1781 netdev_dbg(dev->net, "autosuspend entering SUSPEND3\n"); in smsc75xx_autosuspend()
1794 netdev_warn(dev->net, "usbnet_suspend error\n"); in smsc75xx_suspend()
1799 netdev_warn(dev->net, "error during last resume\n"); in smsc75xx_suspend()
1817 netdev_info(dev->net, "entering SUSPEND2 mode\n"); in smsc75xx_suspend()
1822 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_suspend()
1830 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_suspend()
1836 netdev_warn(dev->net, "Error reading PMT_CTL\n"); in smsc75xx_suspend()
1844 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_suspend()
1856 netdev_warn(dev->net, "error enabling PHY wakeup ints\n"); in smsc75xx_suspend()
1865 netdev_info(dev->net, "entering SUSPEND1 mode\n"); in smsc75xx_suspend()
1868 ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, in smsc75xx_suspend()
1871 netdev_warn(dev->net, "Error reading PHY_MODE_CTRL_STS\n"); in smsc75xx_suspend()
1877 smsc75xx_mdio_write_nopm(dev->net, mii->phy_id, in smsc75xx_suspend()
1893 netdev_warn(dev->net, "Error writing WUF_CFGX\n"); in smsc75xx_suspend()
1900 netdev_info(dev->net, "enabling multicast detection\n"); in smsc75xx_suspend()
1906 netdev_warn(dev->net, "Error writing wakeup filter\n"); in smsc75xx_suspend()
1913 netdev_info(dev->net, "enabling ARP detection\n"); in smsc75xx_suspend()
1919 netdev_warn(dev->net, "Error writing wakeup filter\n"); in smsc75xx_suspend()
1927 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_suspend()
1935 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_suspend()
1939 netdev_info(dev->net, "enabling packet match detection\n"); in smsc75xx_suspend()
1942 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_suspend()
1950 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_suspend()
1954 netdev_info(dev->net, "disabling packet match detection\n"); in smsc75xx_suspend()
1957 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_suspend()
1965 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_suspend()
1973 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_suspend()
1981 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_suspend()
1986 netdev_info(dev->net, "enabling PHY wakeup\n"); in smsc75xx_suspend()
1990 netdev_warn(dev->net, "Error reading PMT_CTL\n"); in smsc75xx_suspend()
2000 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_suspend()
2006 netdev_info(dev->net, "enabling magic packet wakeup\n"); in smsc75xx_suspend()
2009 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_suspend()
2018 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_suspend()
2024 netdev_info(dev->net, "enabling broadcast detection\n"); in smsc75xx_suspend()
2027 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_suspend()
2035 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_suspend()
2041 netdev_info(dev->net, "enabling unicast detection\n"); in smsc75xx_suspend()
2044 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_suspend()
2052 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_suspend()
2060 netdev_warn(dev->net, "Failed to read MAC_RX: %d\n", ret); in smsc75xx_suspend()
2068 netdev_warn(dev->net, "Failed to write MAC_RX: %d\n", ret); in smsc75xx_suspend()
2073 netdev_info(dev->net, "entering SUSPEND0 mode\n"); in smsc75xx_suspend()
2094 netdev_dbg(dev->net, "resume suspend_flags=0x%02x\n", suspend_flags); in smsc75xx_resume()
2103 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_resume()
2112 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_resume()
2119 netdev_warn(dev->net, "Error reading PMT_CTL\n"); in smsc75xx_resume()
2128 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_resume()
2134 netdev_info(dev->net, "resuming from SUSPEND2\n"); in smsc75xx_resume()
2138 netdev_warn(dev->net, "Error reading PMT_CTL\n"); in smsc75xx_resume()
2146 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_resume()
2153 netdev_warn(dev->net, "device not ready in smsc75xx_resume\n"); in smsc75xx_resume()
2163 if (!(dev->net->features & NETIF_F_RXCSUM) || in smsc75xx_rx_csum_offload()
2175 if (skb->len < dev->net->hard_header_len) in smsc75xx_rx_fixup()
2196 netif_dbg(dev, rx_err, dev->net, in smsc75xx_rx_fixup()
2198 dev->net->stats.rx_errors++; in smsc75xx_rx_fixup()
2199 dev->net->stats.rx_dropped++; in smsc75xx_rx_fixup()
2202 dev->net->stats.rx_crc_errors++; in smsc75xx_rx_fixup()
2204 dev->net->stats.rx_frame_errors++; in smsc75xx_rx_fixup()
2208 netif_dbg(dev, rx_err, dev->net, in smsc75xx_rx_fixup()
2227 netdev_warn(dev->net, "Error allocating skb\n"); in smsc75xx_rx_fixup()