Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2302171pxb; Mon, 18 Jan 2021 14:05:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtrm5CpXGyTEFfFmgdntqgw6DPmw9wGTYy8bm+9U09xst6iHrq5mFLEFTxTReY4SiLt/b3 X-Received: by 2002:a17:906:1ed6:: with SMTP id m22mr1124281ejj.231.1611007545659; Mon, 18 Jan 2021 14:05:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611007545; cv=none; d=google.com; s=arc-20160816; b=trEOLMYG7jhD2vPGvaSBlPgEXs9Pi7kgNNePfua4tVHAx/WOUccMbTA6eGd9kjHff2 nm/HlLZ1C7Z9MzbU1prC+Szpr/UN1CWe+z0NfvH/DYS5mWRgA8PxtakegPx0CGq/UCW+ PedqPZxwPyKpAiaenjDAuW8WZq2GmEeRjsrlPRCiut7THTQHfXKrF+1KMY331EtMsP7I YbIN1bIJlQAgHuOwMIPo+KhDvz83/594DP4GE5ReLSebDyu8uHcIAWZuWLj2RdUYyyKF kMmwzPrhrotd/WWutpGuIg+CMk5i4Kn1gdiv3nL32GKvYdEBdhr+edDltw3saF6V++H1 j01Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=cgYXXKDGBW6a/Ay3lvFyQRjl1IFnWA6SVXMh0iaCM6U=; b=lCqs6lo/eC558zmqD2B9+ze4qJa2c4WHEjLeo24BwkiHg2YxQPT9XqAyOl1u+TYV+s 1rDEcyhjNW2HH6axByWCEKbi87Vul/Eax8w0btChfh+E7uwkfMrk74frkMCIwKVBp2IV zojAveys9g8uYbAlzPmb1IzYkK0dPHbIFMQK4yJoDXzIQyAB+SqXDxHLjEmvtqD8AsaE HHXkOJnFDuoEcVItuHiRhcQRj1fhCtXa+xcTPQ07Hjb+vOWKpkUnBXEUrb8iOEKaqaqB MGULWC1lNVzyNZ6KOfj1db8b+IM0cJWN/5lZtI7u6pfC4eYuQArGPAyJ6vtyewrJU1sU V1Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eyMgvEKM; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a10si4735449edf.71.2021.01.18.14.05.22; Mon, 18 Jan 2021 14:05:45 -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=@chromium.org header.s=google header.b=eyMgvEKM; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387789AbhARWDM (ORCPT + 99 others); Mon, 18 Jan 2021 17:03:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387557AbhARWCz (ORCPT ); Mon, 18 Jan 2021 17:02:55 -0500 Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8601C0613ED for ; Mon, 18 Jan 2021 14:02:14 -0800 (PST) Received: by mail-vs1-xe2a.google.com with SMTP id o186so2233904vso.1 for ; Mon, 18 Jan 2021 14:02:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cgYXXKDGBW6a/Ay3lvFyQRjl1IFnWA6SVXMh0iaCM6U=; b=eyMgvEKMYxzdZvh8xGdzUCAR5CvGMETl+M8cnoeriJLzg1OfILsdm/eOp6Oaln9s6b LqD8nFm7Hyk93ADZ6I0mplNmUXPSB1rzRSsY6lN2MnOBnviqDkrwT7cyQqoxHkWKKM+F To7ReuUilxRCUbWz4ER8OvSGYi0offyr/Audg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cgYXXKDGBW6a/Ay3lvFyQRjl1IFnWA6SVXMh0iaCM6U=; b=WerIQo+dTihzBhU7Kigg44L1jeWUp7+Zvpftyygwu/sj6kOb4djNtZ8JlnXEcHuKdw uZfgdg1ajlo0ewWq2kcx7Gb7kg1/uRRIgV+hs13ct08Y7ROl0mfRYm7EORfTfY0ayHEk iHAY2OC/tfnsZYUmAseUY+7InHarSZSmnO0Yb+yVDjtaJazYRBygT6Xy2ofr1imTfm6J LD1UvaKWX4GGq9Qg2G2E6g1JL1zbWi3tfL17L/4HTlNXgoZjeQmYMuRNV5TGMbDrL/7s txKZwA8vkh1GzcLANjA2WGBLMvshd4S9oUdpsYim6XD1Q93z7pWf3WqKMc3o8SMOsE2k PU/g== X-Gm-Message-State: AOAM530gdcDC6MPTcOSm9xiY6sjlgnWcb1novQONaXnqaQZWpy7EWqu1 kgJRXyla7Is4XMldWA+Co1nk5rE6Hsac/GfCZmFGnw== X-Received: by 2002:a67:2a46:: with SMTP id q67mr1070098vsq.40.1611007333852; Mon, 18 Jan 2021 14:02:13 -0800 (PST) MIME-Version: 1.0 References: <20210116052623.3196274-1-grundler@chromium.org> <20210116052623.3196274-2-grundler@chromium.org> In-Reply-To: <20210116052623.3196274-2-grundler@chromium.org> From: Grant Grundler Date: Mon, 18 Jan 2021 22:02:02 +0000 Message-ID: Subject: Re: [PATCH 2/3] net: usb: log errors to dmesg/syslog To: Grant Grundler , nic_swsd Cc: Oliver Neukum , "David S. Miller" , Jakub Kicinski , Greg Kroah-Hartman , linux-usb@vger.kernel.org, netdev , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +nic_swsd [adding per Realtek developer team request] On Sat, Jan 16, 2021 at 5:27 AM Grant Grundler wrote: > > Errors in protocol should be logged when the driver aborts operations. > If the driver can carry on and "humor" the device, then emitting > the message as debug output level is fine. > > Signed-off-by: Grant Grundler > --- > drivers/net/usb/usbnet.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c > index 1447da1d5729..bc7b93399bd5 100644 > --- a/drivers/net/usb/usbnet.c > +++ b/drivers/net/usb/usbnet.c > @@ -887,7 +887,7 @@ int usbnet_open (struct net_device *net) > > // insist peer be connected > if (info->check_connect && (retval = info->check_connect (dev)) < 0) { > - netif_dbg(dev, ifup, dev->net, "can't open; %d\n", retval); > + netif_err(dev, ifup, dev->net, "can't open; %d\n", retval); > goto done; > } > > -- > 2.29.2 >