From: Krzysztof Kozlowski <k.kozlowski@samsung.com>
To: Marek Szyprowski <m.szyprowski@samsung.com>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-samsung-soc@vger.kernel.org
Cc: Robert Baldyga <r.baldyga@samsung.com>,
John Youn <johnyoun@synopsys.com>, Kukjin Kim <kgene@kernel.org>,
Kamil Debski <k.debski@samsung.com>,
Mark Brown <broonie@kernel.org>,
Kishon Vijay Abraham I <kishon@ti.com>
Subject: Re: [PATCH 0/7] Exynos4412-based Trats2 USB gadget (DWC2) fixes
Date: Mon, 24 Aug 2015 16:16:59 +0900 [thread overview]
Message-ID: <55DAC4EB.9030304@samsung.com> (raw)
In-Reply-To: <1440160723-6636-1-git-send-email-m.szyprowski@samsung.com>
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 <k.kozlowski@samsung.com>
Best regards,
Krzysztof
prev parent reply other threads:[~2015-08-24 7:17 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-21 12:38 [PATCH 0/7] Exynos4412-based Trats2 USB gadget (DWC2) fixes Marek Szyprowski
2015-08-21 12:38 ` [PATCH 1/7] phy: exynos-usb2: add vbus regulator support Marek Szyprowski
2015-08-21 12:44 ` Kishon Vijay Abraham I
2015-08-21 12:44 ` Kishon Vijay Abraham I
2015-08-25 5:47 ` Marek Szyprowski
2015-08-25 6:12 ` Krzysztof Kozlowski
2015-08-27 9:54 ` Kishon Vijay Abraham I
2015-08-27 9:54 ` Kishon Vijay Abraham I
2015-09-30 6:00 ` Marek Szyprowski
2015-08-21 12:38 ` [PATCH 2/7] arm: dts: exynos: add vbus regulator to USB2 phy nodes Marek Szyprowski
2015-08-23 3:59 ` Krzysztof Kozlowski
2015-08-21 12:38 ` [PATCH 3/7] regulators: max77693: register driver earlier to avoid deferred probe Marek Szyprowski
2015-08-23 3:50 ` Krzysztof Kozlowski
2015-08-21 12:38 ` [PATCH 4/7] usb: dwc2: remove double call to s3c_hsotg_of_probe Marek Szyprowski
2015-08-21 12:38 ` [PATCH 5/7] usb: dwc2: remove non-functional clock gating Marek Szyprowski
2015-08-21 12:38 ` [PATCH 6/7] usb: dwc2: fix unbalanced phy control Marek Szyprowski
2015-08-21 12:38 ` [PATCH 7/7] usb: dwc2: refactor common low-level hw code to platform.c Marek Szyprowski
2015-09-03 1:12 ` John Youn
2015-09-16 12:34 ` [PATCH v2 " Marek Szyprowski
2015-08-24 7:16 ` Krzysztof Kozlowski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55DAC4EB.9030304@samsung.com \
--to=k.kozlowski@samsung.com \
--cc=broonie@kernel.org \
--cc=johnyoun@synopsys.com \
--cc=k.debski@samsung.com \
--cc=kgene@kernel.org \
--cc=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=r.baldyga@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.