From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH v2 0/2] USB: musb: PM fixes Date: Thu, 5 Oct 2017 08:11:55 -0700 Message-ID: <20171005151154.GD3962@atomide.com> References: <20170907133748.7400-1-johan@kernel.org> <20171005091436.GA2618@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20171005091436.GA2618@localhost> Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Johan Hovold Cc: Bin Liu , Greg Kroah-Hartman , linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Sebastian Andrzej Siewior , Felipe Balbi , linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-omap@vger.kernel.org * Johan Hovold [171005 02:15]: > On Thu, Sep 07, 2017 at 03:37:46PM +0200, Johan Hovold wrote: > > These patches fix a couple of bugs introduced by the recent runtime-PM > > work (details in the individual commit messages). > > > > Note that the external abort was due to the irq work never being flushed > > on suspend, and that we may need similar fixes for the delayed reset and > > resume work which are likewise never cancelled on suspend. > > > > As I just mentioned in the v1 thread, there are a number of further issues with > > musb suspend (e.g. on BBB): > > > > 1. System suspend appears to break any active gadget (which then can be > > restarted manually). > > > > 2. The early_tx polling in musb_cppi41 lacks a timeout, something which can > > lead to the hrtimer rescheduling itself indefinitely if the fifo never > > empties (e.g. if a transfer is is initiated post suspend due to issue 1). > > > > See commit a655f481d83d ("usb: musb: musb_cppi41: handle pre-mature TX > > complete interrupt"). > > > > 3. In host mode, if a device is disconnected while the system is suspended, > > this will keep the controller runtime active after resume as the session > > bit is always set. > > Bin and Tony, any comments to this series? Oops sorry I forgot to test these after two recent conferences. I just gave these a try and they both behave for me. Nice fixes, for both: Tested-by: Tony Lindgren -- 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