[PATCH 0/1] usb gadget: modify the handling of function binding return value

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

 



The original composite gadget tries to bind several functions one by
one, and the final result is decided by the last function. That is,
if binding of the last function (ecm or eem) is ok, return value is 0.
Or return value will be non-zero and the whole gadget will not be
functional.

For example, number of endpoints is not enough to support all the functions
on some platform, and the last func binding API will return -ENODEV, which
lead to the whole gadget enabling failure. However, the previous functions
should still be able to be used.

This patch is used to handle this more flexibly. As long as one of the
functions is bound succesfully, return value will be 0.

Jiebing Li (1):
  usb gadget: modify the handling of function binding return value

 drivers/usb/gadget/nokia.c |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)--
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