USB driver: when and how is the probe function called?

stl <[email protected]>
Newsgroups gmane.linux.uclinux.devel
Message-ID <CAOPDcRwxOMRH8ERL8PL6i-KoB72__THrH1zRyKzGFxUuHgNF8A@mail.gmail.com>
Hello all,
I am writing a USB driver for a new architecture support.
I have define a usb_driver structure with a probe function as field.
But I am wondering when and how this function is called?

I have read on the book Linux Device Drivers 3rd edition (usb driver
chapter)
that this function "is called by the USB core when it thinks it has a
struct usb_interface
that this driver can handle".

So I suppose that when a usb device is attached, the corresponding IRQ is
received
from the hardware, and something in the ISR should tell the USB core that
the probe
function needs to be called.
Could someone clarify the procedure please?

Thanks in advance for your help.

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.