Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2673268pxb; Mon, 11 Jan 2021 16:47:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyffOKNvxTfqyGmwmz3IrhEHLdquI4e4zVDVTjYGnUEK2T74oxb4agdIXIBAyxjxWrz6ABm X-Received: by 2002:a50:eb44:: with SMTP id z4mr1339206edp.167.1610412477521; Mon, 11 Jan 2021 16:47:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610412477; cv=none; d=google.com; s=arc-20160816; b=Knk7DwNDb1Jgl6T3Cntb9oAFBpXCDWuRsUwExQW8zIDL7wJAgauozke0du8wQD9PZu br9UWTxRQtngZo6gw4ZLh6SHMxJgDfASZeFRFIl4dH5QmRJUFtgOSBc54KhPBb7HoUKL n4eBr/eWgg9KKkK2pqTgKAaikgmH5nW4is278gSJSBNfdMydcYBRxT2QY8Hx9hYO/c2I /9O7stCsjNuMh1oDJR7sZwP0g2Yoezwkz4X6bb+DGdyeqm4+Oj38qzdB4a1sr2+U0xO1 K9V1BDzlxx5O3/ozNCvCyLJJUWWMa6vADpYUasBpfFHa2hHXf1Oi/j2fmoAApp/lqYwO jrbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=NBCY2lblpWt15fPjbIZO3NwqCWDZWrXCLK74oygFOJU=; b=k2eWGr9I2tZ6WxpXqBLcWExv07Y4mpXGca6PLDQU+EdfT9FNsJES0T3TVajjUXwocD DlTxh9vg7MdVtLisLCf851BkZA1v6rvQPP10B+BeJhGBEizLkLWMNHG7jRBdyRWw2wAi Yqfd3eGv4eXP5KY1H0TkM3Ql9jV1KWSCvN0vCwtOSHUElcipytpZ9emJf0kcVUxoF/rt YZXx7jl7+33veRJBTnlngGTBJ2KFbWDkzw7JmDKrlYkyrhhmWI7N8u1TgdNL/pdFzWhQ 9e7rWQ0EzhP/Iorqe6d0N/uAMqgrCiCXrbGIVpuvlnEwQksUvI7Y6rpSv7Ru3iVvz0gZ 4A2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IVOh3H2b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d18si408064ejd.342.2021.01.11.16.47.33; Mon, 11 Jan 2021 16:47:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IVOh3H2b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730048AbhAKNDy (ORCPT + 99 others); Mon, 11 Jan 2021 08:03:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:50228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729877AbhAKNDd (ORCPT ); Mon, 11 Jan 2021 08:03:33 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 25DBD22B49; Mon, 11 Jan 2021 13:03:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610370180; bh=03QUWQ415jjUHIpHk/zRgS5jbP2+2GX/ofxhdKU9KSw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IVOh3H2b7WJlaIGjqoHQaqp89d9fDUu/4yTJN/N5k/e0D94HjLTMLpfPTNKNGuMhP MnbdJiXAKxRgBkXFPFtTm33q2fTS9rfsEldeEgjOGL5I71b2V+MrrbmIWqcUvv2I0T QiE1YAPWdP29kB7T1RWHCl7q4zHJ4g7EU9cd8bU4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Roland Dreier , Jakub Kicinski Subject: [PATCH 4.9 13/45] CDC-NCM: remove "connected" log message Date: Mon, 11 Jan 2021 14:00:51 +0100 Message-Id: <20210111130034.290222470@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210111130033.676306636@linuxfoundation.org> References: <20210111130033.676306636@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Roland Dreier [ 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 Reviewed-by: Greg Kroah-Hartman Link: https://lore.kernel.org/r/20201224032116.2453938-1-roland@kernel.org Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/usb/cdc_ncm.c | 3 --- 1 file changed, 3 deletions(-) --- a/drivers/net/usb/cdc_ncm.c +++ b/drivers/net/usb/cdc_ncm.c @@ -1602,9 +1602,6 @@ static void cdc_ncm_status(struct usbnet * USB_CDC_NOTIFY_NETWORK_CONNECTION notification shall be * sent by device after USB_CDC_NOTIFY_SPEED_CHANGE. */ - netif_info(dev, link, dev->net, - "network connection: %sconnected\n", - !!event->wValue ? "" : "dis"); usbnet_link_change(dev, !!event->wValue, 0); break;