aboutsummaryrefslogtreecommitdiffstats
path: root/usb.current/usb-otg-twl4030-fix-wrong-assumption-of-starting-state.patch
diff options
Diffstat (limited to 'usb.current/usb-otg-twl4030-fix-wrong-assumption-of-starting-state.patch')
-rw-r--r--usb.current/usb-otg-twl4030-fix-wrong-assumption-of-starting-state.patch52
1 files changed, 0 insertions, 52 deletions
diff --git a/usb.current/usb-otg-twl4030-fix-wrong-assumption-of-starting-state.patch b/usb.current/usb-otg-twl4030-fix-wrong-assumption-of-starting-state.patch
deleted file mode 100644
index 34471a1b82dbd8..00000000000000
--- a/usb.current/usb-otg-twl4030-fix-wrong-assumption-of-starting-state.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-From linux-usb-owner@vger.kernel.org Thu Aug 19 10:36:21 2010
-From: Felipe Balbi <felipe.balbi@nokia.com>
-To: Greg KH <greg@kroah.com>
-Cc: Tony Lindgren <tony@atomide.com>,
- David Brownell <david-b@pacbell.net>,
- Felipe Balbi <felipe.balbi@nokia.com>
-Subject: USB: otg: twl4030: fix wrong assumption of starting state
-Date: Wed, 11 Aug 2010 13:02:32 +0300
-Message-Id: <1281520952-27981-1-git-send-email-felipe.balbi@nokia.com>
-
-From: Felipe Balbi <felipe.balbi@nokia.com>
-
-The reset state of twl4030-usb is not sleeping, it starts
-up awaken and we need to disable it if we have booted
-with a disconnected cable to avoid over consumption on
-the default state.
-
-To avoid problems later, we read the current state of the
-transceiver from the PHY_PWR_CTRL register. The bootloader
-can, anyways, put the device to sleep before us.
-
-Tested on a custom OMAP board.
-
-Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-
----
- drivers/usb/otg/twl4030-usb.c | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
---- a/drivers/usb/otg/twl4030-usb.c
-+++ b/drivers/usb/otg/twl4030-usb.c
-@@ -550,6 +550,7 @@ static int __devinit twl4030_usb_probe(s
- struct twl4030_usb_data *pdata = pdev->dev.platform_data;
- struct twl4030_usb *twl;
- int status, err;
-+ u8 pwr;
-
- if (!pdata) {
- dev_dbg(&pdev->dev, "platform_data not available\n");
-@@ -568,7 +569,10 @@ static int __devinit twl4030_usb_probe(s
- twl->otg.set_peripheral = twl4030_set_peripheral;
- twl->otg.set_suspend = twl4030_set_suspend;
- twl->usb_mode = pdata->usb_mode;
-- twl->asleep = 1;
-+
-+ pwr = twl4030_usb_read(twl, PHY_PWR_CTRL);
-+
-+ twl->asleep = (pwr & PHY_PWR_PHYPWD);
-
- /* init spinlock for workqueue */
- spin_lock_init(&twl->lock);