]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/usb/gadget/s3c-hsotg.c
USB: s3c: Enable soft disconnect during initialization
[mirror_ubuntu-artful-kernel.git] / drivers / usb / gadget / s3c-hsotg.c
index 1f73b485732d1b74028064e37193ce6f56021718..a6d725dd73353308f68870af5c9d849460a2407c 100644 (file)
@@ -2730,6 +2730,9 @@ static void s3c_hsotg_init(struct s3c_hsotg *hsotg)
 
        writel(0, hsotg->regs + S3C_DAINTMSK);
 
+       /* Be in disconnected state until gadget is registered */
+       __orr32(hsotg->regs + S3C_DCTL, S3C_DCTL_SftDiscon);
+
        if (0) {
                /* post global nak until we're ready */
                writel(S3C_DCTL_SGNPInNAK | S3C_DCTL_SGOUTNak,