On Tue, Apr 30, 2013 at 2:24 AM, Felipe Balbi <balbi@xxxxxx> 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 @@ struct usb_phy { >> /* to support controllers that have multiple transceivers */ >> struct list_head head; >> >> + /* >> + * PHY may be shared by multiple devices. >> + * mutex and refcount are used to make sure PHY only initialize or >> + * shutdown once. > > bad grammar in this sentence. > I will fix it in the next version. >> + */ >> + struct mutex phy_mutex; >> + unsigned int refcount; > > why don't you use an atomic_t ? > Mutex will protect both ->init and ->shutdown routines. Thanks for Russell's explanation. > -- > balbi Can you help to review other patches in this series? So I can fix all the errors in the next version. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html