From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans de Goede Date: Wed, 17 Jun 2015 15:39:57 +0200 Subject: [U-Boot] [PATCH 0/2] sunxi: musb: Fix "usb reset" handling In-Reply-To: <1434396106.2324.53.camel@collins> References: <1434278413-21157-1-git-send-email-hdegoede@redhat.com> <1434396106.2324.53.camel@collins> Message-ID: <558178AD.8070408@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On 15-06-15 21:21, Paul Kocialkowski wrote: > Le dimanche 14 juin 2015 ? 12:40 +0200, Hans de Goede a ?crit : >> Hi Ian, Paul, >> >> Here is a patch to fix the problems where most usb devices will no longer >> work after a "usb reset ", when connected to the otg controller in host >> mode + a related cleanup patch. > > This works fine for an USB storage device and an USB2 keyboard but does > not work with an USB1 keyboard, with error: > > sunxi# usb reset > resetting USB... > USB0: scanning bus 0 for devices... USB device descriptor short read > (expected 8, got 0) > No USB Device found Hmm, did you test my sunxi-wip branch perhaps? This bug does exist there, but it is the result of me refactoring things so that the musb code can use the device-model when build in host mode, which will allow enabling both the otg port in host mode and regular usb hosts in a single build, which is esp. useful for boards which have the otg hooked up in host-only mode (e.g. connected to an usb-a receptacle, or usb <-> sata bridge). I've just retested current u-boot/master with just this patch and the problem you are describing does not happen then. Sorry about my sunxi-wip being broken atm I try to always keep it 100% functional, but well it is a wip tree after all. Regards, Hans