netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Jeff Garzik <jeff@garzik.org>
Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>,
	Haavard Skinnemoen <hskinnemoen@atmel.com>,
	netdev@vger.kernel.org
Subject: Re: [PATCH] macb: Call phy_disconnect on removing
Date: Tue, 15 Apr 2008 01:53:31 -0700	[thread overview]
Message-ID: <20080415015331.b6ab8963.akpm@linux-foundation.org> (raw)
In-Reply-To: <48005E6E.3010802@garzik.org>

On Sat, 12 Apr 2008 03:02:06 -0400 Jeff Garzik <jeff@garzik.org> wrote:

> Atsushi Nemoto wrote:
> > Call phy_disconnect() on remove routine.  Otherwise the phy timer
> > causes a kernel crash when unloading.
> > 
> > Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
> > ---
> > diff --git a/drivers/net/macb.c b/drivers/net/macb.c
> > index 1d210ed..10fcea5 100644
> > --- a/drivers/net/macb.c
> > +++ b/drivers/net/macb.c
> > @@ -1257,6 +1257,8 @@ static int __exit macb_remove(struct platform_device *pdev)
> >  
> >  	if (dev) {
> >  		bp = netdev_priv(dev);
> > +		if (bp->phy_dev)
> > +			phy_disconnect(bp->phy_dev);
> >  		mdiobus_unregister(&bp->mii_bus);
> >  		kfree(bp->mii_bus.irq);
> 
> applied
> 

Needed in 2.6.24.x as well, I think?

  reply	other threads:[~2008-04-15  8:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-10 14:30 [PATCH] macb: Call phy_disconnect on removing Atsushi Nemoto
2008-04-12  7:02 ` Jeff Garzik
2008-04-15  8:53   ` Andrew Morton [this message]
2008-04-15 16:35     ` Atsushi Nemoto
2008-04-16  4:57       ` Haavard Skinnemoen

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=20080415015331.b6ab8963.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=anemo@mba.ocn.ne.jp \
    --cc=hskinnemoen@atmel.com \
    --cc=jeff@garzik.org \
    --cc=netdev@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;
as well as URLs for NNTP newsgroup(s).