From patchwork Tue Mar 1 15:15:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 599441 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 p21FGLl4021485 for ; Tue, 1 Mar 2011 15:16:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756602Ab1CAPQT (ORCPT ); Tue, 1 Mar 2011 10:16:19 -0500 Received: from na3sys009aog113.obsmtp.com ([74.125.149.209]:59586 "EHLO na3sys009aog113.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755100Ab1CAPQS (ORCPT ); Tue, 1 Mar 2011 10:16:18 -0500 Received: from source ([209.85.214.49]) (using TLSv1) by na3sys009aob113.postini.com ([74.125.148.12]) with SMTP ID DSNKTW0NwL0D5BBDZWPB7tAF0airPA/3pSXi@postini.com; Tue, 01 Mar 2011 07:16:18 PST Received: by bwz1 with SMTP id 1so5126090bwz.8 for ; Tue, 01 Mar 2011 07:16:15 -0800 (PST) Received: by 10.204.51.11 with SMTP id b11mr6245887bkg.129.1298992575341; Tue, 01 Mar 2011 07:16:15 -0800 (PST) Received: from localhost (cs181221087.pp.htv.fi [82.181.221.87]) by mx.google.com with ESMTPS id q18sm3412741bka.15.2011.03.01.07.16.14 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 01 Mar 2011 07:16:14 -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 04/19] usb: otg: TWL4030: Update the last_event variable. Date: Tue, 1 Mar 2011 17:15:25 +0200 Message-Id: <1298992540-5984-5-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:21 +0000 (UTC) diff --git a/drivers/usb/otg/twl4030-usb.c b/drivers/usb/otg/twl4030-usb.c index 2362d83..e01b073 100644 --- a/drivers/usb/otg/twl4030-usb.c +++ b/drivers/usb/otg/twl4030-usb.c @@ -275,6 +275,8 @@ static enum usb_xceiv_events twl4030_usb_linkstat(struct twl4030_usb *twl) dev_dbg(twl->dev, "HW_CONDITIONS 0x%02x/%d; link %d\n", status, status, linkstat); + twl->otg.last_event = linkstat; + /* REVISIT this assumes host and peripheral controllers * are registered, and that both are active... */