From: bjorn@mork.no (Bjørn Mork)
To: kernelnewbies@lists.kernelnewbies.org
Subject: USB device debugging
Date: Wed, 25 May 2016 14:01:02 +0200 [thread overview]
Message-ID: <87posany81.fsf@nemi.mork.no> (raw)
In-Reply-To: <CAL0PPtKQmeK=cvKR_pwHgQByO1uFtedqkzRjab0p4omt9cAbzQ@mail.gmail.com> (Narasimha M.'s message of "Wed, 25 May 2016 16:59:17 +0530")
Narasimha M <mnarasimha786@gmail.com> writes:
> Thanks for the info. Sorry to ask you again, where does the usb driver
> (GobiNet in my case) comes into picture in receive packet flow. I
> suspect that the driver has to send some data (may be with some
> interrupts) to rx_complete and then it will go to rx_submit. Is my
> understanding is correct ? or if rx_submit is the first function to
> generate the data, then where does Gobinet driver comes into place.
> Could you please explain. I don't know how some usb driver works. This
> is the first time i am working on it.
GobiNet isn't part of the receive packet flow at all, if we assume a
non-buggy Gobi device operating in 802.3 mode. The rx_fixup callback is
called, but it does nothing. There isn't anything to do. The buffer is
filled with an ethernet packet by the device + host controller.
The usbnet_bh() tasklet is responsible for calling rx_submit (indirectly
in newer kernels). This is triggered by setting the EVENT_DEV_OPEN
flag, which is done by usbnet_open(). GobiNet obfuscates this quite a
bit, but it doen't do anything extra-ordinary here - it simply calls
usbnet_open() when you open the netdev.
Bj?rn
next prev parent reply other threads:[~2016-05-25 12:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-24 7:39 USB device debugging Narasimha M
2016-05-24 7:59 ` Carlo Caione
2016-05-24 8:18 ` Narasimha M
2016-05-24 14:46 ` Greg KH
2016-05-24 17:00 ` Bjørn Mork
2016-05-25 9:00 ` Narasimha M
2016-05-25 10:11 ` Bjørn Mork
2016-05-25 10:51 ` Narasimha M
2016-05-25 11:06 ` Bjørn Mork
2016-05-25 11:29 ` Narasimha M
2016-05-25 12:01 ` Bjørn Mork [this message]
2016-05-25 12:37 ` Narasimha M
2016-05-25 12:56 ` Bjørn Mork
2016-05-25 15:24 ` Narasimha M
2016-05-25 15:42 ` Narasimha M
2016-05-25 18:20 ` Greg KH
2016-05-26 5:31 ` Narasimha M
2016-05-26 5:51 ` Greg KH
2016-05-26 6:23 ` Narasimha M
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=87posany81.fsf@nemi.mork.no \
--to=bjorn@mork.no \
--cc=kernelnewbies@lists.kernelnewbies.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.