recent USB MFCs cause panics

Warner Losh imp at bsdimp.com
Thu May 5 15:21:27 PDT 2005


From: Warner Losh <imp at bsdimp.com>
Subject: Re: recent USB MFCs cause panics
Date: Thu, 05 May 2005 16:13:51 -0600 (MDT)

> > Is there a reason tio not just remove the method entry?
> > will it default to a good default?   (i.e. not an error default?)
> > if not then I guess just stubbibg the method would work..
> 
> Maybe you should look at the current code rather than taking the
> scatter gun approach to hoping that there's a magic bullet.

Sorry for the short reply, but the current code has:

USB_DECLARE_DRIVER_INIT(uhub,
	DEVMETHOD(bus_child_pnpinfo_str, uhub_child_pnpinfo_str),
	DEVMETHOD(bus_child_location_str, uhub_child_location_str),
	DEVMETHOD(bus_driver_added, bus_generic_driver_added),
	DEVMETHOD(device_suspend, bus_generic_suspend),
	DEVMETHOD(device_resume, bus_generic_resume),
	DEVMETHOD(device_shutdown, bus_generic_shutdown)
	);

But there's more than just removing the entry in the table to making
it work.

Warner


More information about the freebsd-usb mailing list