net: usb: rtl8150: limit intr status print
wtsai [Fri, 8 Nov 2013 06:51:12 +0000 (14:51 +0800)]
Add ratelimit for "intr status" print to avoid hub thread has no
chance to report device unplugged

Bug 1375919

Change-Id: Ie47e9a1328a8ed56ce244d0603b053c113aee838
Signed-off-by: wtsai <wtsai@nvidia.com>
Reviewed-on: http://git-master/r/328115
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

drivers/net/usb/rtl8150.c

index 6cbdac6..d619f8c 100644 (file)
@@ -475,8 +475,8 @@ static void intr_callback(struct urb *urb)
                return;
        /* -EPIPE:  should clear the halt */
        default:
-               dev_info(&urb->dev->dev, "%s: intr status %d\n",
-                        dev->netdev->name, status);
+               dev_info_ratelimited(&urb->dev->dev, "%s: intr status %d\n",
+                       dev->netdev->name, status);
                goto resubmit;
        }