mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
Merge tag 'usb-for-v4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-next
Felipe writes: usb: patches for v4.3 merge window New support for Allwinne SoC on the MUSB driver has been added to the list of glue layers. MUSB also got support for building all DMA engines in one binary; this will be great for distros. DWC3 now has no trace of dev_dbg()/dev_vdbg() usage. We will rely solely on tracing to debug DWC3. There was also a fix for memory corruption with EP0 when maxpacket size transfers are > 512 bytes. Robert's EP capabilities flags is making EP selection a lot simpler. UDCs are now required to set these flags up when adding endpoints to the framework. Other than these, we have the usual set of miscelaneous cleanups and minor fixes. Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
@@ -804,6 +804,8 @@ done:
|
||||
|
||||
static void printer_reset_interface(struct printer_dev *dev)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
||||
if (dev->interface < 0)
|
||||
return;
|
||||
|
||||
@@ -815,9 +817,11 @@ static void printer_reset_interface(struct printer_dev *dev)
|
||||
if (dev->out_ep->desc)
|
||||
usb_ep_disable(dev->out_ep);
|
||||
|
||||
spin_lock_irqsave(&dev->lock, flags);
|
||||
dev->in_ep->desc = NULL;
|
||||
dev->out_ep->desc = NULL;
|
||||
dev->interface = -1;
|
||||
spin_unlock_irqrestore(&dev->lock, flags);
|
||||
}
|
||||
|
||||
/* Change our operational Interface. */
|
||||
@@ -1131,13 +1135,10 @@ static int printer_func_set_alt(struct usb_function *f,
|
||||
static void printer_func_disable(struct usb_function *f)
|
||||
{
|
||||
struct printer_dev *dev = func_to_printer(f);
|
||||
unsigned long flags;
|
||||
|
||||
DBG(dev, "%s\n", __func__);
|
||||
|
||||
spin_lock_irqsave(&dev->lock, flags);
|
||||
printer_reset_interface(dev);
|
||||
spin_unlock_irqrestore(&dev->lock, flags);
|
||||
}
|
||||
|
||||
static inline struct f_printer_opts
|
||||
|
||||
Reference in New Issue
Block a user