Re: [PATCH 0/3] usb: cdc-wdm: subdriver support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Montag, 30. Januar 2012, 16:06:43 schrieb Alan Stern:
> > Counters are generally the preffered solution to such problems. You'd better
> > do it in usbcore and provide three helper functions and a spinlock (or make
> > it atomic). Then you need to go through all drivers, but this is the cleanest solution
> > in the long run.
> 
> I disagree.  Counters are needed only when a resource is being shared, 
> and interfaces aren't supposed to be shared between drivers.

Very well, that is the conservative option.

> If you decide that you have to go against this model, then it is up to
> you to figure out how to manage one interface using your two drivers.  
> But you shouldn't drag the rest of the USB stack into it.

Bjørn, in this case it is best to provide two helping function
pointers when you create the "subdevice" and realize the counters
in the network driver.

	Regards
		Oliver
--
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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux