usb_set_intfdata usage for two subdrivers
I am trying to implement DVB USB device smartcard reader support using USB-serial. The main problem is now that both DVB-USB and USB-serial uses interface data (usb_set_intfdata / usb_get_intfdata) for state.
Is there any common solution to resolve issue easily?
regards
Antti
Signature · 1 line
http://palosaari.fi/
Quoted 2 lines · Antti Palosaari
I am trying to implement DVB USB device smartcard reader support using USB-serial.
Really? Why? That doesn't seem to make sense, please explain more.
Quoted 5 lines
The main problem is now that both DVB-USB and
USB-serial uses interface data (usb_set_intfdata/usb_get_intfdata) for state.Is there any common solution to resolve issue easily?
No two drivers can bind to the same USB interface, so of course they would interfere.
Care to explain the problem in more detail to see if there is a better way to do all of this?
greg k-h
Quoted 5 lines · Greg KH
Quoted 2 lines · Antti Palosaari
I am trying to implement DVB USB device smartcard reader support using USB-serial.
Really? Why? That doesn't seem to make sense, please explain more.
Since it is old style serial smartcard reader, not CCID PC/SC as new readers. I see it a little bit overkill to register virtual HCI and virtual CCID device though it sounds interesting.
There is already one such similar driver, iuu_phoenix, but without DVB support ;) Consider situation I have iuu_phoenix integrated to USB DVB device. Both using same USB enpoint, sharing hardware resources of communication.
Quoted 6 lines
Quoted 5 lines
The main problem is now that both DVB-USB and
USB-serial uses interface data (usb_set_intfdata/usb_get_intfdata) for state.Is there any common solution to resolve issue easily?
Quoted 7 lines
No two drivers can bind to the same USB interface, so of course they would interfere.
Care to explain the problem in more detail to see if there is a better way to do all of this?
greg k-h
regards
Antti
Signature · 1 line
http://palosaari.fi/
Am Montag, 29. August 2011, 05:54:36 schrieb Antti Palosaari:
Quoted 7 lines · Greg KH
Quoted 5 lines · Antti Palosaari
Quoted 2 lines
I am trying to implement DVB USB device smartcard reader support using USB-serial.
Really? Why? That doesn't seem to make sense, please explain more.
Quoted 8 lines
Since it is old style serial smartcard reader, not CCID PC/SC as new readers. I see it a little bit overkill to register virtual HCI and virtual CCID device though it sounds interesting.
There is already one such similar driver,
iuu_phoenix, but without DVB support ;) Consider situation I haveiuu_phoenixintegrated to USB DVB device. Both using same USB enpoint, sharing hardware resources of communication.
Look at struct dvb_usb_device.
It has a struct input_dev embedded. I suggest you also add a serial device for smart cards.
HTH
Oliver