aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/asix.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-02-17 05:30:23 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-17 16:35:40 -0500
commit60b86755929e1a7e9038c8d860a8491cfdf8d93a (patch)
tree97062c7136ead4adcdbf2bd3280143da1fabbe20 /drivers/net/usb/asix.c
parent82456b031e3c3b5bf95a7e49bd9b68b146446e76 (diff)
usbnet: Convert dev(dbg|err|warn|info) macros to netdev_<level>
These macros are too similar to the dev_<level> equivalents but take a usbnet * argument. Convert them to the recently introduced netdev_<level> macros and remove the old macros. The old macros had "\n" appended to the format string. Add the "\n" to the converted uses. Some existing uses of the dev<foo> macros in cdc_eem.c probably mistakenly had trailing "\n". No "\n" added there. Fix net1080 this/other log message inversion. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/asix.c')
-rw-r--r--drivers/net/usb/asix.c97
1 files changed, 53 insertions, 44 deletions
diff --git a/drivers/net/usb/asix.c b/drivers/net/usb/asix.c
index f02551713b13..f605204de3e5 100644
--- a/drivers/net/usb/asix.c
+++ b/drivers/net/usb/asix.c
@@ -184,8 +184,8 @@ static int asix_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index,
184 void *buf; 184 void *buf;
185 int err = -ENOMEM; 185 int err = -ENOMEM;
186 186
187 devdbg(dev,"asix_read_cmd() cmd=0x%02x value=0x%04x index=0x%04x size=%d", 187 netdev_dbg(dev->net, "asix_read_cmd() cmd=0x%02x value=0x%04x index=0x%04x size=%d\n",
188 cmd, value, index, size); 188 cmd, value, index, size);
189 189
190 buf = kmalloc(size, GFP_KERNEL); 190 buf = kmalloc(size, GFP_KERNEL);
191 if (!buf) 191 if (!buf)
@@ -217,8 +217,8 @@ static int asix_write_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index,
217 void *buf = NULL; 217 void *buf = NULL;
218 int err = -ENOMEM; 218 int err = -ENOMEM;
219 219
220 devdbg(dev,"asix_write_cmd() cmd=0x%02x value=0x%04x index=0x%04x size=%d", 220 netdev_dbg(dev->net, "asix_write_cmd() cmd=0x%02x value=0x%04x index=0x%04x size=%d\n",
221 cmd, value, index, size); 221 cmd, value, index, size);
222 222
223 if (data) { 223 if (data) {
224 buf = kmalloc(size, GFP_KERNEL); 224 buf = kmalloc(size, GFP_KERNEL);
@@ -264,15 +264,15 @@ asix_write_cmd_async(struct usbnet *dev, u8 cmd, u16 value, u16 index,
264 int status; 264 int status;
265 struct urb *urb; 265 struct urb *urb;
266 266
267 devdbg(dev,"asix_write_cmd_async() cmd=0x%02x value=0x%04x index=0x%04x size=%d", 267 netdev_dbg(dev->net, "asix_write_cmd_async() cmd=0x%02x value=0x%04x index=0x%04x size=%d\n",
268 cmd, value, index, size); 268 cmd, value, index, size);
269 if ((urb = usb_alloc_urb(0, GFP_ATOMIC)) == NULL) { 269 if ((urb = usb_alloc_urb(0, GFP_ATOMIC)) == NULL) {
270 deverr(dev, "Error allocating URB in write_cmd_async!"); 270 netdev_err(dev->net, "Error allocating URB in write_cmd_async!\n");
271 return; 271 return;
272 } 272 }
273 273
274 if ((req = kmalloc(sizeof(struct usb_ctrlrequest), GFP_ATOMIC)) == NULL) { 274 if ((req = kmalloc(sizeof(struct usb_ctrlrequest), GFP_ATOMIC)) == NULL) {
275 deverr(dev, "Failed to allocate memory for control request"); 275 netdev_err(dev->net, "Failed to allocate memory for control request\n");
276 usb_free_urb(urb); 276 usb_free_urb(urb);
277 return; 277 return;
278 } 278 }
@@ -289,8 +289,8 @@ asix_write_cmd_async(struct usbnet *dev, u8 cmd, u16 value, u16 index,
289 asix_async_cmd_callback, req); 289 asix_async_cmd_callback, req);
290 290
291 if((status = usb_submit_urb(urb, GFP_ATOMIC)) < 0) { 291 if((status = usb_submit_urb(urb, GFP_ATOMIC)) < 0) {
292 deverr(dev, "Error submitting the control message: status=%d", 292 netdev_err(dev->net, "Error submitting the control message: status=%d\n",
293 status); 293 status);
294 kfree(req); 294 kfree(req);
295 usb_free_urb(urb); 295 usb_free_urb(urb);
296 } 296 }
@@ -314,7 +314,7 @@ static int asix_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
314 while (skb->len > 0) { 314 while (skb->len > 0) {
315 if ((short)(header & 0x0000ffff) != 315 if ((short)(header & 0x0000ffff) !=
316 ~((short)((header & 0xffff0000) >> 16))) { 316 ~((short)((header & 0xffff0000) >> 16))) {
317 deverr(dev,"asix_rx_fixup() Bad Header Length"); 317 netdev_err(dev->net, "asix_rx_fixup() Bad Header Length\n");
318 } 318 }
319 /* get the packet length */ 319 /* get the packet length */
320 size = (u16) (header & 0x0000ffff); 320 size = (u16) (header & 0x0000ffff);
@@ -322,7 +322,8 @@ static int asix_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
322 if ((skb->len) - ((size + 1) & 0xfffe) == 0) 322 if ((skb->len) - ((size + 1) & 0xfffe) == 0)
323 return 2; 323 return 2;
324 if (size > ETH_FRAME_LEN) { 324 if (size > ETH_FRAME_LEN) {
325 deverr(dev,"asix_rx_fixup() Bad RX Length %d", size); 325 netdev_err(dev->net, "asix_rx_fixup() Bad RX Length %d\n",
326 size);
326 return 0; 327 return 0;
327 } 328 }
328 ax_skb = skb_clone(skb, GFP_ATOMIC); 329 ax_skb = skb_clone(skb, GFP_ATOMIC);
@@ -348,7 +349,8 @@ static int asix_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
348 } 349 }
349 350
350 if (skb->len < 0) { 351 if (skb->len < 0) {
351 deverr(dev,"asix_rx_fixup() Bad SKB Length %d", skb->len); 352 netdev_err(dev->net, "asix_rx_fixup() Bad SKB Length %d\n",
353 skb->len);
352 return 0; 354 return 0;
353 } 355 }
354 return 1; 356 return 1;
@@ -409,7 +411,7 @@ static void asix_status(struct usbnet *dev, struct urb *urb)
409 usbnet_defer_kevent (dev, EVENT_LINK_RESET ); 411 usbnet_defer_kevent (dev, EVENT_LINK_RESET );
410 } else 412 } else
411 netif_carrier_off(dev->net); 413 netif_carrier_off(dev->net);
412 devdbg(dev, "Link Status is: %d", link); 414 netdev_dbg(dev->net, "Link Status is: %d\n", link);
413 } 415 }
414} 416}
415 417
@@ -418,7 +420,7 @@ static inline int asix_set_sw_mii(struct usbnet *dev)
418 int ret; 420 int ret;
419 ret = asix_write_cmd(dev, AX_CMD_SET_SW_MII, 0x0000, 0, 0, NULL); 421 ret = asix_write_cmd(dev, AX_CMD_SET_SW_MII, 0x0000, 0, 0, NULL);
420 if (ret < 0) 422 if (ret < 0)
421 deverr(dev, "Failed to enable software MII access"); 423 netdev_err(dev->net, "Failed to enable software MII access\n");
422 return ret; 424 return ret;
423} 425}
424 426
@@ -427,7 +429,7 @@ static inline int asix_set_hw_mii(struct usbnet *dev)
427 int ret; 429 int ret;
428 ret = asix_write_cmd(dev, AX_CMD_SET_HW_MII, 0x0000, 0, 0, NULL); 430 ret = asix_write_cmd(dev, AX_CMD_SET_HW_MII, 0x0000, 0, 0, NULL);
429 if (ret < 0) 431 if (ret < 0)
430 deverr(dev, "Failed to enable hardware MII access"); 432 netdev_err(dev->net, "Failed to enable hardware MII access\n");
431 return ret; 433 return ret;
432} 434}
433 435
@@ -436,13 +438,14 @@ static inline int asix_get_phy_addr(struct usbnet *dev)
436 u8 buf[2]; 438 u8 buf[2];
437 int ret = asix_read_cmd(dev, AX_CMD_READ_PHY_ID, 0, 0, 2, buf); 439 int ret = asix_read_cmd(dev, AX_CMD_READ_PHY_ID, 0, 0, 2, buf);
438 440
439 devdbg(dev, "asix_get_phy_addr()"); 441 netdev_dbg(dev->net, "asix_get_phy_addr()\n");
440 442
441 if (ret < 0) { 443 if (ret < 0) {
442 deverr(dev, "Error reading PHYID register: %02x", ret); 444 netdev_err(dev->net, "Error reading PHYID register: %02x\n", ret);
443 goto out; 445 goto out;
444 } 446 }
445 devdbg(dev, "asix_get_phy_addr() returning 0x%04x", *((__le16 *)buf)); 447 netdev_dbg(dev->net, "asix_get_phy_addr() returning 0x%04x\n",
448 *((__le16 *)buf));
446 ret = buf[1]; 449 ret = buf[1];
447 450
448out: 451out:
@@ -455,7 +458,7 @@ static int asix_sw_reset(struct usbnet *dev, u8 flags)
455 458
456 ret = asix_write_cmd(dev, AX_CMD_SW_RESET, flags, 0, 0, NULL); 459 ret = asix_write_cmd(dev, AX_CMD_SW_RESET, flags, 0, 0, NULL);
457 if (ret < 0) 460 if (ret < 0)
458 deverr(dev,"Failed to send software reset: %02x", ret); 461 netdev_err(dev->net, "Failed to send software reset: %02x\n", ret);
459 462
460 return ret; 463 return ret;
461} 464}
@@ -466,7 +469,7 @@ static u16 asix_read_rx_ctl(struct usbnet *dev)
466 int ret = asix_read_cmd(dev, AX_CMD_READ_RX_CTL, 0, 0, 2, &v); 469 int ret = asix_read_cmd(dev, AX_CMD_READ_RX_CTL, 0, 0, 2, &v);
467 470
468 if (ret < 0) { 471 if (ret < 0) {
469 deverr(dev, "Error reading RX_CTL register: %02x", ret); 472 netdev_err(dev->net, "Error reading RX_CTL register: %02x\n", ret);
470 goto out; 473 goto out;
471 } 474 }
472 ret = le16_to_cpu(v); 475 ret = le16_to_cpu(v);
@@ -478,11 +481,11 @@ static int asix_write_rx_ctl(struct usbnet *dev, u16 mode)
478{ 481{
479 int ret; 482 int ret;
480 483
481 devdbg(dev,"asix_write_rx_ctl() - mode = 0x%04x", mode); 484 netdev_dbg(dev->net, "asix_write_rx_ctl() - mode = 0x%04x\n", mode);
482 ret = asix_write_cmd(dev, AX_CMD_WRITE_RX_CTL, mode, 0, 0, NULL); 485 ret = asix_write_cmd(dev, AX_CMD_WRITE_RX_CTL, mode, 0, 0, NULL);
483 if (ret < 0) 486 if (ret < 0)
484 deverr(dev, "Failed to write RX_CTL mode to 0x%04x: %02x", 487 netdev_err(dev->net, "Failed to write RX_CTL mode to 0x%04x: %02x\n",
485 mode, ret); 488 mode, ret);
486 489
487 return ret; 490 return ret;
488} 491}
@@ -493,7 +496,8 @@ static u16 asix_read_medium_status(struct usbnet *dev)
493 int ret = asix_read_cmd(dev, AX_CMD_READ_MEDIUM_STATUS, 0, 0, 2, &v); 496 int ret = asix_read_cmd(dev, AX_CMD_READ_MEDIUM_STATUS, 0, 0, 2, &v);
494 497
495 if (ret < 0) { 498 if (ret < 0) {
496 deverr(dev, "Error reading Medium Status register: %02x", ret); 499 netdev_err(dev->net, "Error reading Medium Status register: %02x\n",
500 ret);
497 goto out; 501 goto out;
498 } 502 }
499 ret = le16_to_cpu(v); 503 ret = le16_to_cpu(v);
@@ -505,11 +509,11 @@ static int asix_write_medium_mode(struct usbnet *dev, u16 mode)
505{ 509{
506 int ret; 510 int ret;
507 511
508 devdbg(dev,"asix_write_medium_mode() - mode = 0x%04x", mode); 512 netdev_dbg(dev->net, "asix_write_medium_mode() - mode = 0x%04x\n", mode);
509 ret = asix_write_cmd(dev, AX_CMD_WRITE_MEDIUM_MODE, mode, 0, 0, NULL); 513 ret = asix_write_cmd(dev, AX_CMD_WRITE_MEDIUM_MODE, mode, 0, 0, NULL);
510 if (ret < 0) 514 if (ret < 0)
511 deverr(dev, "Failed to write Medium Mode mode to 0x%04x: %02x", 515 netdev_err(dev->net, "Failed to write Medium Mode mode to 0x%04x: %02x\n",
512 mode, ret); 516 mode, ret);
513 517
514 return ret; 518 return ret;
515} 519}
@@ -518,11 +522,11 @@ static int asix_write_gpio(struct usbnet *dev, u16 value, int sleep)
518{ 522{
519 int ret; 523 int ret;
520 524
521 devdbg(dev,"asix_write_gpio() - value = 0x%04x", value); 525 netdev_dbg(dev->net, "asix_write_gpio() - value = 0x%04x\n", value);
522 ret = asix_write_cmd(dev, AX_CMD_WRITE_GPIOS, value, 0, 0, NULL); 526 ret = asix_write_cmd(dev, AX_CMD_WRITE_GPIOS, value, 0, 0, NULL);
523 if (ret < 0) 527 if (ret < 0)
524 deverr(dev, "Failed to write GPIO value 0x%04x: %02x", 528 netdev_err(dev->net, "Failed to write GPIO value 0x%04x: %02x\n",
525 value, ret); 529 value, ret);
526 530
527 if (sleep) 531 if (sleep)
528 msleep(sleep); 532 msleep(sleep);
@@ -588,7 +592,8 @@ static int asix_mdio_read(struct net_device *netdev, int phy_id, int loc)
588 asix_set_hw_mii(dev); 592 asix_set_hw_mii(dev);
589 mutex_unlock(&dev->phy_mutex); 593 mutex_unlock(&dev->phy_mutex);
590 594
591 devdbg(dev, "asix_mdio_read() phy_id=0x%02x, loc=0x%02x, returns=0x%04x", phy_id, loc, le16_to_cpu(res)); 595 netdev_dbg(dev->net, "asix_mdio_read() phy_id=0x%02x, loc=0x%02x, returns=0x%04x\n",
596 phy_id, loc, le16_to_cpu(res));
592 597
593 return le16_to_cpu(res); 598 return le16_to_cpu(res);
594} 599}
@@ -599,7 +604,8 @@ asix_mdio_write(struct net_device *netdev, int phy_id, int loc, int val)
599 struct usbnet *dev = netdev_priv(netdev); 604 struct usbnet *dev = netdev_priv(netdev);
600 __le16 res = cpu_to_le16(val); 605 __le16 res = cpu_to_le16(val);
601 606
602 devdbg(dev, "asix_mdio_write() phy_id=0x%02x, loc=0x%02x, val=0x%04x", phy_id, loc, val); 607 netdev_dbg(dev->net, "asix_mdio_write() phy_id=0x%02x, loc=0x%02x, val=0x%04x\n",
608 phy_id, loc, val);
603 mutex_lock(&dev->phy_mutex); 609 mutex_lock(&dev->phy_mutex);
604 asix_set_sw_mii(dev); 610 asix_set_sw_mii(dev);
605 asix_write_cmd(dev, AX_CMD_WRITE_MII_REG, phy_id, (__u16)loc, 2, &res); 611 asix_write_cmd(dev, AX_CMD_WRITE_MII_REG, phy_id, (__u16)loc, 2, &res);
@@ -800,7 +806,8 @@ static int ax88172_link_reset(struct usbnet *dev)
800 if (ecmd.duplex != DUPLEX_FULL) 806 if (ecmd.duplex != DUPLEX_FULL)
801 mode |= ~AX88172_MEDIUM_FD; 807 mode |= ~AX88172_MEDIUM_FD;
802 808
803 devdbg(dev, "ax88172_link_reset() speed: %d duplex: %d setting mode to 0x%04x", ecmd.speed, ecmd.duplex, mode); 809 netdev_dbg(dev->net, "ax88172_link_reset() speed: %d duplex: %d setting mode to 0x%04x\n",
810 ecmd.speed, ecmd.duplex, mode);
804 811
805 asix_write_medium_mode(dev, mode); 812 asix_write_medium_mode(dev, mode);
806 813
@@ -902,7 +909,8 @@ static int ax88772_link_reset(struct usbnet *dev)
902 if (ecmd.duplex != DUPLEX_FULL) 909 if (ecmd.duplex != DUPLEX_FULL)
903 mode &= ~AX_MEDIUM_FD; 910 mode &= ~AX_MEDIUM_FD;
904 911
905 devdbg(dev, "ax88772_link_reset() speed: %d duplex: %d setting mode to 0x%04x", ecmd.speed, ecmd.duplex, mode); 912 netdev_dbg(dev->net, "ax88772_link_reset() speed: %d duplex: %d setting mode to 0x%04x\n",
913 ecmd.speed, ecmd.duplex, mode);
906 914
907 asix_write_medium_mode(dev, mode); 915 asix_write_medium_mode(dev, mode);
908 916
@@ -1059,10 +1067,10 @@ static int marvell_phy_init(struct usbnet *dev)
1059 struct asix_data *data = (struct asix_data *)&dev->data; 1067 struct asix_data *data = (struct asix_data *)&dev->data;
1060 u16 reg; 1068 u16 reg;
1061 1069
1062 devdbg(dev,"marvell_phy_init()"); 1070 netdev_dbg(dev->net, "marvell_phy_init()\n");
1063 1071
1064 reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_MARVELL_STATUS); 1072 reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_MARVELL_STATUS);
1065 devdbg(dev,"MII_MARVELL_STATUS = 0x%04x", reg); 1073 netdev_dbg(dev->net, "MII_MARVELL_STATUS = 0x%04x\n", reg);
1066 1074
1067 asix_mdio_write(dev->net, dev->mii.phy_id, MII_MARVELL_CTRL, 1075 asix_mdio_write(dev->net, dev->mii.phy_id, MII_MARVELL_CTRL,
1068 MARVELL_CTRL_RXDELAY | MARVELL_CTRL_TXDELAY); 1076 MARVELL_CTRL_RXDELAY | MARVELL_CTRL_TXDELAY);
@@ -1070,7 +1078,7 @@ static int marvell_phy_init(struct usbnet *dev)
1070 if (data->ledmode) { 1078 if (data->ledmode) {
1071 reg = asix_mdio_read(dev->net, dev->mii.phy_id, 1079 reg = asix_mdio_read(dev->net, dev->mii.phy_id,
1072 MII_MARVELL_LED_CTRL); 1080 MII_MARVELL_LED_CTRL);
1073 devdbg(dev,"MII_MARVELL_LED_CTRL (1) = 0x%04x", reg); 1081 netdev_dbg(dev->net, "MII_MARVELL_LED_CTRL (1) = 0x%04x\n", reg);
1074 1082
1075 reg &= 0xf8ff; 1083 reg &= 0xf8ff;
1076 reg |= (1 + 0x0100); 1084 reg |= (1 + 0x0100);
@@ -1079,7 +1087,7 @@ static int marvell_phy_init(struct usbnet *dev)
1079 1087
1080 reg = asix_mdio_read(dev->net, dev->mii.phy_id, 1088 reg = asix_mdio_read(dev->net, dev->mii.phy_id,
1081 MII_MARVELL_LED_CTRL); 1089 MII_MARVELL_LED_CTRL);
1082 devdbg(dev,"MII_MARVELL_LED_CTRL (2) = 0x%04x", reg); 1090 netdev_dbg(dev->net, "MII_MARVELL_LED_CTRL (2) = 0x%04x\n", reg);
1083 reg &= 0xfc0f; 1091 reg &= 0xfc0f;
1084 } 1092 }
1085 1093
@@ -1090,7 +1098,7 @@ static int marvell_led_status(struct usbnet *dev, u16 speed)
1090{ 1098{
1091 u16 reg = asix_mdio_read(dev->net, dev->mii.phy_id, MARVELL_LED_MANUAL); 1099 u16 reg = asix_mdio_read(dev->net, dev->mii.phy_id, MARVELL_LED_MANUAL);
1092 1100
1093 devdbg(dev, "marvell_led_status() read 0x%04x", reg); 1101 netdev_dbg(dev->net, "marvell_led_status() read 0x%04x\n", reg);
1094 1102
1095 /* Clear out the center LED bits - 0x03F0 */ 1103 /* Clear out the center LED bits - 0x03F0 */
1096 reg &= 0xfc0f; 1104 reg &= 0xfc0f;
@@ -1106,7 +1114,7 @@ static int marvell_led_status(struct usbnet *dev, u16 speed)
1106 reg |= 0x02f0; 1114 reg |= 0x02f0;
1107 } 1115 }
1108 1116
1109 devdbg(dev, "marvell_led_status() writing 0x%04x", reg); 1117 netdev_dbg(dev->net, "marvell_led_status() writing 0x%04x\n", reg);
1110 asix_mdio_write(dev->net, dev->mii.phy_id, MARVELL_LED_MANUAL, reg); 1118 asix_mdio_write(dev->net, dev->mii.phy_id, MARVELL_LED_MANUAL, reg);
1111 1119
1112 return 0; 1120 return 0;
@@ -1118,7 +1126,7 @@ static int ax88178_link_reset(struct usbnet *dev)
1118 struct ethtool_cmd ecmd; 1126 struct ethtool_cmd ecmd;
1119 struct asix_data *data = (struct asix_data *)&dev->data; 1127 struct asix_data *data = (struct asix_data *)&dev->data;
1120 1128
1121 devdbg(dev,"ax88178_link_reset()"); 1129 netdev_dbg(dev->net, "ax88178_link_reset()\n");
1122 1130
1123 mii_check_media(&dev->mii, 1, 1); 1131 mii_check_media(&dev->mii, 1, 1);
1124 mii_ethtool_gset(&dev->mii, &ecmd); 1132 mii_ethtool_gset(&dev->mii, &ecmd);
@@ -1138,7 +1146,8 @@ static int ax88178_link_reset(struct usbnet *dev)
1138 else 1146 else
1139 mode &= ~AX_MEDIUM_FD; 1147 mode &= ~AX_MEDIUM_FD;
1140 1148
1141 devdbg(dev, "ax88178_link_reset() speed: %d duplex: %d setting mode to 0x%04x", ecmd.speed, ecmd.duplex, mode); 1149 netdev_dbg(dev->net, "ax88178_link_reset() speed: %d duplex: %d setting mode to 0x%04x\n",
1150 ecmd.speed, ecmd.duplex, mode);
1142 1151
1143 asix_write_medium_mode(dev, mode); 1152 asix_write_medium_mode(dev, mode);
1144 1153
@@ -1188,7 +1197,7 @@ static int ax88178_change_mtu(struct net_device *net, int new_mtu)
1188 struct usbnet *dev = netdev_priv(net); 1197 struct usbnet *dev = netdev_priv(net);
1189 int ll_mtu = new_mtu + net->hard_header_len + 4; 1198 int ll_mtu = new_mtu + net->hard_header_len + 4;
1190 1199
1191 devdbg(dev, "ax88178_change_mtu() new_mtu=%d", new_mtu); 1200 netdev_dbg(dev->net, "ax88178_change_mtu() new_mtu=%d\n", new_mtu);
1192 1201
1193 if (new_mtu <= 0 || ll_mtu > 16384) 1202 if (new_mtu <= 0 || ll_mtu > 16384)
1194 return -EINVAL; 1203 return -EINVAL;