From: Ian Campbell Date: Sun, 14 Jun 2015 12:46:44 +0100 Subject: [U-Boot] [PATCH 1/2] sunxi: musb: Do not fully reset the controler from sunxi_musb_disable In-Reply-To: <1434278413-21157-2-git-send-email-hdegoede@redhat.com> References: <1434278413-21157-1-git-send-email-hdegoede@redhat.com> <1434278413-21157-2-git-send-email-hdegoede@redhat.com> Message-ID: <1434282404.29215.8.camel@hellion.org.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, 2015-06-14 at 12:40 +0200, Hans de Goede wrote: > Fully resetting the controller is a too big hammer, and the musb_core will > then afterwards fail to communicate with any endpoints other then 0 as > too much state was cleared. > > Instead report vbus low for 200ms which will effectively end the current > session without needing to do a full reset. > > This fixes usb mass-storage devices no longer working after a "usb reset" > > Signed-off-by: Hans de Goede Acked-by: Ian Campbell One question (which turned into two) (both more for the musb maint than you): > +/* musb_core does not call enable / disable in a balanced manner */ > +static bool enabled = false; Is this sufficient, or should we be reference counting? Or should the core be fixed? Ian.