Re: [PATCH 1/3] usb: otg: Improve phy handling

2012-08-25 Thread Marc Kleine-Budde
On 08/24/2012 03:59 AM, Richard Zhao wrote:
 On Thu, Aug 23, 2012 at 07:22:51PM +0200, Marc Kleine-Budde wrote:
 This patch series improves the phy handling.

 The first patch fixes the problem that the phy driver, when build as module,
 can be unloaded when the phy is in use.
 ci13xxx_imx also have a try_module_get.

Yes, I took the idea of try_module_get from the ci13xxx_imx driver.

Marc

-- 
Pengutronix e.K.  | Marc Kleine-Budde   |
Industrial Linux Solutions| Phone: +49-231-2826-924 |
Vertretung West/Dortmund  | Fax:   +49-5121-206917- |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |



signature.asc
Description: OpenPGP digital signature


[PATCH 1/3] usb: otg: Improve phy handling

2012-08-23 Thread Marc Kleine-Budde
This patch series improves the phy handling.

The first patch fixes the problem that the phy driver, when build as module,
can be unloaded when the phy is in use. The second patch takes up Kishon's work
and adds device tree support to the otg library. New in this patch is that
devm_usb_get_phy_by_phandle() will return with -EPROBE_DEFER, if the requested
phy has not registered itself yet. The third patch registers the mxs-phy as a
USB_PHY_TYPE_USB2 phy, so that the ci13xxx_imx driver can reqeust it via the
devm_usb_get_phy_by_phandle() function.

These patches apply to v3.6-rc3 and have ben successfully tested on mx28 and
mx53 (with an improved version of the chipidea driver though).

regards, Marc

--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 1/3] usb: otg: Improve phy handling

2012-08-23 Thread Richard Zhao
On Thu, Aug 23, 2012 at 07:22:51PM +0200, Marc Kleine-Budde wrote:
 This patch series improves the phy handling.
 
 The first patch fixes the problem that the phy driver, when build as module,
 can be unloaded when the phy is in use.
ci13xxx_imx also have a try_module_get.

Thanks
Richard
 The second patch takes up Kishon's work
 and adds device tree support to the otg library. New in this patch is that
 devm_usb_get_phy_by_phandle() will return with -EPROBE_DEFER, if the requested
 phy has not registered itself yet. The third patch registers the mxs-phy as a
 USB_PHY_TYPE_USB2 phy, so that the ci13xxx_imx driver can reqeust it via the
 devm_usb_get_phy_by_phandle() function.
 
 These patches apply to v3.6-rc3 and have ben successfully tested on mx28 and
 mx53 (with an improved version of the chipidea driver though).
 
 regards, Marc
 
 

--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html