netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Neukum <oliver@neukum.org>
To: "John Que" <qwejohn@gmail.com>
Cc: "Daniel Drake" <dsd@gentoo.org>,
	linux-usb-devel@lists.sourceforge.net,
	"John W. Linville" <linville@tuxdriver.com>,
	netdev@vger.kernel.org, "Ulrich Kunitz" <kune@deine-taler.de>
Subject: Re: [linux-usb-devel] [PATCH RFC] ZyDAS ZD1211 USB-WLAN driver
Date: Sun, 4 Jun 2006 21:06:17 +0200	[thread overview]
Message-ID: <200606042106.17870.oliver@neukum.org> (raw)
In-Reply-To: <ada605fb0606041122w36ad8320wa0a5d8241c98644c@mail.gmail.com>

Am Sonntag, 4. Juni 2006 20:22 schrieb John Que:
> Hello Oliver,
> 
>     I am sorry, but I think I don't understand ,
> You said:
> >A USB driver never will request an irq. Interrupt handling is done in
> > the core usb layer. Individual drivers have no business there.
> 
> but in the zd1211 driver (not the rewrite version) I found this
> call to request an irq:
> request_irq(dev->irq, &zd1205_intr, SA_SHIRQ, dev->name, dev)
> 
> Also when looking in the linux tree, I see some request_irq() calls in USB
> drivers, for exmaple in some drivers under usb/gadgaets, and more.
> 
> Can you please elaborate a bit ? What do you mean by saying
> "A USB driver never will request an irq"?

The architecture is as follows:

device driver <---> USB core <---> host driver <=== USB ===> gadget driver <---> function driver

Only those drivers that deal with the hardware directly request interrupts.
A device driver submits URBs and deals with callbacks.

	Regards
		Oliver

  reply	other threads:[~2006-06-04 19:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-03 11:20 [PATCH RFC] ZyDAS ZD1211 USB-WLAN driver Daniel Drake
2006-06-03 17:51 ` [linux-usb-devel] " Oliver Neukum
2006-06-03 19:35   ` Daniel Drake
2006-06-03 22:25     ` Oliver Neukum
2006-06-04 16:29       ` John Que
2006-06-04 17:17         ` Oliver Neukum
2006-06-04 18:03           ` Rami Rosen
2006-06-04 21:51             ` Daniel Drake
2006-06-04 18:22           ` John Que
2006-06-04 19:06             ` Oliver Neukum [this message]
2006-06-04 21:45         ` Daniel Drake
2006-06-06  5:41       ` David Brownell
2006-06-10 11:23       ` Ulrich Kunitz
2006-06-10 11:49         ` Oliver Neukum
2006-06-10 12:40         ` [linux-usb-devel] " Daniel Drake
2006-06-10 19:37   ` Daniel Drake

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=200606042106.17870.oliver@neukum.org \
    --to=oliver@neukum.org \
    --cc=dsd@gentoo.org \
    --cc=kune@deine-taler.de \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=linville@tuxdriver.com \
    --cc=netdev@vger.kernel.org \
    --cc=qwejohn@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).