Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751072AbcCHRuN (ORCPT ); Tue, 8 Mar 2016 12:50:13 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:60766 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750802AbcCHRuJ convert rfc822-to-8bit (ORCPT ); Tue, 8 Mar 2016 12:50:09 -0500 Date: Tue, 8 Mar 2016 18:49:42 +0100 (CET) From: Stefan Wahren To: Doug Anderson Cc: Michael Niewoehner , Tao Huang , Julius Werner , Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" , John Youn , Caesar Wang , Heiko Stuebner , Felipe Balbi , Remi Pommarel Message-ID: <182237142.193429.cf300112-41a4-442b-b633-6f046c8e18cb.open-xchange@email.1und1.de> In-Reply-To: References: <1457115786-11370-1-git-send-email-dianders@chromium.org> <1457115786-11370-2-git-send-email-dianders@chromium.org> <1400647253.149212.b3bb45b6-c852-4cf1-9d3e-9fb299176369.open-xchange@email.1und1.de> Subject: Re: [RFT PATCH 2/2] Revert "usb: dwc2: Fix probe problem on bcm2835" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.0-Rev22 X-Originating-Client: com.openexchange.ox.gui.dhtml X-Provags-ID: V03:K0:cM+8OEiv7oITM3yogijWSVHm2iUyMCWXvbMnffVbVZyKXQRXDbY YZLw/Ib9ELL0uLtjEYLzgRXc3Rm6PzcsXMJ3w93CiOy4zpmQU6w7CcS8X8/0yw5UxFIrWFN jP6rbs8AGqyBbra8hV7N2SjRhrDLcSpANIDUUzatum3NkqJFrd0mlb/uOJEA6Q7BytzP3wq fuH5lNXP4yFWS0VzBtrjw== X-UI-Out-Filterresults: notjunk:1;V01:K0:E2kHivPG/a0=:PKm9EmZYWe/1DsXim0qiB+ G3sYSH/ePy6KC7xC6xSi+VYbwQ4GO8rRXX5dF0qJy/tJ2ngX1q9EVu4jy+42nRJFOofPjoE6M kj/Y0v+qrFKEoPd1nSaiy+YE0UvL6S58DaDfGbDtVvMrVaKCj9z8BE+d5n+skItf5THSVQr7H 6/8OWI7t+v7DWYdnWV637IqFS5R9GS1m2QN6QRSSPXR69Hyb8EtxS+bl5dUihf6U+tMmJuqok egVolo1JyDmaw5srUuUTLygZ/re2EP/1z+cr8sYII1M2UM69a+BMf3AkTL+lo0VizVIJjjXWP 8xNmi9NEIjyvn14wEOYMegtUIPZ0pjIF/n6Uh2mevNS421XvlyfiQMfiDyIBf/S3AI6PhJBWd jhBiaP6Mw9n0nW/CmXEEmEDrym3dy7jqh0pyvkWxiMyL7zgPyes9kxpXwtzKAdXHiIOpnYZlf HixMyF/9eAt1cbs0OZqK14kqxDH5MoBpPbCku54HRfvBnbUlBSRw9meNgIXygG4QMjrJj9guS iaCDYovdILwO+YbAOafnD7y96/SjOHdQZI1CJQ+p44VPxoo7wSdS9EHM2e4H8m8HCIqLDSV17 IGZ7/44fzWUb9GXjsgkP6I6g8n8WeyIgXwPssPo4G27U28334goh7BE8OUcxgJ9f2fdE8/UAm n7gJpE1w8PeQGrL+LS9nbWpQ17RF8ZWF1Mpk8syXciYk3qT154KPxPHm/YJr6Q3hsyhWfIxyP 6ehX5qAJXi1U8+Gs Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1388 Lines: 48 Hi Doug, > Doug Anderson hat am 7. März 2016 um 22:30 > geschrieben: > > > Stefan, > > On Mon, Mar 7, 2016 at 10:40 AM, Stefan Wahren wrote: > > Hi Doug, > > > >> Douglas Anderson hat am 4. März 2016 um 19:23 > >> geschrieben: > >> > >> > >> This reverts commit 192cb07f7928 ("usb: dwc2: Fix probe problem on > >> bcm2835") now that we've found the root cause. See the change > >> titled ("usb: dwc2: Add a 10 ms delay to dwc2_core_reset()"). > > > > adding a delay of 10 ms after a core reset might be a idea, but applying > > both > > patches breaks USB support on RPi :-( > > > > I'm getting the wrong register values ... > > Ugh. :( > > Just out of curiosity, if you loop and time long it takes for the > registers to get to the right state after reset, what do you get? > AKA, pick: > > https://chromium-review.googlesource.com/331260 > > ...and let me know what it prints out. On my system I see: > > [ 1.990743] dwc2 ff540000.usb: Waited 300001 us, 0x04000400 => > 0x04000400, 0x02000800 => 0x02000800 > [ 2.119677] dwc2 ff580000.usb: Waited 9997 us, 0x00100400 => > 0x04000400, 0x00000000 => 0x02000800 sure, but this will take some time (weekend). > > I believe the difference in behavior is because of the two different > types of USB controllers (one is OTG and the other is host only). > > > -Doug