From: Scott Feldman <sfeldma@pobox.com>
To: Stephen Hemminger <shemminger@osdl.org>
Cc: netdev@oss.sgi.com
Subject: Re: [PATCH] skge driver (0.5)
Date: Tue, 25 Jan 2005 22:37:19 -0800 [thread overview]
Message-ID: <1106721439.3458.449.camel@localhost.localdomain> (raw)
In-Reply-To: <20050125151507.414e7f4f@dxpl.pdx.osdl.net>
Nice looking driver Stephen. :)
Some minor comments.
> +#include <linux/config.h>
> +#include <linux/kernel.h>
> +#include <linux/module.h>
> +#include <linux/moduleparam.h>
> +#include <linux/netdevice.h>
> +#include <linux/etherdevice.h>
> +#include <linux/dma-mapping.h>
> +#include <linux/ethtool.h>
> +#include <linux/pci.h>
> +#include <linux/if_vlan.h>
> +#include <linux/ip.h>
> +#include <linux/udp.h>
> +#include <linux/tcp.h>
> +#include <linux/delay.h>
> +#include <linux/crc32.h>
> +#include <asm/irq.h>
Seems like dma-mapping.h, udp.h, tcp.h, irq.h don't need to be included
for a clean compile. Ditch 'em?
> +
> + memset(hw, 0, sizeof(*hw));
> + hw->pdev = pdev;
> + spin_lock_init(&hw->phy_lock);
> + tasklet_init(&hw->ext_tasklet, skge_extirq, (unsigned long) hw);
> +
> + hw->regs = ioremap_nocache(pci_resource_start(pdev, 0), 0x4000);
> + if (!hw->regs) {
> + printk(KERN_ERR "skge %s: cannot map device registers\n",
PFX instead of skge. There are a couple of these with hardcoded "skge"
or none at all.
> +static int skge_resume(struct pci_dev *pdev)
> +{
> + struct skge_hw *hw = pci_get_drvdata(pdev);
> + int i;
> +
> + pci_set_power_state(pdev, PCI_D0);
> + pci_restore_state(pdev);
> +
> + skge_reset(hw);
> +
> + for(i = 0; i < 2; i++) {
> + struct net_device *dev = hw->dev[i];
Is a netif_device_attach needed to match the netif_device_detach in
suspend?
-scott
next prev parent reply other threads:[~2005-01-26 6:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-19 21:52 [RFT] skge: new syskonnect gigabit ethernet driver Stephen Hemminger
2005-01-20 0:00 ` Jeff Garzik
2005-01-20 0:41 ` Nish Aravamudan
2005-01-21 23:01 ` [RFT] skge: new syskonnect gigabit ethernet driver (0.4) Stephen Hemminger
2005-01-25 23:15 ` [PATCH] skge driver (0.5) Stephen Hemminger
2005-01-26 6:37 ` Scott Feldman [this message]
2005-01-27 22:10 ` Jeff Garzik
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=1106721439.3458.449.camel@localhost.localdomain \
--to=sfeldma@pobox.com \
--cc=netdev@oss.sgi.com \
--cc=shemminger@osdl.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;
as well as URLs for NNTP newsgroup(s).