From patchwork Tue Nov 3 06:35:39 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar Gupta X-Patchwork-Id: 57227 X-Patchwork-Delegate: me@felipebalbi.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA36a2BJ011092 for ; Tue, 3 Nov 2009 06:36:02 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752915AbZKCGfs (ORCPT ); Tue, 3 Nov 2009 01:35:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751521AbZKCGfs (ORCPT ); Tue, 3 Nov 2009 01:35:48 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:53987 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751426AbZKCGfr (ORCPT ); Tue, 3 Nov 2009 01:35:47 -0500 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id nA36ZiP7015298 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 3 Nov 2009 00:35:47 -0600 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 nA36Zf0Z024967; Tue, 3 Nov 2009 12:05:42 +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 nA36Zfgs012991; Tue, 3 Nov 2009 12:05:41 +0530 Received: (from a0393629@localhost) by psplinux050.india.ti.com (8.13.1/8.13.1/Submit) id nA36ZeZG012988; Tue, 3 Nov 2009 12:05:40 +0530 From: Ajay Kumar Gupta To: linux-usb@vger.kernel.org Cc: linux-omap@vger.kernel.org, felipe.balbi@nokia.com, david-b@pacbell.net, Ajay Kumar Gupta Subject: [PATCH 1/2] musb: Inform user when gadget cable is disconnected Date: Tue, 3 Nov 2009 12:05:39 +0530 Message-Id: <1257230140-12958-1-git-send-email-ajay.gupta@ti.com> X-Mailer: git-send-email 1.6.2.4 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 3a61ddb..ec67ec7 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -795,6 +795,10 @@ static irqreturn_t musb_stage2_irq(struct musb *musb, u8 int_usb, #ifdef CONFIG_USB_GADGET_MUSB_HDRC case OTG_STATE_B_PERIPHERAL: case OTG_STATE_B_IDLE: + printk(KERN_INFO "musb %s gadget disconnected.\n", + musb->gadget_driver + ? musb->gadget_driver->driver.name + : ""); musb_g_disconnect(musb); break; #endif /* GADGET */