Hi, 2010/12/18 Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>: > On Fri, 17 Dec 2010 tom.leiming@xxxxxxxxx wrote: > >> From: Ming Lei <tom.leiming@xxxxxxxxx> >> >> This patch fix kernel panic during s2ram, which is caused >> by mistaken definition of glue_to_musb. > >> --- a/drivers/usb/musb/musb_core.h >> +++ b/drivers/usb/musb/musb_core.h >> @@ -577,6 +577,16 @@ static inline void musb_configure_ep0(struct musb *musb) >> } >> #endif /* CONFIG_BLACKFIN */ >> >> +static inline struct musb *dev_to_musb(struct device *dev) >> +{ >> +#ifdef CONFIG_USB_MUSB_HDRC_HCD >> + /* usbcore insists dev->driver_data is a "struct hcd *" */ > > It does? Where? usb_create_hcd() ...... dev_set_drvdata(dev, hcd); ...... In fact, should be dev->p->driver_data, accurately speaking. Seems it is nothing to do with the patch, dev_to_musb is only moved from musb_core.c to musb_core.h, :-) -- Lei Ming -- 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