Merge tag 'v3.19-rc5' into next
authorFelipe Balbi <balbi@ti.com>
Mon, 19 Jan 2015 15:57:20 +0000 (09:57 -0600)
committerFelipe Balbi <balbi@ti.com>
Mon, 19 Jan 2015 15:57:20 +0000 (09:57 -0600)
Linux 3.19-rc5

Conflicts:
drivers/usb/dwc2/gadget.c
drivers/usb/gadget/udc/bdc/bdc_ep.c

1  2 
drivers/usb/dwc2/gadget.c
drivers/usb/dwc3/dwc3-pci.c
drivers/usb/dwc3/gadget.c
drivers/usb/gadget/function/f_hid.c
drivers/usb/gadget/function/f_uac1.c
drivers/usb/gadget/udc/atmel_usba_udc.c
drivers/usb/gadget/udc/bdc/bdc_ep.c
drivers/usb/musb/musb_debugfs.c

Simple merge
index 5f5fa98f399d7a314f53b4749d9b075ff0b32f2e,b642a2f998f9eaf8079b36e1b22612042e353288..8d950569d557bdacf2711fa8eb449a5dc63f4f1a
  #define PCI_DEVICE_ID_INTEL_BYT               0x0f37
  #define PCI_DEVICE_ID_INTEL_MRFLD     0x119e
  #define PCI_DEVICE_ID_INTEL_BSW               0x22B7
+ #define PCI_DEVICE_ID_INTEL_SPTLP     0x9d30
+ #define PCI_DEVICE_ID_INTEL_SPTH      0xa130
  
 -struct dwc3_pci {
 -      struct device           *dev;
 -      struct platform_device  *dwc3;
 -      struct platform_device  *usb2_phy;
 -      struct platform_device  *usb3_phy;
 -};
 -
 -static int dwc3_pci_register_phys(struct dwc3_pci *glue)
 +static int dwc3_pci_quirks(struct pci_dev *pdev)
  {
 -      struct usb_phy_generic_platform_data pdata;
 -      struct platform_device  *pdev;
 -      int                     ret;
 +      if (pdev->vendor == PCI_VENDOR_ID_AMD &&
 +          pdev->device == PCI_DEVICE_ID_AMD_NL_USB) {
 +              struct dwc3_platform_data pdata;
  
 -      memset(&pdata, 0x00, sizeof(pdata));
 +              memset(&pdata, 0, sizeof(pdata));
  
 -      pdev = platform_device_alloc("usb_phy_generic", 0);
 -      if (!pdev)
 -              return -ENOMEM;
 -
 -      glue->usb2_phy = pdev;
 -      pdata.type = USB_PHY_TYPE_USB2;
 -      pdata.gpio_reset = -1;
 +              pdata.has_lpm_erratum = true;
 +              pdata.lpm_nyet_threshold = 0xf;
  
 -      ret = platform_device_add_data(glue->usb2_phy, &pdata, sizeof(pdata));
 -      if (ret)
 -              goto err1;
 +              pdata.u2exit_lfps_quirk = true;
 +              pdata.u2ss_inp3_quirk = true;
 +              pdata.req_p1p2p3_quirk = true;
 +              pdata.del_p1p2p3_quirk = true;
 +              pdata.del_phy_power_chg_quirk = true;
 +              pdata.lfps_filter_quirk = true;
 +              pdata.rx_detect_poll_quirk = true;
  
 -      pdev = platform_device_alloc("usb_phy_generic", 1);
 -      if (!pdev) {
 -              ret = -ENOMEM;
 -              goto err1;
 -      }
 +              pdata.tx_de_emphasis_quirk = true;
 +              pdata.tx_de_emphasis = 1;
  
 -      glue->usb3_phy = pdev;
 -      pdata.type = USB_PHY_TYPE_USB3;
 -
 -      ret = platform_device_add_data(glue->usb3_phy, &pdata, sizeof(pdata));
 -      if (ret)
 -              goto err2;
 -
 -      ret = platform_device_add(glue->usb2_phy);
 -      if (ret)
 -              goto err2;
 +              /*
 +               * FIXME these quirks should be removed when AMD NL
 +               * taps out
 +               */
 +              pdata.disable_scramble_quirk = true;
 +              pdata.dis_u3_susphy_quirk = true;
 +              pdata.dis_u2_susphy_quirk = true;
  
 -      ret = platform_device_add(glue->usb3_phy);
 -      if (ret)
 -              goto err3;
 +              return platform_device_add_data(pci_get_drvdata(pdev), &pdata,
 +                                              sizeof(pdata));
 +      }
  
        return 0;
 -
 -err3:
 -      platform_device_del(glue->usb2_phy);
 -
 -err2:
 -      platform_device_put(glue->usb3_phy);
 -
 -err1:
 -      platform_device_put(glue->usb2_phy);
 -
 -      return ret;
  }
  
  static int dwc3_pci_probe(struct pci_dev *pci,
Simple merge
Simple merge
Simple merge
index fdc0e9fc39d0ba55c7f0c30d98a6f16a2c1f4b82,d4fe8d769bd673c384707fae714944885061911d..b04980cf6dc42108f4861e4dfa7285dd4fe56af9
@@@ -718,10 -718,11 +718,11 @@@ static int ep_queue(struct bdc_ep *ep, 
        struct bdc *bdc;
        int ret = 0;
  
-       bdc = ep->bdc;
 -      if (!req || !ep || !ep->usb_ep.desc)
 +      if (!req || !ep->usb_ep.desc)
                return -EINVAL;
  
+       bdc = ep->bdc;
        req->usb_req.actual = 0;
        req->usb_req.status = -EINPROGRESS;
        req->epnum = ep->ep_num;
index bb13e04201407c517a7d307c22c007cd6b018659,48131aa8472cfef70b19d6a2a72db0a8d6b2db85..78a283e9ce40b112a44fc3ab22e5b43bc75e5685
@@@ -194,22 -196,22 +196,22 @@@ static ssize_t musb_test_mode_write(str
  
        memset(buf, 0x00, sizeof(buf));
  
 -      if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count)))
 +      if (copy_from_user(buf, ubuf, min_t(size_t, sizeof(buf) - 1, count)))
                return -EFAULT;
  
-       if (!strncmp(buf, "force host", 9))
+       if (strstarts(buf, "force host"))
                test = MUSB_TEST_FORCE_HOST;
  
-       if (!strncmp(buf, "fifo access", 11))
+       if (strstarts(buf, "fifo access"))
                test = MUSB_TEST_FIFO_ACCESS;
  
-       if (!strncmp(buf, "force full-speed", 15))
+       if (strstarts(buf, "force full-speed"))
                test = MUSB_TEST_FORCE_FS;
  
-       if (!strncmp(buf, "force high-speed", 15))
+       if (strstarts(buf, "force high-speed"))
                test = MUSB_TEST_FORCE_HS;
  
-       if (!strncmp(buf, "test packet", 10)) {
+       if (strstarts(buf, "test packet")) {
                test = MUSB_TEST_PACKET;
                musb_load_testpacket(musb);
        }