Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1656601
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Stephen Boyd <sboyd@codeaurora.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [RFC] usb-phy-generic: Add support to SMSC USB3315 |
| Date | Sat, 03 Jun 2017 00:10:01 +0200 |
| Message-ID | <tO2Vz-6WH-9@gated-at.bofh.it> (permalink) |
| References | <txR85-8fV-5@gated-at.bofh.it> <tKmzv-6Qv-3@gated-at.bofh.it> <tKmzv-6Qv-1@gated-at.bofh.it> <tKpe1-rD-13@gated-at.bofh.it> <tKYlr-70D-17@gated-at.bofh.it> <tLjpU-3Yf-3@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1496440811; bh=BIuQjVpRDkcGI8QxdW0R7CE8tDXxDsPsxefcoHC4raw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GkHrs4sMjV83XJHdP2Sqqu0PVc9cuZfkhd3sJZvfuS0EovOhyqCvpjEQG6VuUs7Bl mjsIObS9gbTKfRHhPx7t/ygVDMjU3U/2Ljrf8IOA7ZfDEIJT6KE2Sr19HxwPu4bgaZ PJwx8VAMqny8kMpmVJXPIxbwjmfXFio94xyp730U= |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1496440811; bh=BIuQjVpRDkcGI8QxdW0R7CE8tDXxDsPsxefcoHC4raw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GkHrs4sMjV83XJHdP2Sqqu0PVc9cuZfkhd3sJZvfuS0EovOhyqCvpjEQG6VuUs7Bl mjsIObS9gbTKfRHhPx7t/ygVDMjU3U/2Ljrf8IOA7ZfDEIJT6KE2Sr19HxwPu4bgaZ PJwx8VAMqny8kMpmVJXPIxbwjmfXFio94xyp730U= |
| Dmarc-Filter | OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1F4EA60764 |
| Authentication-Results | pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org |
| Authentication-Results | pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sboyd@codeaurora.org |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-1 |
| Content-Disposition | inline |
| Content-Transfer-Encoding | 8bit |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 30 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Peter Chen <peter.chen@nxp.com>, Peter Senna Tschudin <peter.senna@collabora.com>, Felipe Balbi <balbi@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "open list:USB PHY LAYER" <linux-usb@vger.kernel.org>, open list <linux-kernel@vger.kernel.org> |
| X-Original-Date | Fri, 2 Jun 2017 15:00:10 -0700 |
| X-Original-Message-ID | <20170602220010.GQ20170@codeaurora.org> |
| X-Original-References | <20170419061413.20961-1-peter.senna@collabora.com> <20170420085046.GA11378@b29397-desktop> <1495563396.12055.93.camel@collabora.co.uk> <20170523210022.GN20170@codeaurora.org> <1495708587.12055.97.camel@collabora.co.uk> <1495789230.12055.104.camel@collabora.co.uk> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1656601 |
Show key headers only | View raw
On 05/26, Fabien Lahoudere wrote: > Hello > > I modify ci_hrdc_imx_probe to bypass "data->phy = devm_usb_get_phy_by_phandle(&pdev->dev, > "fsl,usbphy", 0);". Everything works as expected and call ci_ulpi_init. > > The problem is that in ci_ulpi_init, before calling "ci->ulpi = ulpi_register_interface(ci->dev, > &ci->ulpi_ops);" (to initialize our phy), "hw_phymode_configure(ci);" is called which is the > original function that make our system to hang. > > Our phy is not initialised before calling ulpi_register_interface so I don't understand how the phy > can reply if it is not out of reset state. I haven't see any problem in hw_phymode_configure(). What's the value of ci->platdata->phy_mode? USBPHY_INTERFACE_MODE_ULPI? If you phy needs to be taken out of reset to reply to the ulpi reads of the vendor/product ids, then it sounds like you have a similar situation to what I had. I needed to turn on some regulators to get those reads to work, otherwise they would fail, but knowing what needed to be turned on basically meant I needed to probe the ulpi driver so probing the ids wasn't going to be useful. So on my device the reads for the ids go through, but they get all zeroes back, which is actually ok because there aren't any bits set on my devices anyway. After the reads see 0, we fallback to DT matching, which avoids the "bring it out of reset/power it on" sorts of problems entirely. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [RFC] usb-phy-generic: Add support to SMSC USB3315 Fabien Lahoudere <fabien.lahoudere@collabora.co.uk> - 2017-05-25 12:40 +0200
Re: [RFC] usb-phy-generic: Add support to SMSC USB3315 Fabien Lahoudere <fabien.lahoudere@collabora.co.uk> - 2017-05-26 11:10 +0200
Re: [RFC] usb-phy-generic: Add support to SMSC USB3315 Stephen Boyd <sboyd@codeaurora.org> - 2017-06-03 00:10 +0200
Re: [RFC] usb-phy-generic: Add support to SMSC USB3315 Fabien Lahoudere <fabien.lahoudere@collabora.co.uk> - 2017-06-05 11:00 +0200
Re: [RFC] usb-phy-generic: Add support to SMSC USB3315 Fabien Lahoudere <fabien.lahoudere@collabora.co.uk> - 2017-06-05 12:00 +0200
Re: [RFC] usb-phy-generic: Add support to SMSC USB3315 Fabien Lahoudere <fabien.lahoudere@collabora.co.uk> - 2017-06-06 19:40 +0200
Re: [RFC] usb-phy-generic: Add support to SMSC USB3315 Fabien Lahoudere <fabien.lahoudere@collabora.co.uk> - 2017-06-07 17:10 +0200
csiph-web