From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH 0/4] musb fixes for v4.9-rc cycle Date: Tue, 8 Nov 2016 07:49:34 -0700 Message-ID: <20161108144934.GK2428@atomide.com> References: <20161107215020.31399-1-tony@atomide.com> <20161108133821.GA1855@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20161108133821.GA1855-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Ladislav Michl Cc: Bin Liu , Boris Brezillon , Greg Kroah-Hartman , Andreas Kemnade , Felipe Balbi , George Cherian , Kishon Vijay Abraham I , Ivaylo Dimitrov , Johan Hovold , Laurent Pinchart , Sergei Shtylyov , linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-omap@vger.kernel.org * Ladislav Michl [161108 06:39]: > Hi Tony, > > On Mon, Nov 07, 2016 at 02:50:16PM -0700, Tony Lindgren wrote: > > Hi all, > > > > Here are musb fixes for the issues that I've been able to track down. > > Not sure if these will help with the problem Ladis was seeing as I'm > > not able to reproduce that one it seems. > > I still need 87326e858448c40e32f142c0b8dcc59d7b27c641 (usb: musb: Remove > extra PM runtime calls from 2430 glue layer) reverted, but I'm happy with > that solution so far. Weird, I have not figured out what happens there.. The only thing I'm still wondering about is if phy-twl4030-usb.c is losing ID pin interrupts occasionally but have not been able to verify that. Maybe try the following additional patch and see if it makes any difference? Regards, Tony 8< -------------- --- a/drivers/phy/phy-twl4030-usb.c +++ b/drivers/phy/phy-twl4030-usb.c @@ -304,6 +304,17 @@ static enum musb_vbus_id_status status &= ~BIT(7); else twl->vbus_supplied = true; + + /* Recheck status again for ID pin */ + if (!(status & BIT(2))) { + msleep(200); + status = twl4030_readb(twl, + TWL_MODULE_PM_MASTER, + STS_HW_CONDITIONS); + if (status < 0) + dev_err(twl->dev, "USB link status err %d\n", + status); + } } if (status & BIT(2)) -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html