Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtl8xxxu: Stop log spam from each successful interrupt

As soon as debugging is turned on, the logs are filled with messages
reporting the interrupt status. As this quantity is usually zero, this
output is not needed. In fact, there will be a report if the status is
not zero, thus the debug line in question could probably be deleted.
Rather than taking that action, I have changed it to only be printed
when the newly added RTL8XXXU_DEBUG_INTERRUPT bit is set in the debug
mask.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Larry Finger and committed by
Kalle Valo
b42fbed6 2fc5dd27

+3 -1
+1
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
··· 29 29 #define RTL8XXXU_DEBUG_H2C 0x800 30 30 #define RTL8XXXU_DEBUG_ACTION 0x1000 31 31 #define RTL8XXXU_DEBUG_EFUSE 0x2000 32 + #define RTL8XXXU_DEBUG_INTERRUPT 0x4000 32 33 33 34 #define RTW_USB_CONTROL_MSG_TIMEOUT 500 34 35 #define RTL8XXXU_MAX_REG_POLL 500
+2 -1
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
··· 5375 5375 struct device *dev = &priv->udev->dev; 5376 5376 int ret; 5377 5377 5378 - dev_dbg(dev, "%s: status %i\n", __func__, urb->status); 5378 + if (rtl8xxxu_debug & RTL8XXXU_DEBUG_INTERRUPT) 5379 + dev_dbg(dev, "%s: status %i\n", __func__, urb->status); 5379 5380 if (urb->status == 0) { 5380 5381 usb_anchor_urb(urb, &priv->int_anchor); 5381 5382 ret = usb_submit_urb(urb, GFP_ATOMIC);