Retro-fit USB monitor
I'm at a loss. I want to retrofit a USB host driver with the calls necessary to implement USB monitoring but I can't find any good reference material. Can someone point me in the right direction? The usbmon.txt file does a nice job on using the facility but doesn't say much about the driver side. Thanks Sent from my iPhone-- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Retro-fit USB monitor
On Mon, 21 Jul 2014, Dave wrote: I'm at a loss. I want to retrofit a USB host driver with the calls necessary to implement USB monitoring but I can't find any good reference material. Can someone point me in the right direction? The usbmon.txt file does a nice job on using the facility but doesn't say much about the driver side. You're in luck -- no changes to the driver are needed. The usbmon module and usbcore take care of everything for you. :-) Alan Stern -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Retro-fit USB monitor
On Mon, Jul 21, 2014 at 04:52:40PM -0400, Dave wrote: I'm at a loss. I want to retrofit a USB host driver with the calls necessary to implement USB monitoring but I can't find any good reference material. Can someone point me in the right direction? The usbmon.txt file does a nice job on using the facility but doesn't say much about the driver side. What USB host driver are you using that doesn't support the usbmon interface? You shouldn't need to add any hooks into the host driver, the USB core should handle all of this automatically for you. thanks, greg k-h -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Retro-fit USB monitor
It's the gadget driver for the Freescale Dual role controller. Sent from my iPhone On Jul 21, 2014, at 5:01 PM, Greg KH g...@kroah.com wrote: On Mon, Jul 21, 2014 at 04:52:40PM -0400, Dave wrote: I'm at a loss. I want to retrofit a USB host driver with the calls necessary to implement USB monitoring but I can't find any good reference material. Can someone point me in the right direction? The usbmon.txt file does a nice job on using the facility but doesn't say much about the driver side. What USB host driver are you using that doesn't support the usbmon interface? You shouldn't need to add any hooks into the host driver, the USB core should handle all of this automatically for you. thanks, greg k-h -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Retro-fit USB monitor
A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Mon, Jul 21, 2014 at 05:17:16PM -0400, Dave wrote: It's the gadget driver for the Freescale Dual role controller. gadget drivers do not use usbmon on the gadget side, sorry. That's a host-controller-only interface for now. greg k-h -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Retro-fit USB monitor
Sorry about the poor form! Bad habit I suppose. That's a host-controller-only interface for now. That being usbmon - right? But there is no intrinsic reason I couldn't use the USB core as a model for retrofitting the Freescale DR driver is there? BTW - I haven't found any thing describing the difference between the uN and sN (eg u0 and s0) files. Sent from my iPhone -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Retro-fit USB monitor
On Mon, Jul 21, 2014 at 06:08:05PM -0400, Dave wrote: Sorry about the poor form! Bad habit I suppose. That's a host-controller-only interface for now. That being usbmon - right? Yes. But there is no intrinsic reason I couldn't use the USB core as a model for retrofitting the Freescale DR driver is there? I have no idea what driver you are referring to, why isn't it merged into the kernel tree already? BTW - I haven't found any thing describing the difference between the uN and sN (eg u0 and s0) files. Did you read the usbmon documentation? thanks, greg k-h -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html