From: Marek Szyprowski Date: Mon, 19 Jul 2010 14:01:41 +0000 (+0200) Subject: USB: s3c-hsotg: modify only selected bits in S3C_PHYPWR register X-Git-Tag: 2.1b_release~7315^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1eb838d3e2a473acbb9b21278e75b79640fb2c7b;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git USB: s3c-hsotg: modify only selected bits in S3C_PHYPWR register S5PV210 SoCs has 2 USB PHY interfaces, both enabled by writing zero to S3C_PHYPWR register. HS/OTG driver uses only PHY0, so do not touch bits related to PHY1. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index ce272b4..258ca01 100644 --- a/drivers/usb/gadget/s3c-hsotg.c +++ b/drivers/usb/gadget/s3c-hsotg.c @@ -2801,9 +2801,11 @@ static void __devinit s3c_hsotg_initep(struct s3c_hsotg *hsotg, static void s3c_hsotg_otgreset(struct s3c_hsotg *hsotg) { struct clk *xusbxti; - u32 osc; + u32 pwr, osc; - writel(0, S3C_PHYPWR); + pwr = readl(S3C_PHYPWR); + pwr &= ~0x19; + writel(pwr, S3C_PHYPWR); mdelay(1); osc = hsotg->plat->is_osc ? S3C_PHYCLK_EXT_OSC : 0;