Re: [PATCH 2/3] USB: OMAP: add omap-otg

2013-06-13 Thread Aaro Koskinen
Hi, On Wed, Jun 12, 2013 at 06:13:26PM +0300, Felipe Balbi wrote: On Mon, Jun 10, 2013 at 01:40:05AM +0300, Aaro Koskinen wrote: +void omap_otg_set_mode(enum omap_otg_mode mode) +{ + if (!otg_dev) { + WARN(1, %s: controller not present\n, __func__); + return; +

Re: [PATCH 2/3] USB: OMAP: add omap-otg

2013-06-13 Thread Felipe Balbi
Hi, On Fri, Jun 14, 2013 at 01:37:11AM +0300, Aaro Koskinen wrote: Hi, On Wed, Jun 12, 2013 at 06:13:26PM +0300, Felipe Balbi wrote: On Mon, Jun 10, 2013 at 01:40:05AM +0300, Aaro Koskinen wrote: +void omap_otg_set_mode(enum omap_otg_mode mode) +{ + if (!otg_dev) { +

Re: [PATCH 2/3] USB: OMAP: add omap-otg

2013-06-12 Thread Felipe Balbi
Hi, On Mon, Jun 10, 2013 at 01:40:05AM +0300, Aaro Koskinen wrote: +void omap_otg_set_mode(enum omap_otg_mode mode) +{ + if (!otg_dev) { + WARN(1, %s: controller not present\n, __func__); + return; + } + mutex_lock(otg_dev-serialize); + switch

[PATCH 2/3] USB: OMAP: add omap-otg

2013-06-09 Thread Aaro Koskinen
Transceivers need to manage OTG controller state on OMAP1 to enable switching between peripheral and host modes. Provide a driver for that. Signed-off-by: Aaro Koskinen aaro.koski...@iki.fi --- drivers/usb/phy/Kconfig| 10 drivers/usb/phy/Makefile |1 +