This is a note to let you know that I've just added the patch titled

    usb: gadget: function: acm: make f_acm pass USB20CV Chapter9

to the 3.10-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     usb-gadget-function-acm-make-f_acm-pass-usb20cv-chapter9.patch
and it can be found in the queue-3.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From [email protected]  Wed Nov 12 08:39:16 2014
From: Felipe Balbi <[email protected]>
Date: Mon, 10 Nov 2014 08:56:40 -0600
Subject: usb: gadget: function: acm: make f_acm pass USB20CV Chapter9
To: Greg KH <[email protected]>
Cc: <[email protected]>, Felipe Balbi <[email protected]>
Message-ID: <[email protected]>

From: Felipe Balbi <[email protected]>

[ Upstream commit 52ec49a5e56a27c5b6f8217708783eff39f24c16 ]

During Halt Endpoint Test, our interrupt endpoint
will be disabled, which will clear out ep->desc
to NULL. Unless we call config_ep_by_speed() again,
we will not be able to enable this endpoint which
will make us fail that test.

Fixes: f9c56cd (usb: gadget: Clear usb_endpoint_descriptor
        inside the struct usb_ep on disable)
Signed-off-by: Felipe Balbi <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
 drivers/usb/gadget/f_acm.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

--- a/drivers/usb/gadget/f_acm.c
+++ b/drivers/usb/gadget/f_acm.c
@@ -430,11 +430,12 @@ static int acm_set_alt(struct usb_functi
                if (acm->notify->driver_data) {
                        VDBG(cdev, "reset acm control interface %d\n", intf);
                        usb_ep_disable(acm->notify);
-               } else {
-                       VDBG(cdev, "init acm ctrl interface %d\n", intf);
+               }
+
+               if (!acm->notify->desc)
                        if (config_ep_by_speed(cdev->gadget, f, acm->notify))
                                return -EINVAL;
-               }
+
                usb_ep_enable(acm->notify);
                acm->notify->driver_data = acm;
 


Patches currently in stable-queue which might be from [email protected] are

queue-3.10/usb-dwc3-gadget-fix-set_halt-bug-with-pending-transfers.patch
queue-3.10/usb-gadget-function-acm-make-f_acm-pass-usb20cv-chapter9.patch
queue-3.10/usb-dwc3-gadget-properly-initialize-link-trb.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to