Re: [PATCH 2/2] phy: Add new Intel Cherrytrail USB OTG phy driver

2016-12-23 Thread Hans de Goede
Hi, On 23-12-16 02:04, Lu Baolu wrote: Hi, On 12/22/2016 07:47 PM, Hans de Goede wrote: +static int intel_cht_usb_phy_probe(struct platform_device *pdev) +{ + struct intel_cht_usb_phy *phy; + struct device *dev = >dev; + struct resource *res; + resource_size_t size; +

Re: [PATCH 2/2] phy: Add new Intel Cherrytrail USB OTG phy driver

2016-12-22 Thread Lu Baolu
Hi, On 12/22/2016 07:47 PM, Hans de Goede wrote: > +static int intel_cht_usb_phy_probe(struct platform_device *pdev) > +{ > + struct intel_cht_usb_phy *phy; > + struct device *dev = >dev; > + struct resource *res; > + resource_size_t size; > + int i, ret; > + > + phy =

[PATCH 2/2] phy: Add new Intel Cherrytrail USB OTG phy driver

2016-12-22 Thread Hans de Goede
Add a phy driver for the OTG USB PHY muxing and Vbus valid bits in the Intel Vendor Defined XHCI extended capabilities region found on Cherrytrail SoCs. Note this depends on the xhci driver registering a platform device named "phy_intel_cht_usb", which has an IOMEM resource 0 which points to the