From: "vijay anand" <vijayanand.sj@gmail.com>
To: "Oliver Neukum" <oliver@neukum.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [BUG] cdc-acm driver module
Date: Thu, 22 May 2008 10:29:50 +0530 [thread overview]
Message-ID: <b49af93b0805212159x46226c63i948e90e263283efc@mail.gmail.com> (raw)
In-Reply-To: <200805211525.08054.oliver@neukum.org>
Hi Oliver,
Thank you very much for replying.
Given below is the snip from '\linux-2.6.25\drivers\usb\core\driver.c'
for 'usb_driver_release_interface'
****SNIP*****
* This can be used by drivers to release an interface without waiting
* for their disconnect() methods to be called. In typical cases this
* also causes the driver disconnect() method to be called.
****END*****
What happens when the function 'usb_deregister' in 'acm_exit' gets
called before the control reaches the 'acm_disconnect'? Is there any
possibility for this? If yes what happens during this scenario?
Thanks,
VJ
On Wed, May 21, 2008 at 6:55 PM, Oliver Neukum <oliver@neukum.org> wrote:
> Am Mittwoch 21 Mai 2008 15:01:21 schrieb vijay anand:
>> What happens when the control never reaches the 'acm_disconnect'. Like simply
>> loading the driver and unloading the driver when the device is still in use.
>
> Even in this case disconnect() will be called.
> The only time it will not be called is if probe() was never called. But
> in that case no interface has been claimed. All is well.
>
> Regards
> Oliver
>
next prev parent reply other threads:[~2008-05-22 5:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-21 13:01 vijay anand
2008-05-21 13:25 ` Oliver Neukum
2008-05-22 4:59 ` vijay anand [this message]
2008-05-22 11:21 ` Oliver Neukum
2008-05-22 13:24 ` vijay anand
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=b49af93b0805212159x46226c63i948e90e263283efc@mail.gmail.com \
--to=vijayanand.sj@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oliver@neukum.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®