]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Merge tag 'usb-for-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi...
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Apr 2017 14:47:26 +0000 (16:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Apr 2017 14:47:26 +0000 (16:47 +0200)
Felipe writes:

usb: changes for v4.12

With 51 non-merge commits, this is one of the smallest USB Gadget pull
requests. Apart from your expected set of non-critical fixes, and
other miscellaneous items, we have most of the changes in dwc3 (52.5%)
with all other UDCs following with 34.8%.

As for the actual changes, the most important of them are all the
recent changes to reduce memory footprint of dwc3, bare minimum
dual-role support on dwc3 and reworked endpoint count and
initialization routines.

1  2 
drivers/usb/dwc3/Kconfig
drivers/usb/gadget/function/f_fs.c
drivers/usb/gadget/function/u_fs.h
drivers/usb/gadget/udc/Kconfig
drivers/usb/gadget/udc/amd5536udc.c
drivers/usb/gadget/udc/amd5536udc.h

Simple merge
Simple merge
Simple merge
index c6cc9d3270acd714f2471b85dddd392746101629,c90a4a2239160873b202e9c797b826209b6d9e4e..1c14c283cc47de111d8f6e4990b62f5906dc89a1
@@@ -277,7 -293,8 +293,8 @@@ source "drivers/usb/gadget/udc/bdc/Kcon
  
  config USB_AMD5536UDC
        tristate "AMD5536 UDC"
 -      depends on PCI
 +      depends on USB_PCI
+       select USB_SNP_CORE
        help
           The AMD5536 UDC is part of the AMD Geode CS5536, an x86 southbridge.
           It is a USB Highspeed DMA capable USB device controller. Beside ep0
index 270876b438ab13dad359b6da19e777d27ad98745,91d0f1a4dac1069bab16d9c152b7b8b43c27e2ea..4ecd2f20ea480082a5a3abf2f9a7f8e756e6c495
@@@ -618,17 -579,12 +579,12 @@@ static void udc_free_dma_chain(struct u
        DBG(dev, "free chain req = %p\n", req);
  
        /* do not free first desc., will be done by free for request */
-       td_last = req->td_data;
-       td = phys_to_virt(td_last->next);
        for (i = 1; i < req->chain_len; i++) {
-               dma_pool_free(dev->data_requests, td,
-                             (dma_addr_t)td_last->next);
-               td_last = td;
-               td = phys_to_virt(td_last->next);
+               td = phys_to_virt(addr);
+               addr_next = (dma_addr_t)td->next;
 -              pci_pool_free(dev->data_requests, td, addr);
++              dma_pool_free(dev->data_requests, td, addr);
+               addr = addr_next;
        }
-       return ret_val;
  }
  
  /* Frees request packet, called by gadget driver */
Simple merge