From 9263079f70a859c5f5cfe2525102a591b41f9b2a Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Fri, 28 Jun 2013 14:25:11 +0200 Subject: [PATCH] USB 3.0 & exynos5: don't close regulator session When leaving constructor of EHCI & XHCI driver don't close the regulator session, otherwise it'll power down the device. --- dde_linux/src/lib/usb/arm/platform_arndale/platform.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dde_linux/src/lib/usb/arm/platform_arndale/platform.cc b/dde_linux/src/lib/usb/arm/platform_arndale/platform.cc index b55ac93d2..4d9347bf4 100644 --- a/dde_linux/src/lib/usb/arm/platform_arndale/platform.cc +++ b/dde_linux/src/lib/usb/arm/platform_arndale/platform.cc @@ -126,10 +126,10 @@ static void arndale_ehci_init() enum Gpio_offset { D1 = 0x180, X3 = 0xc60 }; /* enable USB3 clock and power up */ - Regulator::Connection reg_clk(Regulator::CLK_USB20); + static Regulator::Connection reg_clk(Regulator::CLK_USB20); reg_clk.state(true); - Regulator::Connection reg_pwr(Regulator::PWR_USB20); + static Regulator::Connection reg_pwr(Regulator::PWR_USB20); reg_pwr.state(true); /* reset hub via GPIO */ @@ -272,10 +272,10 @@ struct Phy_usb3 : Genode::Mmio static void arndale_xhci_init() { /* enable USB3 clock and power up */ - Regulator::Connection reg_clk(Regulator::CLK_USB30); + static Regulator::Connection reg_clk(Regulator::CLK_USB30); reg_clk.state(true); - Regulator::Connection reg_pwr(Regulator::PWR_USB30); + static Regulator::Connection reg_pwr(Regulator::PWR_USB30); reg_pwr.state(true); /* setup PHY */