Hi, On Wed, Jan 30, 2013 at 05:28:59PM +0100, stl wrote: > Hello all, > I am writing a USB device driver and I have some problems to write let's first try to understand what are you trying to do ? Do you to want to write a driver for a USB device such as a USB pendrive, or a USB camera and the like or do you want to write a driver for a USB Controller IC ? > the specific probe() function. probe() is supposed to setup the environment so we can communicate with the device we're writing driver for. > In the documentation, it is said that the probe function is > responsible for mapping the > platform ressources (IRQ and I/O memory) > > Firstly, what should I do with platform_get_ressource() function? if you're writing a driver for a USB device you don't need a platform_driver at all, you need a usb_driver. See drivers/usb/usb-skeleton.c for example. > Some vendors use device_register(). What does it do? which vendors ? which drivers use this ? > And what is the field platform_data aim? (field of the struct device) to pass data to the device driver from platform (arch/*) code. -- balbi
Attachment:
signature.asc
Description: Digital signature