package/devel/binutils: Update to 2.27
[openwrt/staging/chunkeey.git] / package / kernel / mac80211 / patches / 656-0004-rtl8xxxu-Stop-log-spam-from-each-successful-interrup.patch
1 From b42fbed6b8a5942e9f76ec8c7f9c9fd798a2d3af Mon Sep 17 00:00:00 2001
2 From: Larry Finger <Larry.Finger@lwfinger.net>
3 Date: Tue, 20 Sep 2016 21:19:29 -0400
4 Subject: [PATCH] rtl8xxxu: Stop log spam from each successful interrupt
5
6 As soon as debugging is turned on, the logs are filled with messages
7 reporting the interrupt status. As this quantity is usually zero, this
8 output is not needed. In fact, there will be a report if the status is
9 not zero, thus the debug line in question could probably be deleted.
10 Rather than taking that action, I have changed it to only be printed
11 when the newly added RTL8XXXU_DEBUG_INTERRUPT bit is set in the debug
12 mask.
13
14 Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
15 Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
16 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
17 ---
18 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 1 +
19 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 3 ++-
20 2 files changed, 3 insertions(+), 1 deletion(-)
21
22 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
23 +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
24 @@ -29,6 +29,7 @@
25 #define RTL8XXXU_DEBUG_H2C 0x800
26 #define RTL8XXXU_DEBUG_ACTION 0x1000
27 #define RTL8XXXU_DEBUG_EFUSE 0x2000
28 +#define RTL8XXXU_DEBUG_INTERRUPT 0x4000
29
30 #define RTW_USB_CONTROL_MSG_TIMEOUT 500
31 #define RTL8XXXU_MAX_REG_POLL 500
32 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
33 +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
34 @@ -5375,7 +5375,8 @@ static void rtl8xxxu_int_complete(struct
35 struct device *dev = &priv->udev->dev;
36 int ret;
37
38 - dev_dbg(dev, "%s: status %i\n", __func__, urb->status);
39 + if (rtl8xxxu_debug & RTL8XXXU_DEBUG_INTERRUPT)
40 + dev_dbg(dev, "%s: status %i\n", __func__, urb->status);
41 if (urb->status == 0) {
42 usb_anchor_urb(urb, &priv->int_anchor);
43 ret = usb_submit_urb(urb, GFP_ATOMIC);