Re: [V9 PATCH 01/12] usb: phy: protect phy init and shutdown for mutiple deivces

2013-05-06 Thread Chao Xie
On Tue, Apr 30, 2013 at 2:24 AM, Felipe Balbi wrote: > On Wed, Apr 24, 2013 at 02:23:15AM -0400, Chao Xie wrote: >> diff --git a/include/linux/usb/phy.h b/include/linux/usb/phy.h >> index 6b5978f..98d7e60 100644 >> --- a/include/linux/usb/phy.h >> +++ b/include/linux/usb/phy.h >> @@ -87,6 +87,14 @

Re: [V9 PATCH 01/12] usb: phy: protect phy init and shutdown for mutiple deivces

2013-04-29 Thread Russell King - ARM Linux
On Mon, Apr 29, 2013 at 09:24:41PM +0300, Felipe Balbi wrote: > On Wed, Apr 24, 2013 at 02:23:15AM -0400, Chao Xie wrote: > > diff --git a/include/linux/usb/phy.h b/include/linux/usb/phy.h > > index 6b5978f..98d7e60 100644 > > --- a/include/linux/usb/phy.h > > +++ b/include/linux/usb/phy.h > > @@ -

Re: [V9 PATCH 01/12] usb: phy: protect phy init and shutdown for mutiple deivces

2013-04-29 Thread Felipe Balbi
On Wed, Apr 24, 2013 at 02:23:15AM -0400, Chao Xie wrote: > diff --git a/include/linux/usb/phy.h b/include/linux/usb/phy.h > index 6b5978f..98d7e60 100644 > --- a/include/linux/usb/phy.h > +++ b/include/linux/usb/phy.h > @@ -87,6 +87,14 @@ struct usb_phy { > /* to support controllers that hav

[V9 PATCH 01/12] usb: phy: protect phy init and shutdown for mutiple deivces

2013-04-23 Thread Chao Xie
Some USB devices will share same phy, so make the ->init and ->shutdown to be protected. Only first device will initialize the phy, and only last device can shutdown phy. Signed-off-by: Chao Xie --- drivers/usb/phy/phy.c |6 ++ include/linux/usb/phy.h | 22 ++ 2 f

[V9 PATCH 01/12] usb: phy: protect phy init and shutdown for mutiple deivces

2013-04-07 Thread Chao Xie
Some USB devices will share same phy, so make the ->init and ->shutdown to be protected. Only first device will initialize the phy, and only last device can shutdown phy. Signed-off-by: Chao Xie --- drivers/usb/phy/phy.c |6 ++ include/linux/usb/phy.h | 22 ++ 2 f