Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp181392pxu; Thu, 7 Jan 2021 01:51:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxg1fL48a/oTDBFzt3f1apTJCid5NtBTE/H9NywTxSasWyc8CfEzEk2F+Lq8pm9bzf1PCen X-Received: by 2002:a17:906:2da:: with SMTP id 26mr5710840ejk.15.1610013103081; Thu, 07 Jan 2021 01:51:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610013103; cv=none; d=google.com; s=arc-20160816; b=mBj0QKYUrWhy+iElHV7IeHxsGYSVV96Ldkczb8TLnl8JOBUwwLpOcLoKTqCghjWg4J iouWkOeSqUVvvR8bPYFxgN2saGLaij9ihl2DMPSJ6qxih9+NdA542Baxhs34fZnWX/Fe 1w52e21+4BL6uihd8a7kBjkEi7b2fvcr5jR8ogDSyrAA4WlzFRjmsxdvVpQZAmOqvtKS y14noEYsh9f+HRuit3eo0sMkApOi0NbrVKWR9qGW1u1iNJ4/uWpCTApxCH2nhXRrX9GP We+4yXHaLZQr73B/eaBiko6KeDKgzpj1fMlrl5PvT42yEgl9JW1t11wOZCCNGGfna7av lLsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Mj8obbprkItSTlyZj68/laDHsh5YHT9sPeAzPOyQVYg=; b=wnLFu1p2/mAFgKlhrUgokpY1S6UgWNowXSPZxFUbdFFZOQ6z0+lcwkFWSM2R6G/IeZ z3opMtc63hwQt+OJ1fRshJidKqfMFyok6/N6jhNRV8j1ropom4Xk6WvVA+Jv/6awBBUj GvQ3Ko7UPDryBZPFIVgmujadWNOvaFTh8NAwoHR756h2BghY/mO4knb7F378JlpL07x4 Gt945NDVEiwpkZSjNLC6ZvgySUIuVdMxCaC8S6N9UXrDu5WrqLEjUXIINnlBoLDI2DbP v0SUqNzvtWECxbnn2Svhk5g4w3QphfpeILeRcFVyDf9n2cbuWldzl6h7QzAI8cjYl/16 3OOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zgRdSM4C; 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 se25si1983837ejb.82.2021.01.07.01.51.18; Thu, 07 Jan 2021 01:51:43 -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=zgRdSM4C; 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 S1726754AbhAGJt7 (ORCPT + 99 others); Thu, 7 Jan 2021 04:49:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:49304 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbhAGJt7 (ORCPT ); Thu, 7 Jan 2021 04:49:59 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 776362333D; Thu, 7 Jan 2021 09:49:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610012958; bh=CC5w2dVB0msolsQQjxn98j0tPU3c4rpDBCwIt5Z8nGA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zgRdSM4C0FhR0XlV7OGhk8xmHZLEuspAvfBgdKQTOl3x/cOcdTqfFGSsxSullwvpe K9Ucl39JlHoaNsdFX7iQeL6URdt4oP94QNyHRYBfWWSh87FafgDaUNHqFzkBDfg+p7 9lQtl8xfayzyCTiSD2ldbd6TYlQLJolYHBjX0zU4= Date: Thu, 7 Jan 2021 10:50:38 +0100 From: Greg KH To: Albert Wang Cc: balbi@kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Revert "usb: gadget: Quieten gadget config message" Message-ID: References: <20210107090604.299270-1-albertccwang@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210107090604.299270-1-albertccwang@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 07, 2021 at 09:06:04AM +0000, Albert Wang wrote: > This reverts commit 1cbfb8c4f62d667f6b8b3948949737edb92992cc. > > The log of USB enumeration result is a useful log and only occupies > one line especially when USB3 enumeration failed and then downgrade > to USB2. > > Signed-off-by: Albert Wang > --- > drivers/usb/gadget/composite.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c > index c6d455f2bb92..5b0d6103a63d 100644 > --- a/drivers/usb/gadget/composite.c > +++ b/drivers/usb/gadget/composite.c > @@ -840,9 +840,9 @@ static int set_config(struct usb_composite_dev *cdev, > result = 0; > } > > - DBG(cdev, "%s config #%d: %s\n", > - usb_speed_string(gadget->speed), > - number, c ? c->label : "unconfigured"); > + INFO(cdev, "%s config #%d: %s\n", > + usb_speed_string(gadget->speed), > + number, c ? c->label : "unconfigured"); When everything is working properly, the kernel should be quiet. If you have to see this message, you can turn it on at runtime, as Felipe pointed out, to enable it for your system. But it's not a good default thing to have. What do you need to see this message for? What tool relies on it? Who reads it? thanks, greg k-h