Re: [PATCH v2] usb: gadget: configfs: log function unbinding as debug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2016-08-29 11:07 GMT+02:00 Romain Izard <romain.izard.pro@xxxxxxxxx>:
> 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 <romain.izard.pro@xxxxxxxxx>
> ---
> 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 function"
> -                                               " '%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 ?
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux