|
53 | 53 |
|
54 | 54 | #define FEATURE_8_WAKEUP_FILTERS (0x01) |
55 | 55 | #define FEATURE_PHY_NLP_CROSSOVER (0x02) |
56 | | -#define FEATURE_AUTOSUSPEND (0x04) |
| 56 | +#define FEATURE_REMOTE_WAKEUP (0x04) |
57 | 57 |
|
58 | 58 | #define SUSPEND_SUSPEND0 (0x01) |
59 | 59 | #define SUSPEND_SUSPEND1 (0x02) |
@@ -1146,7 +1146,7 @@ static int smsc95xx_bind(struct usbnet *dev, struct usb_interface *intf) |
1146 | 1146 | (val == ID_REV_CHIP_ID_89530_) || (val == ID_REV_CHIP_ID_9730_)) |
1147 | 1147 | pdata->features = (FEATURE_8_WAKEUP_FILTERS | |
1148 | 1148 | FEATURE_PHY_NLP_CROSSOVER | |
1149 | | - FEATURE_AUTOSUSPEND); |
| 1149 | + FEATURE_REMOTE_WAKEUP); |
1150 | 1150 | else if (val == ID_REV_CHIP_ID_9512_) |
1151 | 1151 | pdata->features = FEATURE_8_WAKEUP_FILTERS; |
1152 | 1152 |
|
@@ -1378,7 +1378,7 @@ static int smsc95xx_autosuspend(struct usbnet *dev, u32 link_up) |
1378 | 1378 | if (!link_up) { |
1379 | 1379 | /* link is down so enter EDPD mode, but only if device can |
1380 | 1380 | * reliably resume from it. This check should be redundant |
1381 | | - * as current FEATURE_AUTOSUSPEND parts also support |
| 1381 | + * as current FEATURE_REMOTE_WAKEUP parts also support |
1382 | 1382 | * FEATURE_PHY_NLP_CROSSOVER but it's included for clarity */ |
1383 | 1383 | if (!(pdata->features & FEATURE_PHY_NLP_CROSSOVER)) { |
1384 | 1384 | netdev_warn(dev->net, "EDPD not supported\n"); |
@@ -1433,7 +1433,7 @@ static int smsc95xx_suspend(struct usb_interface *intf, pm_message_t message) |
1433 | 1433 | link_up = smsc95xx_link_ok_nopm(dev); |
1434 | 1434 |
|
1435 | 1435 | if (message.event == PM_EVENT_AUTO_SUSPEND && |
1436 | | - (pdata->features & FEATURE_AUTOSUSPEND)) { |
| 1436 | + (pdata->features & FEATURE_REMOTE_WAKEUP)) { |
1437 | 1437 | ret = smsc95xx_autosuspend(dev, link_up); |
1438 | 1438 | goto done; |
1439 | 1439 | } |
@@ -1870,11 +1870,11 @@ static int smsc95xx_manage_power(struct usbnet *dev, int on) |
1870 | 1870 |
|
1871 | 1871 | dev->intf->needs_remote_wakeup = on; |
1872 | 1872 |
|
1873 | | - if (pdata->features & FEATURE_AUTOSUSPEND) |
| 1873 | + if (pdata->features & FEATURE_REMOTE_WAKEUP) |
1874 | 1874 | return 0; |
1875 | 1875 |
|
1876 | | - /* this chip revision doesn't support autosuspend */ |
1877 | | - netdev_info(dev->net, "hardware doesn't support USB autosuspend\n"); |
| 1876 | + /* this chip revision isn't capable of remote wakeup */ |
| 1877 | + netdev_info(dev->net, "hardware isn't capable of remote wakeup\n"); |
1878 | 1878 |
|
1879 | 1879 | if (on) |
1880 | 1880 | usb_autopm_get_interface_no_resume(dev->intf); |
|
0 commit comments