Merge 3.4-rc6 into usb-next
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2012 16:03:39 +0000 (09:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2012 16:03:39 +0000 (09:03 -0700)
This resolves the conflict with:
drivers/usb/host/ehci-tegra.c

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1  2 
drivers/usb/class/cdc-wdm.c
drivers/usb/host/ehci-pci.c
drivers/usb/host/ehci-tegra.c
include/linux/usb/hcd.h

index cd017a914c5d4df4ca071ca2095ae11e01eccfbf,0bb2b3248dad99b0e114b83dc1028edd5fadb4a1..5d151653ae432b86385d8159660200b0b0d1c7d9
@@@ -412,9 -412,9 +414,10 @@@ static ssize_t wdm_writ
        rv = usb_submit_urb(desc->command, GFP_KERNEL);
        if (rv < 0) {
                kfree(buf);
+               desc->outbuf = NULL;
                clear_bit(WDM_IN_USE, &desc->flags);
                dev_err(&desc->intf->dev, "Tx URB error: %d\n", rv);
 +              rv = usb_translate_errors(rv);
        } else {
                dev_dbg(&desc->intf->dev, "Tx URB has been submitted index=%d",
                        req->wIndex);
Simple merge
index 4c1eb61bc2fc6d036cd9a670e83e052d6d02fb1a,f214a80cdee212ec816601ef51645b05fd3f6d68..e57aba52b31cd1fbdf384ef3f363d0b062711993
@@@ -423,37 -319,7 +308,7 @@@ static int tegra_ehci_setup(struct usb_
        return retval;
  }
  
- #ifdef CONFIG_PM
- static int tegra_ehci_bus_suspend(struct usb_hcd *hcd)
- {
-       struct tegra_ehci_hcd *tegra = dev_get_drvdata(hcd->self.controller);
-       int error_status = 0;
-       error_status = ehci_bus_suspend(hcd);
-       if (!error_status && tegra->power_down_on_bus_suspend) {
-               tegra_usb_suspend(hcd);
-               tegra->bus_suspended = 1;
-       }
-       return error_status;
- }
- static int tegra_ehci_bus_resume(struct usb_hcd *hcd)
- {
-       struct tegra_ehci_hcd *tegra = dev_get_drvdata(hcd->self.controller);
-       if (tegra->bus_suspended && tegra->power_down_on_bus_suspend) {
-               tegra_usb_resume(hcd);
-               tegra->bus_suspended = 0;
-       }
-       tegra_usb_phy_preresume(tegra->phy);
-       tegra->port_resuming = 1;
-       return ehci_bus_resume(hcd);
- }
- #endif
 -struct temp_buffer {
 +struct dma_aligned_buffer {
        void *kmalloc_ptr;
        void *old_xfer_buffer;
        u8 data[0];
@@@ -548,20 -426,14 +403,20 @@@ static const struct hc_driver tegra_ehc
        .endpoint_reset         = ehci_endpoint_reset,
        .get_frame_number       = ehci_get_frame,
        .hub_status_data        = ehci_hub_status_data,
 -      .hub_control            = tegra_ehci_hub_control,
        .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete,
 +      .relinquish_port        = ehci_relinquish_port,
 +      .port_handed_over       = ehci_port_handed_over,
 +
 +      /* modified ehci functions for tegra */
 +      .reset                  = tegra_ehci_setup,
 +      .shutdown               = tegra_ehci_shutdown,
 +      .map_urb_for_dma        = tegra_ehci_map_urb_for_dma,
 +      .unmap_urb_for_dma      = tegra_ehci_unmap_urb_for_dma,
 +      .hub_control            = tegra_ehci_hub_control,
  #ifdef CONFIG_PM
-       .bus_suspend            = tegra_ehci_bus_suspend,
-       .bus_resume             = tegra_ehci_bus_resume,
+       .bus_suspend            = ehci_bus_suspend,
+       .bus_resume             = ehci_bus_resume,
  #endif
 -      .relinquish_port        = ehci_relinquish_port,
 -      .port_handed_over       = ehci_port_handed_over,
  };
  
  static int setup_vbus_gpio(struct platform_device *pdev)
Simple merge
This page took 0.031479 seconds and 5 git commands to generate.