From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756831AbcH2IL6 (ORCPT ); Mon, 29 Aug 2016 04:11:58 -0400 Received: from mail-qk0-f177.google.com ([209.85.220.177]:36157 "EHLO mail-qk0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756702AbcH2ILz (ORCPT ); Mon, 29 Aug 2016 04:11:55 -0400 MIME-Version: 1.0 In-Reply-To: <1469550106-16067-1-git-send-email-romain.izard.pro@gmail.com> References: <1469550106-16067-1-git-send-email-romain.izard.pro@gmail.com> From: Romain Izard Date: Mon, 29 Aug 2016 10:11:34 +0200 X-Google-Sender-Auth: yz162b5kuTd67qwpntbHTPkHfq8 Message-ID: Subject: Re: [PATCH v1] usb: gadget: configfs: log function unbinding as information To: linux-usb@vger.kernel.org, LKML , Felipe Balbi Cc: Greg Kroah-Hartman , Romain Izard Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2016-07-26 18:21 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 information, not as an error. > > Signed-off-by: Romain Izard > --- > 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 70cf3477f951..11f3a649d9e5 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 function" > - " '%s'/%p\n", f->name, f); > + dev_info(&gi->cdev.gadget->dev, > + "unbind function '%s'/%p\n", > + f->name, f); > f->unbind(c, f); > } > } > -- > 2.7.4 > Ping ?