From: Kamil Debski Subject: RE: [PATCH] phy: phy-samsung-usb2: Change phy power on/power off sequence Date: Tue, 24 Jun 2014 17:35:20 +0200 Message-ID: <074a01cf8fc1$e906f0c0$bb14d240$%debski@samsung.com> References: <1403614495-9291-1-git-send-email-k.debski@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mailout3.w1.samsung.com ([210.118.77.13]:33376 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753032AbaFXPfY (ORCPT ); Tue, 24 Jun 2014 11:35:24 -0400 In-reply-to: Content-language: pl Sender: linux-samsung-soc-owner@vger.kernel.org List-Id: linux-samsung-soc@vger.kernel.org To: 'Daniel Drake' Cc: linux-kernel@vger.kernel.org, 'linux-samsung-soc' , linux-usb@vger.kernel.org, kishon@ti.com, Tomasz Figa , Marek Szyprowski , gautam.vivek@samsung.com Hi Daniel, > From: Daniel Drake [mailto:drake@endlessm.com] > Sent: Tuesday, June 24, 2014 5:09 PM > > On Tue, Jun 24, 2014 at 1:54 PM, Kamil Debski > wrote: > > The Exynos4412 USB 2.0 PHY hardware differs from the description > > provided in the documentation. Some register bits have different > > function. This patch fixes the defines of register bits and changes > > the way how phys are powered on and off. > > I guess this replaces the patch titled "drivers: phy: exynos4x12-phy: > fix HSIC1 power on/off sequence" Yes, indeed it replaces this patch. I did some more research on how the hardware actually behaves. > > Tested on ODROID-U2. Seems to be working as well as the previous patch: Thank you very much for testing. > - Internal SMSC hub works on boot and after reboot, tested with USB > mouse > - Internal SMSC ethernet device works on boot, but disappears upon > reboot. (same as previous patch, also reproduced by Marek) By reboot I guess that you mean typing "reboot" or by using SysRq magic and not power cycling? If so, I had experienced the same symptoms. I guess that the Ethernet chip is not reset properly and fails to enumerate without power cycling (it's nRESET pin is connected to P3V3). I found that removing regulator-always-on from buck8_reg: BUCK8 in the dts file fixes this problem. Best wishes, -- Kamil Debski Samsung R&D Institute Poland