Re: [PATCH 6/6] USB: typec: Remove remaining redundant license text

2017-11-07 Thread Rui Miguel Silva
oved. > > Cc: Heikki Krogerus > Cc: Guenter Roeck > Cc: Hans de Goede > Cc: Yueyao Zhu > Cc: Rui Miguel Silva > Signed-off-by: Greg Kroah-Hartman > --- Acked-by: Rui Miguel Silva --- Cheers, Rui > drivers/usb/typec/fusb302/fusb302.c | 10 -- > d

Re: [PATCH 5/6] USB: typec: add SPDX identifiers to some files

2017-11-07 Thread Rui Miguel Silva
n the file > itself. > > The SPDX identifier is a legally binding shorthand, which can be used > instead of the full boiler plate text. > > Cc: Heikki Krogerus > Cc: Guenter Roeck > Cc: Hans de Goede > Cc: Yueyao Zhu > Cc: Rui Miguel Silva > Cc: Thomas Gleixner >

Re: [PATCH] usb: gadget: dummy_hcd: fix status in transfer

2015-07-08 Thread Rui Miguel Silva
Hi Alan, On Wed, Jul 08, 2015 at 10:43:48AM -0400, Alan Stern wrote: On Wed, 8 Jul 2015, Rui Miguel Silva wrote: >> --- a/drivers/usb/gadget/udc/dummy_hcd.c >> +++ b/drivers/usb/gadget/udc/dummy_hcd.c >> @@ -1367,8 +1367,10 @@ top: >>/* many requests t

Re: [PATCH] usb: gadget: dummy_hcd: fix status in transfer

2015-07-08 Thread Rui Miguel Silva
Hi Alan, On Tue, Jul 07, 2015 at 01:53:14PM -0400, Alan Stern wrote: On Tue, 7 Jul 2015, Rui Miguel Silva wrote: When the request actual state is equal to lenght, besides setting the "state"? Do you mean "status"? "lenght" is a typo. request status to done,

Re: [PATCH] usb: gadget: dummy_hcd: check hcd at urb enqueue

2015-07-08 Thread Rui Miguel Silva
Hi Alan, On Tue, Jul 07, 2015 at 02:07:48PM -0400, Alan Stern wrote: On Tue, 7 Jul 2015, Rui Miguel Silva wrote: When processing urb list in dummy_timer and an ep goes away, the urb is giveback with an -EPROTO error. However the same urb can be enqueued once again and the loop in dummy_timer

[PATCH] usb: gadget: dummy_hcd: check hcd at urb enqueue

2015-07-07 Thread Rui Miguel Silva
. Signed-off-by: Rui Miguel Silva --- drivers/usb/gadget/udc/dummy_hcd.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/udc/dummy_hcd.c index f5400b8..30f1563 100644 --- a/drivers/usb/gadget/udc/dummy_hcd.c +++ b

[PATCH] usb: gadget: dummy_hcd: fix status in transfer

2015-07-07 Thread Rui Miguel Silva
When the request actual state is equal to lenght, besides setting the request status to done, the status variable also need to be updated. If not, the status will be EINPROGRESS and the transfer will never be set as completed. Signed-off-by: Rui Miguel Silva --- drivers/usb/gadget/udc

[PATCH] usb: gadget: f_fs: do not set cancel function on synchronous {read,write}

2015-05-27 Thread Rui Miguel Silva
ned-off-by: Rui Miguel Silva --- changes v1 -> v2: * Requested by Felipe Balbi: - add a more complete log message - include Al Viro in cc. drivers/usb/gadget/function/f_fs.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/function/f_fs.c b/d

[PATCH] usb: gadget: f_fs: add extra check before unregister_gadget_item

2015-05-20 Thread Rui Miguel Silva
ffs_closed can race with configfs_rmdir which will call config_item_release, so add an extra check to avoid calling the unregister_gadget_item with an null gadget item. Signed-off-by: Rui Miguel Silva --- drivers/usb/gadget/function/f_fs.c | 10 -- 1 file changed, 8 insertions(+), 2