usbatm question
matthieu castet
castet.matthieu at free.fr
Sun Mar 13 06:14:15 EST 2005
Hi Roman,
Roman Kagan wrote:
> On Sat, Mar 12, 2005 at 11:37:16PM +0100, matthieu castet wrote:
>
>>usbatm use intfdata for storing its private data, so the driver
>>shouldn't use it.
>>But how could the driver recover its private data for example for an ioctl?
>>Could the driver assume that there is always usbatm private data and use
>>usbatm->driver_data ?
>
>
> It's up to you. usbatm calls subdriver's ->bind method in its probe
> routine before anything else, so you can store your driver_data and then
> rely on it. If you need to handle multiple interfaces, you need to make
> sure that usbatm_usb_probe is called for only one of them, and
> explicitly claim others from within ->bind.
>
Heu, where I store my driver data in ->bind ?
If it is in usbatm->driver_data, my question is how to recover my
private data from outside usbatm call (ioctl for example).
> ->atm_start is naturally run _after_ ->heavy_init.
> Why not do the stats _in_ the ->atm_start?
>
Because I need the state machine for booting the modem.
Matthieu
More information about the Usbatm
mailing list