From: Devin Heitmueller <devin.heitmueller@aepnetworks.com>
To: linux-kernel@vger.kernel.org
Subject: e1000 driver and interrupt registration
Date: Tue, 08 Mar 2005 18:22:25 -0500 [thread overview]
Message-ID: <1110324145.8711.63.camel@localhost.localdomain> (raw)
Hello,
I recently upgraded to 2.4.29 from 2.4.21 and see that the interrupt of
the e1000 device is not being shown when running /sbin/ifconfig.
It would appear that in version 1.56 of e1000_main.c, the e1000_probe
function was modified to store the IRQ of the device in pdev->irq
instead of netdev->irq.
http://linux.bkbits.net:8080/linux-2.4/diffs/drivers/net/e1000/e1000_main.c@1.56?nav=index.html|src/|src/drivers|src/drivers/net|src/drivers/net/e1000|hist/drivers/net/e1000/e1000_main.c
According to the log, this was done "in preparation for MSI support".
However, it would appear that no other Ethernet driver does this. As a
result, the value is not present in the netdev->irq field, and hence the
SIOCGIFMAP ioctl call does not include the interrupt.
Is this expected behavior? It would appear that this is a backport from
2.6, so perhaps it should not work this way in stable 2.4 kernels.
Is there any harm in also including the IRQ in the netdev struct, as I
have applications that expect this (such as ifconfig)?
The following patch appears to fix the issue. I'm just not sure if it
breaks anything else:
--- linux-2.4.29/drivers/net/e1000/e1000_main.c Wed Jan 19 09:09:56 2005
+++ kernel/drivers/net/e1000/e1000_main.c Tue Mar 8 16:13:46 2005
@@ -485,6 +485,9 @@
#endif
strcpy(netdev->name, pci_name(pdev));
+ netdev->irq = pdev->irq;
+
netdev->mem_start = mmio_start;
netdev->mem_end = mmio_start + mmio_len;
netdev->base_addr = adapter->hw.io_base;
Thanks in advance,
--
Devin Heitmueller
Senior Software Engineer
AEP Networks, Inc. (formerly Netilla)
reply other threads:[~2005-03-08 23:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1110324145.8711.63.camel@localhost.localdomain \
--to=devin.heitmueller@aepnetworks.com \
--cc=linux-kernel@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 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®