Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1414638
| From | Frank Wang <frank.wang@rock-chips.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [v2, 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy |
| Date | 2016-06-06 07:00 +0200 |
| Message-ID | <rGUNP-aP-9@gated-at.bofh.it> (permalink) |
| References | <rFuC5-2sz-3@gated-at.bofh.it> <rG3qa-7uS-17@gated-at.bofh.it> <rG4Pf-8ss-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Heiko & Guenter,
On 2016/6/4 5:24, Heiko Stübner wrote:
> Am Freitag, 3. Juni 2016, 12:59:22 schrieb Guenter Roeck:
>> On Thu, Jun 02, 2016 at 02:48:10PM +0800, Frank Wang wrote:
>>> The newer SoCs (rk3366, rk3399) take a different usb-phy IP block
>>> than rk3288 and before, and most of phy-related registers are also
>>> different from the past, so a new phy driver is required necessarily.
>>>
>>> Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
>>> ---
>>>
>>> Changes in v2:
>>> - Changed vbus_host operation from gpio to regulator in *_probe.
>>> - Improved the fault treatment relate to 480m clock register.
>>> - Cleaned up some meaningless codes in *_clk480m_disable.
>>> - made more clear the comment of *_sm_work.
>>>
>>> [...]
>>>
>>> +static struct clk *
>>> +rockchip_usb2phy_clk480m_register(struct rockchip_usb2phy *rphy)
>>> +{
>>> + struct device_node *node = rphy->dev->of_node;
>>> + struct clk *clk;
>>> + struct clk_init_data init;
>>> + int ret;
>>> +
>>> + init.name = "clk_usbphy_480m";
>>> + init.ops = &rockchip_usb2phy_clkout_ops;
>>> + init.flags = CLK_IS_ROOT;
>> One more comment:
>>
>> include/linux/clk-provider.h:#define CLK_IS_ROOT BIT(4) /*
>> Deprecated: Don't use */
>>
>> ... and the definition has been removed in linux-next.
> also, the created clock should be a child of the phy-supply clock. Please take
> a look at the picophy-variant (phy-rockchip-usb) that already handles that
> parent assignment.
>
Okay, I will refer and correct them in the next patch (patch v3) .
BR.
Frank
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy Frank Wang <frank.wang@rock-chips.com> - 2016-06-02 08:50 +0200
Re: [v2, 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy Guenter Roeck <linux@roeck-us.net> - 2016-06-03 22:00 +0200
Re: [v2, 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy Frank Wang <frank.wang@rock-chips.com> - 2016-06-06 06:50 +0200
Re: [v2, 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy Guenter Roeck <linux@roeck-us.net> - 2016-06-03 22:00 +0200
Re: [v2, 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy Heiko Stübner <heiko@sntech.de> - 2016-06-03 23:30 +0200
Re: [v2, 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy Frank Wang <frank.wang@rock-chips.com> - 2016-06-06 07:00 +0200
csiph-web