From patchwork Thu May 27 07:04:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar Gupta X-Patchwork-Id: 102572 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4R75Eej012801 for ; Thu, 27 May 2010 07:05:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756742Ab0E0HFG (ORCPT ); Thu, 27 May 2010 03:05:06 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:38286 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751136Ab0E0HFD (ORCPT ); Thu, 27 May 2010 03:05:03 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o4R74suE004772 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 27 May 2010 02:04:57 -0500 Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o4R74oxJ024769; Thu, 27 May 2010 12:34:51 +0530 (IST) Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by psplinux050.india.ti.com (8.13.1/8.13.1) with ESMTP id o4R74o5o017666; Thu, 27 May 2010 12:34:50 +0530 Received: (from a0393629@localhost) by psplinux050.india.ti.com (8.13.1/8.13.1/Submit) id o4R74oIc017663; Thu, 27 May 2010 12:34:50 +0530 From: Ajay Kumar Gupta To: linux-usb@vger.kernel.org Cc: linux-omap@vger.kernel.org, felipe.balbi@nokia.com, amit.kucheria@verdurent.com, khilman@deeprootsystems.com, Ajay Kumar Gupta Subject: [PATCH 3/3] musb: use neednop flag for nop registration Date: Thu, 27 May 2010 12:34:48 +0530 Message-Id: <1274943888-17615-3-git-send-email-ajay.gupta@ti.com> X-Mailer: git-send-email 1.6.2.4 In-Reply-To: <1274943888-17615-2-git-send-email-ajay.gupta@ti.com> References: <1274943888-17615-1-git-send-email-ajay.gupta@ti.com> <1274943888-17615-2-git-send-email-ajay.gupta@ti.com> 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.3 (demeter.kernel.org [140.211.167.41]); Thu, 27 May 2010 07:05:14 +0000 (UTC) diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index 50591e7..2ec1bc4 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c @@ -198,6 +198,9 @@ int __init musb_platform_init(struct musb *musb) omap_cfg_reg(AE5_2430_USB0HS_STP); #endif + if (data->neednop) + usb_nop_xceiv_register(); + /* We require some kind of external transceiver, hooked * up through ULPI. TWL4030-family PMICs include one, * which needs a driver, drivers aren't always needed. @@ -323,8 +326,12 @@ static int musb_platform_resume(struct musb *musb) int musb_platform_exit(struct musb *musb) { + struct omap_musb_board_data *data = musb->board_data; musb_platform_suspend(musb); + if (data->neednop) + usb_nop_xceiv_unregister(); + return 0; }