]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
CDC-NCM: remove "connected" log message
authorRoland Dreier <roland@kernel.org>
Thu, 24 Dec 2020 03:21:16 +0000 (19:21 -0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 19 Feb 2021 15:43:49 +0000 (16:43 +0100)
commitc8b9e3b2b76c4556493a3bc8aa4fe3aa2f4ad7ba
tree6216ad7ec31b69efb32f55a48052e9123ddaa8ab
parent1e6e489758d1c3adca9b712c292a098c7fb18c25
CDC-NCM: remove "connected" log message

BugLink: https://bugs.launchpad.net/bugs/1913486
[ Upstream commit 59b4a8fa27f5a895582ada1ae5034af7c94a57b5 ]

The cdc_ncm driver passes network connection notifications up to
usbnet_link_change(), which is the right place for any logging.
Remove the netdev_info() duplicating this from the driver itself.

This stops devices such as my "TRENDnet USB 10/100/1G/2.5G LAN"
(ID 20f4:e02b) adapter from spamming the kernel log with

    cdc_ncm 2-2:2.0 enp0s2u2c2: network connection: connected

messages every 60 msec or so.

Signed-off-by: Roland Dreier <roland@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20201224032116.2453938-1-roland@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
drivers/net/usb/cdc_ncm.c