Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2671706pxb; Mon, 11 Jan 2021 16:44:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxAxjjVQuQ03fVL45FckbpwqNBGTWLzRtI7QzYNU3y9Pp+NtT/JYtZ3T7J10e7DI/7LKlo X-Received: by 2002:a17:906:3101:: with SMTP id 1mr1373947ejx.115.1610412288900; Mon, 11 Jan 2021 16:44:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610412288; cv=none; d=google.com; s=arc-20160816; b=j2Ov2+wi0BV7dhodXFojVnGA8SOVQediNqjGKJGQizathsl79YzGfU6r0P61bhg7IC bCcPlJYxdXrqbN39QD6wHP1iOXOkDGdBf6fRHIFsWFAA8dsWjXDCB2gl6Mw0SFgiiy8G W2szztU/izbG9j62l2/Pcgmg5lpOPr5TuZJp/2eFixTRKeUgiLKPiKazYfcOyPh59u8E 6tQdEaNoj/r9LAm71FfkbSqNy6nvUETnhj2gJCpLXZOE2MasY+EHXgPYQX7myjxgbrEq PRlbPkkiFDUftL9uJZlwZ47KvffUcqng25rmxfFfzzJZFPKBnZjSt0wbw7Wuv4R+yKHg Zjqg== 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=xXtrswRmqD3JhFyJQjguIJp1LWdfA4ap6r57C23oeVA=; b=t/MB9sCmJ74OolBvqVS6qssU6SJBFwUhe7KaS9IlhrZT08+eSW5ZShWrk+6LX/UKGQ LW0fGIz3hBfMZCwwUezDAbFQKXx8Lw3ErpT8be3RJKt75m3xb066W4mwNOa2+86VdDs5 vn8kuEs5pPRGnlzN0JIfPmhU2H2w4KAKTvW+9uwhyASjNdEdYz+UrilfV4zUu+deSksL JpnGmHdCcFTYxe0Kx4ow5YW1M+w+tAWvQC7CF8sZX6GQRCsvwJ8CP1KCWZwWfFz0mdM2 7HntdkF/UQacmkhg9euueO1B50UojSd4ge0AeuYgh+5UJeJtbGxFYy6X5TS38y2658Wu 0EyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DcHJUmaF; 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 i7si365457ejo.480.2021.01.11.16.44.24; Mon, 11 Jan 2021 16:44:48 -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=DcHJUmaF; 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 S1727815AbhAKNAs (ORCPT + 99 others); Mon, 11 Jan 2021 08:00:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:48478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726672AbhAKNAr (ORCPT ); Mon, 11 Jan 2021 08:00:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id BE0B92250F; Mon, 11 Jan 2021 13:00:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610370007; bh=GMWVMHhoh3yECIti5hAbdNTaqBInS03q2FX2KW9vo4U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DcHJUmaFuxS+czFsCGeaUEv8si/b8cjWPu4C0CL8MywLnsOikJ4uAZntXDUtnsIFQ e9IxQaH/8rr1z1sApJz3MLBS1xHw5GU67Lz2+rBglfPrFB7jvKiar+A1Z3aR/b5KGt ZNalegstwYUeiTlu6F+VgChZ0rGxtCyCxI6zj2PU= 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.4 10/38] CDC-NCM: remove "connected" log message Date: Mon, 11 Jan 2021 14:00:42 +0100 Message-Id: <20210111130032.965314461@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210111130032.469630231@linuxfoundation.org> References: <20210111130032.469630231@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 @@ -1553,9 +1553,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;