From: Antti Palosaari <crope@iki.fi>
To: Greg KH <greg@kroah.com>
Cc: linux-media@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: usb_set_intfdata usage for two subdrivers
Date: Mon, 29 Aug 2011 06:54:36 +0300 [thread overview]
Message-ID: <4E5B0D7C.60003@iki.fi> (raw)
In-Reply-To: <20110829003617.GA8372@kroah.com>
On 08/29/2011 03:36 AM, Greg KH wrote:
> On Mon, Aug 29, 2011 at 02:30:26AM +0300, Antti Palosaari wrote:
>> 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.
>> 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
regards
Antti
--
http://palosaari.fi/
next prev parent reply other threads:[~2011-08-29 3:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-28 23:30 usb_set_intfdata usage for two subdrivers Antti Palosaari
2011-08-29 0:36 ` Greg KH
2011-08-29 3:54 ` Antti Palosaari [this message]
2011-08-29 17:03 ` Oliver Neukum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E5B0D7C.60003@iki.fi \
--to=crope@iki.fi \
--cc=greg@kroah.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.