From patchwork Tue Mar 1 15:15:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 599491 X-Patchwork-Delegate: me@felipebalbi.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p21FGja1021748 for ; Tue, 1 Mar 2011 15:16:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756640Ab1CAPQk (ORCPT ); Tue, 1 Mar 2011 10:16:40 -0500 Received: from na3sys009aog102.obsmtp.com ([74.125.149.69]:40223 "EHLO na3sys009aog102.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756612Ab1CAPQh (ORCPT ); Tue, 1 Mar 2011 10:16:37 -0500 Received: from source ([209.85.214.42]) (using TLSv1) by na3sys009aob102.postini.com ([74.125.148.12]) with SMTP ID DSNKTW0Ny4R+adqe9hAxBImHPxZ0z3Y1p2iP@postini.com; Tue, 01 Mar 2011 07:16:37 PST Received: by mail-bw0-f42.google.com with SMTP id 13so7377981bwz.15 for ; Tue, 01 Mar 2011 07:16:23 -0800 (PST) Received: by 10.204.123.144 with SMTP id p16mr6230386bkr.25.1298992582945; Tue, 01 Mar 2011 07:16:22 -0800 (PST) Received: from localhost (cs181221087.pp.htv.fi [82.181.221.87]) by mx.google.com with ESMTPS id w3sm3417194bkt.5.2011.03.01.07.16.21 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 01 Mar 2011 07:16:22 -0800 (PST) From: Felipe Balbi To: Greg KH Cc: Linux USB Mailing List , Linux OMAP Mailing List , Anand Gadiyar , Hema HK , Felipe Balbi Subject: [patch-v2.6.39 07/19] usb: musb: OMAP3xxx: Fix device detection in otg & host mode Date: Tue, 1 Mar 2011 17:15:28 +0200 Message-Id: <1298992540-5984-8-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.4.rc2 In-Reply-To: <1298992540-5984-1-git-send-email-balbi@ti.com> References: <1298992540-5984-1-git-send-email-balbi@ti.com> Organization: Texas Instruments\n Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 01 Mar 2011 15:16:45 +0000 (UTC) diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index 4726798..f5d4f36 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c @@ -246,19 +246,13 @@ static int musb_otg_notifications(struct notifier_block *nb, if (musb->gadget_driver) { pm_runtime_get_sync(musb->controller); otg_init(musb->xceiv); - - if (data->interface_type == - MUSB_INTERFACE_UTMI) - omap2430_musb_set_vbus(musb, 1); - + omap2430_musb_set_vbus(musb, 1); } #endif } else { pm_runtime_get_sync(musb->controller); otg_init(musb->xceiv); - if (data->interface_type == - MUSB_INTERFACE_UTMI) - omap2430_musb_set_vbus(musb, 1); + omap2430_musb_set_vbus(musb, 1); } break;