Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753994AbbHXHRM (ORCPT ); Mon, 24 Aug 2015 03:17:12 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:20678 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751906AbbHXHRJ (ORCPT ); Mon, 24 Aug 2015 03:17:09 -0400 X-AuditID: cbfec7f5-f794b6d000001495-8f-55dac4f349b5 Message-id: <55DAC4EB.9030304@samsung.com> Date: Mon, 24 Aug 2015 16:16:59 +0900 From: Krzysztof Kozlowski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-version: 1.0 To: Marek Szyprowski , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Robert Baldyga , John Youn , Kukjin Kim , Kamil Debski , Mark Brown , Kishon Vijay Abraham I Subject: Re: [PATCH 0/7] Exynos4412-based Trats2 USB gadget (DWC2) fixes References: <1440160723-6636-1-git-send-email-m.szyprowski@samsung.com> In-reply-to: <1440160723-6636-1-git-send-email-m.szyprowski@samsung.com> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrLLMWRmVeSWpSXmKPExsVy+t/xa7qfj9wKNTh5ktli6sMnbBa7T19i tPjx+gKbxesXhhb9j18zW1x42sNmcXnXHDaLGef3MVksWtbKbLH2yF12iweHd7I7cHtsWtXJ 5tG3ZRWjx5b9nxk9jt/YzuTxeZNcAGsUl01Kak5mWWqRvl0CV8bOKxIFS4Qrtiy7ztbA+JC/ i5GTQ0LAROLth03MELaYxIV769m6GLk4hASWMkrs7DgD5XxhlDi4p5kJpIpXQEti9pctYB0s AqoSnzauZwex2QSMJTYvX8IGYosKREgsX32SEaJeUOLH5HssIINEBHoZJS58PAo2iFngHqPE tu9pILawgIfErC3HwAYJCbhLbH55GqyZEyi+5+I8IJsDqF5P4v5FLYhWeYnNa94yT2AUmIVk xSyEqllIqhYwMq9iFE0tTS4oTkrPNdIrTswtLs1L10vOz93ECImErzsYlx6zOsQowMGoxMO7 wuxWqBBrYllxZe4hRgkOZiURXqWXN0OFeFMSK6tSi/Lji0pzUosPMUpzsCiJ887c9T5ESCA9 sSQ1OzW1ILUIJsvEwSnVwNhYvHBr2APWY5/1mn7W/571O67GM3vm/I9Hbk3ebFL7zvK43NZ/ AomlySbHJttea393w6fDops3wXtKsOg0k+zso+dDLjW6a7ru/+7RuZJPPGZJtGeRzO4Z0Wee V4duMlnNw6riw9V67vrswo2lXsorjafI5Bc1qc8uDf1k2aX3439iDOu2UiWW4oxEQy3mouJE ABqdNwaAAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2664 Lines: 54 On 21.08.2015 21:38, Marek Szyprowski wrote: > Dear All, > > Since v3.19 s3c-hsotg (DWC2) USB controller stopped working on > Exynos4412-based Trats2 platform. However on Odroid-U3 (which is also > Exynos4412-based) it worked fine all the time. After long investigation > it turned out that this was caused by 2 independent issues. > > First issue was caused by patch 7eec1266751bd3a25e35ce88686634c768fedc24 > ("ARM: dts: Add Maxim 77693 PMIC to exynos4412-trats2") added support > for Maxim 77693 regulators, but without defining consumers for them. > This causes regulator core to disable them. However SAFEOUT1 regulator > provides power supply to VBUS signal, which also power some USB phy > related parts of Exynos SoC core. This has been fixed by patches 1-3, > which adds support for VBUS regulator, defines them in DTS for all > Exynos platforms and changes probe sequence of the drivers to ensure no > deferred probe occurs (USB gadget subsystem doesn't support deferred > probe yet). > > Second issue is related to DWC2 driver rewrite and host/gadget/dual-role > integration code. DWC2 module on some platforms needs three additional > hardware resources: phy, clock and power supply. All of them must be > enabled/activated to properly initialize and operate. This was initially > handled in s3c-hsotg driver, which has been converted to 'gadget' part > of dwc2 driver. Unfortunately, not all of this code got moved to common > platform code, what resulted in accessing DWC2 registers without > enabling power supply regulators and clock. This caused initialization > failure on Exynos4412-based Trats2. Odroid U3 board worked fine, because > power supplies used by DWC2 module are marked there as 'always-on', > because they are also used by other modules (USB hub) and clock was > shared with USB2 PHY, so it was already enabled. This initialization > issue has been fixed by the last patch. While preparing it I've also > fixed a few minor issues found in nearby code (patches 4-6). > > I would like to get those patches merged separately to respective > subsystem trees: > patch 1: phy subsystem tree > patch 2: Samsung Exynos tree > patch 3: regulator subsystem tree > patch 4-7: USB gadget subsystem tree > > Patches have been prepared on top of linux-next from 20150821. Entire patchset tested on Trats2 board: Tested-by: Krzysztof Kozlowski Best regards, Krzysztof -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/