From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757404AbcIGKpY (ORCPT ); Wed, 7 Sep 2016 06:45:24 -0400 Received: from mga02.intel.com ([134.134.136.20]:46227 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754639AbcIGKpX (ORCPT ); Wed, 7 Sep 2016 06:45:23 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,296,1470726000"; d="asc'?scan'208";a="1026243019" From: Felipe Balbi To: Romain Izard , linux-usb@vger.kernel.org, LKML Cc: Greg Kroah-Hartman , Romain Izard Subject: Re: [PATCH v2] usb: gadget: configfs: log function unbinding as debug In-Reply-To: References: <1469550106-16067-1-git-send-email-romain.izard.pro@gmail.com> <1472461641-3485-1-git-send-email-romain.izard.pro@gmail.com> User-Agent: Notmuch/0.22.1+63~g994277e (https://notmuchmail.org) Emacs/25.1.3 (x86_64-pc-linux-gnu) Date: Wed, 07 Sep 2016 13:44:49 +0300 Message-ID: <877faokmzi.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Romain Izard writes: > 2016-08-29 11:07 GMT+02:00 Romain Izard : >> Disabling USB gadget functions configured through configfs is something >> that can happen in normal use cases. Keep the existing log for this type >> of event, but only as debug, not as an error. >> >> Signed-off-by: Romain Izard >> --- >> v1 -> v2: >> - use dev_dbg instead of dev_info >> >> drivers/usb/gadget/configfs.c | 5 +++-- >> 1 file changed, 3 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs= .c >> index f9237fe2be05..3984787f8e97 100644 >> --- a/drivers/usb/gadget/configfs.c >> +++ b/drivers/usb/gadget/configfs.c >> @@ -1211,8 +1211,9 @@ static void purge_configs_funcs(struct gadget_info= *gi) >> >> list_move_tail(&f->list, &cfg->func_list); >> if (f->unbind) { >> - dev_err(&gi->cdev.gadget->dev, "unbind f= unction" >> - " '%s'/%p\n", f->name, f= ); >> + dev_dbg(&gi->cdev.gadget->dev, >> + "unbind function '%s'/%p\n", >> + f->name, f); >> f->unbind(c, f); >> } >> } >> -- >> 2.7.4 >> > > Ping ? https://git.kernel.org/cgit/linux/kernel/git/balbi/usb.git/commit/?h=3Dtest= ing/next&id=3Dda7b895d518cc1753ee5f4b7f2158087282d1a65 =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJXz++hAAoJEMy+uJnhGpkGMe8QAMNOBzJX1Le+5e9gUGmbj2Dp ybu49KKUwanqzRKE+6Qjp8E0A0rddGB2XNt1blX+gaC7cBB2o8COsQcv1FIc+X7y SEYay6QH706wsauCburY1upVwW0iEtH2EDImdStCqT0IEUdf3LF4FzIN2xIBaL0e rtq3AwO7mVF6csgcfR9XK8jTSGN/HM2MEcsuf0h0ZejnHdC1igb4C9t6yBvbbgpt oDdpbh7nIdHW/nj4encZDUB1Hb4BHS0rSP/QkQcqNvVMyv0750ken5L4kSrpG8Lq f3+/NA2BCI+Ff/48mtdVQTCuKmOt1aSIxn90iYHmmUdYX+/jKaJeu3PP2IKqyGcU gOIis5BJK2s3vHM+L0FP4BNKnqttg5+qb9NRUEL/LCKoP5x5dHoVQWOfwPUV4GvL TxR0170si+lssZ7YQ9vlxsbhLy81cWJpU8LapZdEqCLIewRKbYGngmxDGyR4Zbt9 wBYhu87LTCQHA1IsteCBn7O4O5kzuRWmGKBuowowYargyoI3GmY14Ypdf0bljtXF QDL3WiBtHWMpAxmqrZ923uXs9f6lODuVsjygjAet6O0nApFeAAmJbiys7f2qJP7Z zxPluA2eUH11k9F6Hqnn/M3kTFw4X+ZKlpHD8uuDl8TmhVS8ch05Oa8RvbJkNxYS VQNXGXUZ1B4JagIT+NhY =JGYh -----END PGP SIGNATURE----- --=-=-=--