Lines Matching full:net

91 		netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n",  in __smsc75xx_read_reg()
123 netdev_warn(dev->net, "Failed to write reg index 0x%08x: %d\n", in __smsc75xx_write_reg()
165 netdev_warn(dev->net, "Error reading MII_ACCESS\n"); in __smsc75xx_phy_wait_not_busy()
188 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_read\n"); in __smsc75xx_mdio_read()
200 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_read()
206 netdev_warn(dev->net, "Timed out reading MII reg %02X\n", idx); in __smsc75xx_mdio_read()
212 netdev_warn(dev->net, "Error reading MII_DATA\n"); in __smsc75xx_mdio_read()
235 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_write\n"); in __smsc75xx_mdio_write()
242 netdev_warn(dev->net, "Error writing MII_DATA\n"); in __smsc75xx_mdio_write()
254 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_write()
260 netdev_warn(dev->net, "Timed out writing MII reg %02X\n", idx); in __smsc75xx_mdio_write()
300 netdev_warn(dev->net, "Error reading E2P_CMD\n"); in smsc75xx_wait_eeprom()
310 netdev_warn(dev->net, "EEPROM read operation timeout\n"); in smsc75xx_wait_eeprom()
326 netdev_warn(dev->net, "Error reading E2P_CMD\n"); in smsc75xx_eeprom_confirm_not_busy()
336 netdev_warn(dev->net, "EEPROM is busy\n"); in smsc75xx_eeprom_confirm_not_busy()
357 netdev_warn(dev->net, "Error writing E2P_CMD\n"); in smsc75xx_read_eeprom()
367 netdev_warn(dev->net, "Error reading E2P_DATA\n"); in smsc75xx_read_eeprom()
395 netdev_warn(dev->net, "Error writing E2P_CMD\n"); in smsc75xx_write_eeprom()
409 netdev_warn(dev->net, "Error writing E2P_DATA\n"); in smsc75xx_write_eeprom()
417 netdev_warn(dev->net, "Error writing E2P_CMD\n"); in smsc75xx_write_eeprom()
439 netdev_warn(dev->net, "Error reading DP_SEL\n"); in smsc75xx_dataport_wait_not_busy()
449 netdev_warn(dev->net, "smsc75xx_dataport_wait_not_busy timed out\n"); in smsc75xx_dataport_wait_not_busy()
465 netdev_warn(dev->net, "smsc75xx_dataport_write busy on entry\n"); in smsc75xx_dataport_write()
471 netdev_warn(dev->net, "Error reading DP_SEL\n"); in smsc75xx_dataport_write()
479 netdev_warn(dev->net, "Error writing DP_SEL\n"); in smsc75xx_dataport_write()
486 netdev_warn(dev->net, "Error writing DP_ADDR\n"); in smsc75xx_dataport_write()
492 netdev_warn(dev->net, "Error writing DP_DATA\n"); in smsc75xx_dataport_write()
498 netdev_warn(dev->net, "Error writing DP_CMD\n"); in smsc75xx_dataport_write()
504 netdev_warn(dev->net, "smsc75xx_dataport_write timeout\n"); in smsc75xx_dataport_write()
527 netif_dbg(dev, drv, dev->net, "deferred multicast write 0x%08x\n", in smsc75xx_deferred_multicast_write()
535 netdev_warn(dev->net, "Error writing RFE_CRL\n"); in smsc75xx_deferred_multicast_write()
554 if (dev->net->flags & IFF_PROMISC) { in smsc75xx_set_multicast()
555 netif_dbg(dev, drv, dev->net, "promiscuous mode enabled\n"); in smsc75xx_set_multicast()
557 } else if (dev->net->flags & IFF_ALLMULTI) { in smsc75xx_set_multicast()
558 netif_dbg(dev, drv, dev->net, "receive all multicast enabled\n"); in smsc75xx_set_multicast()
560 } else if (!netdev_mc_empty(dev->net)) { in smsc75xx_set_multicast()
563 netif_dbg(dev, drv, dev->net, "receive multicast hash filter\n"); in smsc75xx_set_multicast()
573 netif_dbg(dev, drv, dev->net, "receive own packets only\n"); in smsc75xx_set_multicast()
601 netif_dbg(dev, link, dev->net, "rx pause %s, tx pause %s\n", in smsc75xx_update_flowcontrol()
605 netif_dbg(dev, link, dev->net, "half duplex\n"); in smsc75xx_update_flowcontrol()
610 netdev_warn(dev->net, "Error writing FLOW\n"); in smsc75xx_update_flowcontrol()
616 netdev_warn(dev->net, "Error writing FCT_FLOW\n"); in smsc75xx_update_flowcontrol()
631 smsc75xx_mdio_write(dev->net, mii->phy_id, PHY_INT_SRC, in smsc75xx_link_reset()
636 netdev_warn(dev->net, "Error writing INT_STS\n"); in smsc75xx_link_reset()
642 lcladv = smsc75xx_mdio_read(dev->net, mii->phy_id, MII_ADVERTISE); in smsc75xx_link_reset()
643 rmtadv = smsc75xx_mdio_read(dev->net, mii->phy_id, MII_LPA); in smsc75xx_link_reset()
645 netif_dbg(dev, link, dev->net, "speed: %u duplex: %d lcladv: %04x rmtadv: %04x\n", in smsc75xx_link_reset()
656 netdev_warn(dev->net, "unexpected urb length %d\n", in smsc75xx_status()
663 netif_dbg(dev, link, dev->net, "intdata: 0x%08X\n", intdata); in smsc75xx_status()
668 netdev_warn(dev->net, "unexpected interrupt, intdata=0x%08X\n", in smsc75xx_status()
672 static int smsc75xx_ethtool_get_eeprom_len(struct net_device *net) in smsc75xx_ethtool_get_eeprom_len() argument
693 netdev_warn(dev->net, "EEPROM: magic value mismatch: 0x%x\n", in smsc75xx_ethtool_set_eeprom()
701 static void smsc75xx_ethtool_get_wol(struct net_device *net, in smsc75xx_ethtool_get_wol() argument
704 struct usbnet *dev = netdev_priv(net); in smsc75xx_ethtool_get_wol()
711 static int smsc75xx_ethtool_set_wol(struct net_device *net, in smsc75xx_ethtool_set_wol() argument
714 struct usbnet *dev = netdev_priv(net); in smsc75xx_ethtool_set_wol()
725 netdev_warn(dev->net, "device_set_wakeup_enable error %d\n", ret); in smsc75xx_ethtool_set_wol()
760 if (!platform_get_ethdev_address(&dev->udev->dev, dev->net)) { in smsc75xx_init_mac_address()
761 if (is_valid_ether_addr(dev->net->dev_addr)) { in smsc75xx_init_mac_address()
763 netif_dbg(dev, ifup, dev->net, "MAC address read from the device tree\n"); in smsc75xx_init_mac_address()
770 eth_hw_addr_set(dev->net, addr); in smsc75xx_init_mac_address()
771 if (is_valid_ether_addr(dev->net->dev_addr)) { in smsc75xx_init_mac_address()
773 netif_dbg(dev, ifup, dev->net, in smsc75xx_init_mac_address()
780 eth_hw_addr_random(dev->net); in smsc75xx_init_mac_address()
781 netif_dbg(dev, ifup, dev->net, "MAC address set to eth_random_addr\n"); in smsc75xx_init_mac_address()
786 u32 addr_lo = dev->net->dev_addr[0] | dev->net->dev_addr[1] << 8 | in smsc75xx_set_mac_address()
787 dev->net->dev_addr[2] << 16 | dev->net->dev_addr[3] << 24; in smsc75xx_set_mac_address()
788 u32 addr_hi = dev->net->dev_addr[4] | dev->net->dev_addr[5] << 8; in smsc75xx_set_mac_address()
792 netdev_warn(dev->net, "Failed to write RX_ADDRH: %d\n", ret); in smsc75xx_set_mac_address()
798 netdev_warn(dev->net, "Failed to write RX_ADDRL: %d\n", ret); in smsc75xx_set_mac_address()
805 netdev_warn(dev->net, "Failed to write ADDR_FILTX: %d\n", ret); in smsc75xx_set_mac_address()
811 netdev_warn(dev->net, "Failed to write ADDR_FILTX+4: %d\n", ret); in smsc75xx_set_mac_address()
821 dev->mii.dev = dev->net; in smsc75xx_phy_initialize()
830 smsc75xx_mdio_write(dev->net, dev->mii.phy_id, MII_BMCR, BMCR_RESET); in smsc75xx_phy_initialize()
834 bmcr = smsc75xx_mdio_read(dev->net, dev->mii.phy_id, MII_BMCR); in smsc75xx_phy_initialize()
836 netdev_warn(dev->net, "Error reading MII_BMCR\n"); in smsc75xx_phy_initialize()
843 netdev_warn(dev->net, "timeout on PHY Reset\n"); in smsc75xx_phy_initialize()
850 smsc75xx_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE, in smsc75xx_phy_initialize()
853 smsc75xx_mdio_write(dev->net, dev->mii.phy_id, MII_CTRL1000, in smsc75xx_phy_initialize()
857 ret = smsc75xx_mdio_read(dev->net, dev->mii.phy_id, PHY_INT_SRC); in smsc75xx_phy_initialize()
859 netdev_warn(dev->net, "Error reading PHY_INT_SRC\n"); in smsc75xx_phy_initialize()
863 smsc75xx_mdio_write(dev->net, dev->mii.phy_id, PHY_INT_SRC, 0xffff); in smsc75xx_phy_initialize()
865 smsc75xx_mdio_write(dev->net, dev->mii.phy_id, PHY_INT_MASK, in smsc75xx_phy_initialize()
869 netif_dbg(dev, ifup, dev->net, "phy initialised successfully\n"); in smsc75xx_phy_initialize()
881 netdev_warn(dev->net, "Failed to read MAC_RX: %d\n", ret); in smsc75xx_set_rx_max_frame_length()
891 netdev_warn(dev->net, "Failed to write MAC_RX: %d\n", ret); in smsc75xx_set_rx_max_frame_length()
902 netdev_warn(dev->net, "Failed to write MAC_RX: %d\n", ret); in smsc75xx_set_rx_max_frame_length()
910 netdev_warn(dev->net, "Failed to write MAC_RX: %d\n", ret); in smsc75xx_set_rx_max_frame_length()
925 netdev_warn(dev->net, "Failed to set mac rx frame length\n"); in smsc75xx_change_mtu()
953 netdev_warn(dev->net, "Error writing RFE_CTL\n"); in smsc75xx_set_features()
970 netdev_warn(dev->net, "Failed to read PMT_CTL: %d\n", ret); in smsc75xx_wait_ready()
981 netdev_warn(dev->net, "timeout waiting for device ready\n"); in smsc75xx_wait_ready()
992 smsc75xx_mdio_write(dev->net, mii->phy_id, MII_BMCR, 0x4040); in smsc75xx_phy_gig_workaround()
1002 netdev_warn(dev->net, "Timeout waiting for PHY link up\n"); in smsc75xx_phy_gig_workaround()
1009 netdev_warn(dev->net, "Failed to read PMT_CTL: %d\n", ret); in smsc75xx_phy_gig_workaround()
1017 netdev_warn(dev->net, "Failed to write PMT_CTL: %d\n", ret); in smsc75xx_phy_gig_workaround()
1026 netdev_warn(dev->net, "Failed to read PMT_CTL: %d\n", in smsc75xx_phy_gig_workaround()
1034 netdev_warn(dev->net, "timeout waiting for PHY Reset\n"); in smsc75xx_phy_gig_workaround()
1047 netif_dbg(dev, ifup, dev->net, "entering smsc75xx_reset\n"); in smsc75xx_reset()
1051 netdev_warn(dev->net, "device not ready in smsc75xx_reset\n"); in smsc75xx_reset()
1057 netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret); in smsc75xx_reset()
1065 netdev_warn(dev->net, "Failed to write HW_CFG: %d\n", ret); in smsc75xx_reset()
1074 netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret); in smsc75xx_reset()
1081 netdev_warn(dev->net, "timeout on completion of Lite Reset\n"); in smsc75xx_reset()
1085 netif_dbg(dev, ifup, dev->net, "Lite reset complete, resetting PHY\n"); in smsc75xx_reset()
1089 netdev_warn(dev->net, "Failed to read PMT_CTL: %d\n", ret); in smsc75xx_reset()
1097 netdev_warn(dev->net, "Failed to write PMT_CTL: %d\n", ret); in smsc75xx_reset()
1106 netdev_warn(dev->net, "Failed to read PMT_CTL: %d\n", ret); in smsc75xx_reset()
1113 netdev_warn(dev->net, "timeout waiting for PHY Reset\n"); in smsc75xx_reset()
1117 netif_dbg(dev, ifup, dev->net, "PHY reset complete\n"); in smsc75xx_reset()
1121 netdev_warn(dev->net, "Failed to set mac address\n"); in smsc75xx_reset()
1125 netif_dbg(dev, ifup, dev->net, "MAC Address: %pM\n", in smsc75xx_reset()
1126 dev->net->dev_addr); in smsc75xx_reset()
1130 netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret); in smsc75xx_reset()
1134 netif_dbg(dev, ifup, dev->net, "Read Value from HW_CFG : 0x%08x\n", in smsc75xx_reset()
1141 netdev_warn(dev->net, "Failed to write HW_CFG: %d\n", ret); in smsc75xx_reset()
1147 netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret); in smsc75xx_reset()
1151 netif_dbg(dev, ifup, dev->net, "Read Value from HW_CFG after writing HW_CFG_BIR: 0x%08x\n", in smsc75xx_reset()
1165 netif_dbg(dev, ifup, dev->net, "rx_urb_size=%ld\n", in smsc75xx_reset()
1170 netdev_warn(dev->net, "Failed to write BURST_CAP: %d\n", ret); in smsc75xx_reset()
1176 netdev_warn(dev->net, "Failed to read BURST_CAP: %d\n", ret); in smsc75xx_reset()
1180 netif_dbg(dev, ifup, dev->net, in smsc75xx_reset()
1185 netdev_warn(dev->net, "Failed to write BULK_IN_DLY: %d\n", ret); in smsc75xx_reset()
1191 netdev_warn(dev->net, "Failed to read BULK_IN_DLY: %d\n", ret); in smsc75xx_reset()
1195 netif_dbg(dev, ifup, dev->net, in smsc75xx_reset()
1201 netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret); in smsc75xx_reset()
1205 netif_dbg(dev, ifup, dev->net, "HW_CFG: 0x%08x\n", buf); in smsc75xx_reset()
1211 netdev_warn(dev->net, "Failed to write HW_CFG: %d\n", ret); in smsc75xx_reset()
1217 netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret); in smsc75xx_reset()
1221 netif_dbg(dev, ifup, dev->net, "HW_CFG: 0x%08x\n", buf); in smsc75xx_reset()
1228 netdev_warn(dev->net, "Failed to write FCT_RX_FIFO_END: %d\n", ret); in smsc75xx_reset()
1232 netif_dbg(dev, ifup, dev->net, "FCT_RX_FIFO_END set to 0x%08x\n", buf); in smsc75xx_reset()
1237 netdev_warn(dev->net, "Failed to write FCT_TX_FIFO_END: %d\n", ret); in smsc75xx_reset()
1241 netif_dbg(dev, ifup, dev->net, "FCT_TX_FIFO_END set to 0x%08x\n", buf); in smsc75xx_reset()
1245 netdev_warn(dev->net, "Failed to write INT_STS: %d\n", ret); in smsc75xx_reset()
1251 netdev_warn(dev->net, "Failed to read ID_REV: %d\n", ret); in smsc75xx_reset()
1255 netif_dbg(dev, ifup, dev->net, "ID_REV = 0x%08x\n", buf); in smsc75xx_reset()
1259 netdev_warn(dev->net, "Failed to read E2P_CMD: %d\n", ret); in smsc75xx_reset()
1267 netdev_warn(dev->net, "Failed to read LED_GPIO_CFG: %d\n", ret); in smsc75xx_reset()
1276 netdev_warn(dev->net, "Failed to write LED_GPIO_CFG: %d\n", ret); in smsc75xx_reset()
1283 netdev_warn(dev->net, "Failed to write FLOW: %d\n", ret); in smsc75xx_reset()
1289 netdev_warn(dev->net, "Failed to write FCT_FLOW: %d\n", ret); in smsc75xx_reset()
1296 netdev_warn(dev->net, "Failed to read RFE_CTL: %d\n", ret); in smsc75xx_reset()
1304 netdev_warn(dev->net, "Failed to write RFE_CTL: %d\n", ret); in smsc75xx_reset()
1310 netdev_warn(dev->net, "Failed to read RFE_CTL: %d\n", ret); in smsc75xx_reset()
1314 netif_dbg(dev, ifup, dev->net, "RFE_CTL set to 0x%08x\n", in smsc75xx_reset()
1318 smsc75xx_set_features(dev->net, dev->net->features); in smsc75xx_reset()
1320 smsc75xx_set_multicast(dev->net); in smsc75xx_reset()
1324 netdev_warn(dev->net, "Failed to initialize PHY: %d\n", ret); in smsc75xx_reset()
1330 netdev_warn(dev->net, "Failed to read INT_EP_CTL: %d\n", ret); in smsc75xx_reset()
1339 netdev_warn(dev->net, "Failed to write INT_EP_CTL: %d\n", ret); in smsc75xx_reset()
1346 netdev_warn(dev->net, "Failed to read MAC_CR: %d\n", ret); in smsc75xx_reset()
1353 netdev_warn(dev->net, "Failed to write MAC_CR: %d\n", ret); in smsc75xx_reset()
1359 netdev_warn(dev->net, "Failed to read MAC_TX: %d\n", ret); in smsc75xx_reset()
1367 netdev_warn(dev->net, "Failed to write MAC_TX: %d\n", ret); in smsc75xx_reset()
1371 netif_dbg(dev, ifup, dev->net, "MAC_TX set to 0x%08x\n", buf); in smsc75xx_reset()
1375 netdev_warn(dev->net, "Failed to read FCT_TX_CTL: %d\n", ret); in smsc75xx_reset()
1383 netdev_warn(dev->net, "Failed to write FCT_TX_CTL: %d\n", ret); in smsc75xx_reset()
1387 netif_dbg(dev, ifup, dev->net, "FCT_TX_CTL set to 0x%08x\n", buf); in smsc75xx_reset()
1389 ret = smsc75xx_set_rx_max_frame_length(dev, dev->net->mtu + ETH_HLEN); in smsc75xx_reset()
1391 netdev_warn(dev->net, "Failed to set max rx frame length\n"); in smsc75xx_reset()
1397 netdev_warn(dev->net, "Failed to read MAC_RX: %d\n", ret); in smsc75xx_reset()
1405 netdev_warn(dev->net, "Failed to write MAC_RX: %d\n", ret); in smsc75xx_reset()
1409 netif_dbg(dev, ifup, dev->net, "MAC_RX set to 0x%08x\n", buf); in smsc75xx_reset()
1413 netdev_warn(dev->net, "Failed to read FCT_RX_CTL: %d\n", ret); in smsc75xx_reset()
1421 netdev_warn(dev->net, "Failed to write FCT_RX_CTL: %d\n", ret); in smsc75xx_reset()
1425 netif_dbg(dev, ifup, dev->net, "FCT_RX_CTL set to 0x%08x\n", buf); in smsc75xx_reset()
1427 netif_dbg(dev, ifup, dev->net, "smsc75xx_reset, return 0\n"); in smsc75xx_reset()
1454 netdev_warn(dev->net, "usbnet_get_endpoints failed: %d\n", ret); in smsc75xx_bind()
1473 dev->net->features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM; in smsc75xx_bind()
1476 dev->net->features |= NETIF_F_RXCSUM; in smsc75xx_bind()
1478 dev->net->hw_features = NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | in smsc75xx_bind()
1483 netdev_warn(dev->net, "device not ready in smsc75xx_bind\n"); in smsc75xx_bind()
1492 netdev_warn(dev->net, "smsc75xx_reset error %d\n", ret); in smsc75xx_bind()
1496 dev->net->netdev_ops = &smsc75xx_netdev_ops; in smsc75xx_bind()
1497 dev->net->ethtool_ops = &smsc75xx_ethtool_ops; in smsc75xx_bind()
1498 dev->net->flags |= IFF_MULTICAST; in smsc75xx_bind()
1499 dev->net->hard_header_len += SMSC75XX_TX_OVERHEAD; in smsc75xx_bind()
1500 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in smsc75xx_bind()
1501 dev->net->max_mtu = MAX_SINGLE_PACKET_SIZE; in smsc75xx_bind()
1517 netif_dbg(dev, ifdown, dev->net, "free pdata\n"); in smsc75xx_unbind()
1537 netdev_warn(dev->net, "Error writing WUF_CFGX\n"); in smsc75xx_write_wuff()
1543 netdev_warn(dev->net, "Error writing WUF_MASKX\n"); in smsc75xx_write_wuff()
1549 netdev_warn(dev->net, "Error writing WUF_MASKX\n"); in smsc75xx_write_wuff()
1555 netdev_warn(dev->net, "Error writing WUF_MASKX\n"); in smsc75xx_write_wuff()
1561 netdev_warn(dev->net, "Error writing WUF_MASKX\n"); in smsc75xx_write_wuff()
1576 netdev_warn(dev->net, "Error reading PMT_CTL\n"); in smsc75xx_enter_suspend0()
1585 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_enter_suspend0()
1602 netdev_warn(dev->net, "Error reading PMT_CTL\n"); in smsc75xx_enter_suspend1()
1611 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_enter_suspend1()
1621 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_enter_suspend1()
1638 netdev_warn(dev->net, "Error reading PMT_CTL\n"); in smsc75xx_enter_suspend2()
1647 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_enter_suspend2()
1664 netdev_warn(dev->net, "Error reading FCT_RX_CTL\n"); in smsc75xx_enter_suspend3()
1669 netdev_dbg(dev->net, "rx fifo not empty in autosuspend\n"); in smsc75xx_enter_suspend3()
1675 netdev_warn(dev->net, "Error reading PMT_CTL\n"); in smsc75xx_enter_suspend3()
1684 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_enter_suspend3()
1694 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_enter_suspend3()
1708 netdev_dbg(dev->net, "enabling PHY wakeup interrupts\n"); in smsc75xx_enable_phy_wakeup_interrupts()
1711 ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, PHY_INT_SRC); in smsc75xx_enable_phy_wakeup_interrupts()
1713 netdev_warn(dev->net, "Error reading PHY_INT_SRC\n"); in smsc75xx_enable_phy_wakeup_interrupts()
1718 ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, PHY_INT_MASK); in smsc75xx_enable_phy_wakeup_interrupts()
1720 netdev_warn(dev->net, "Error reading PHY_INT_MASK\n"); in smsc75xx_enable_phy_wakeup_interrupts()
1726 smsc75xx_mdio_write_nopm(dev->net, mii->phy_id, PHY_INT_MASK, ret); in smsc75xx_enable_phy_wakeup_interrupts()
1737 ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, MII_BMSR); in smsc75xx_link_ok_nopm()
1739 netdev_warn(dev->net, "Error reading MII_BMSR\n"); in smsc75xx_link_ok_nopm()
1743 ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, MII_BMSR); in smsc75xx_link_ok_nopm()
1745 netdev_warn(dev->net, "Error reading MII_BMSR\n"); in smsc75xx_link_ok_nopm()
1756 if (!netif_running(dev->net)) { in smsc75xx_autosuspend()
1758 netdev_dbg(dev->net, "autosuspend entering SUSPEND2\n"); in smsc75xx_autosuspend()
1764 netdev_dbg(dev->net, "autosuspend entering SUSPEND1\n"); in smsc75xx_autosuspend()
1770 netdev_warn(dev->net, "error enabling PHY wakeup ints\n"); in smsc75xx_autosuspend()
1774 netdev_info(dev->net, "entering SUSPEND1 mode\n"); in smsc75xx_autosuspend()
1782 netdev_warn(dev->net, "error enabling PHY wakeup ints\n"); in smsc75xx_autosuspend()
1786 netdev_dbg(dev->net, "autosuspend entering SUSPEND3\n"); in smsc75xx_autosuspend()
1799 netdev_warn(dev->net, "usbnet_suspend error\n"); in smsc75xx_suspend()
1804 netdev_warn(dev->net, "error during last resume\n"); in smsc75xx_suspend()
1822 netdev_info(dev->net, "entering SUSPEND2 mode\n"); in smsc75xx_suspend()
1827 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_suspend()
1835 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_suspend()
1841 netdev_warn(dev->net, "Error reading PMT_CTL\n"); in smsc75xx_suspend()
1849 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_suspend()
1861 netdev_warn(dev->net, "error enabling PHY wakeup ints\n"); in smsc75xx_suspend()
1870 netdev_info(dev->net, "entering SUSPEND1 mode\n"); in smsc75xx_suspend()
1873 ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, in smsc75xx_suspend()
1876 netdev_warn(dev->net, "Error reading PHY_MODE_CTRL_STS\n"); in smsc75xx_suspend()
1882 smsc75xx_mdio_write_nopm(dev->net, mii->phy_id, in smsc75xx_suspend()
1898 netdev_warn(dev->net, "Error writing WUF_CFGX\n"); in smsc75xx_suspend()
1905 netdev_info(dev->net, "enabling multicast detection\n"); in smsc75xx_suspend()
1911 netdev_warn(dev->net, "Error writing wakeup filter\n"); in smsc75xx_suspend()
1918 netdev_info(dev->net, "enabling ARP detection\n"); in smsc75xx_suspend()
1924 netdev_warn(dev->net, "Error writing wakeup filter\n"); in smsc75xx_suspend()
1932 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_suspend()
1940 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_suspend()
1944 netdev_info(dev->net, "enabling packet match detection\n"); in smsc75xx_suspend()
1947 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_suspend()
1955 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_suspend()
1959 netdev_info(dev->net, "disabling packet match detection\n"); in smsc75xx_suspend()
1962 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_suspend()
1970 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_suspend()
1978 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_suspend()
1986 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_suspend()
1991 netdev_info(dev->net, "enabling PHY wakeup\n"); in smsc75xx_suspend()
1995 netdev_warn(dev->net, "Error reading PMT_CTL\n"); in smsc75xx_suspend()
2005 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_suspend()
2011 netdev_info(dev->net, "enabling magic packet wakeup\n"); in smsc75xx_suspend()
2014 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_suspend()
2023 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_suspend()
2029 netdev_info(dev->net, "enabling broadcast detection\n"); in smsc75xx_suspend()
2032 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_suspend()
2040 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_suspend()
2046 netdev_info(dev->net, "enabling unicast detection\n"); in smsc75xx_suspend()
2049 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_suspend()
2057 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_suspend()
2065 netdev_warn(dev->net, "Failed to read MAC_RX: %d\n", ret); in smsc75xx_suspend()
2073 netdev_warn(dev->net, "Failed to write MAC_RX: %d\n", ret); in smsc75xx_suspend()
2078 netdev_info(dev->net, "entering SUSPEND0 mode\n"); in smsc75xx_suspend()
2099 netdev_dbg(dev->net, "resume suspend_flags=0x%02x\n", suspend_flags); in smsc75xx_resume()
2108 netdev_warn(dev->net, "Error reading WUCSR\n"); in smsc75xx_resume()
2117 netdev_warn(dev->net, "Error writing WUCSR\n"); in smsc75xx_resume()
2124 netdev_warn(dev->net, "Error reading PMT_CTL\n"); in smsc75xx_resume()
2133 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_resume()
2139 netdev_info(dev->net, "resuming from SUSPEND2\n"); in smsc75xx_resume()
2143 netdev_warn(dev->net, "Error reading PMT_CTL\n"); in smsc75xx_resume()
2151 netdev_warn(dev->net, "Error writing PMT_CTL\n"); in smsc75xx_resume()
2158 netdev_warn(dev->net, "device not ready in smsc75xx_resume\n"); in smsc75xx_resume()
2168 if (!(dev->net->features & NETIF_F_RXCSUM) || in smsc75xx_rx_csum_offload()
2180 if (skb->len < dev->net->hard_header_len) in smsc75xx_rx_fixup()
2201 netif_dbg(dev, rx_err, dev->net, in smsc75xx_rx_fixup()
2208 netif_dbg(dev, rx_err, dev->net, in smsc75xx_rx_fixup()
2210 dev->net->stats.rx_errors++; in smsc75xx_rx_fixup()
2211 dev->net->stats.rx_dropped++; in smsc75xx_rx_fixup()
2214 dev->net->stats.rx_crc_errors++; in smsc75xx_rx_fixup()
2216 dev->net->stats.rx_frame_errors++; in smsc75xx_rx_fixup()
2220 netif_dbg(dev, rx_err, dev->net, in smsc75xx_rx_fixup()
2237 ax_skb = netdev_alloc_skb_ip_align(dev->net, size - 4); in smsc75xx_rx_fixup()
2239 netdev_warn(dev->net, "Error allocating skb\n"); in smsc75xx_rx_fixup()
2343 MODULE_AUTHOR("Steve Glendinning <steve.glendinning@shawell.net>");