All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Grundler <grundler@parisc-linux.org>
To: ultralinux@vger.kernel.org
Subject: Re: [Bug 9106] Sun Fire v100 dmfe driver bug
Date: Sun, 06 Jan 2008 08:35:32 +0000	[thread overview]
Message-ID: <20080106083532.GA30102@colo.lackof.org> (raw)
In-Reply-To: <001301c81f2a$74ae0bf0$6b01a8c0@Jive>

On Sun, Nov 04, 2007 at 01:49:58PM -0800, David Miller wrote:
...
> The SROM reads aren't failing, think out of the box, the more likely
> problem is:
> 
> 3) Sun doesn't initialize the SROM for the onboard network devices.
>    You have to obtain the MAC address and other settings by fetching
>    them from the openfirmware device properties.

Dave,
Thanks! This was the case with the dmfe driver on SPARC.
I've attached a patch as comment #6 on:
	http://bugzilla.kernel.org/show_bug.cgi?id‘06

User confirmed dmfe driver (with patch) finds the MAC addresses.
I'll ask Kyle McMartin to push this.

Unfortunately, the device still doesn't work.
Any SPARC volunteers interested in working on this bug?

I don't have the HW or interest to work on this further.
It's possible recent changes to dmfe might have also fixed some
of the issues (IIRC, phy reset patch was pushed in Decemeber).
I'd be happy to advise/review changes for anyone who works on it.

thanks,
grant

> 
>    So use something like:
> 
> #ifdef CONFIG_OF
> 	struct device_node *dp = pci_device_to_OF_node(pdev);
> 	const char *addr;
> 
> 	addr = of_get_property(dp, "local-mac-address", NULL);
> 	if (addr) {
> 		memcpy(dev->dev_addr, addr, ETH_ALEN);
> 		return 1;
> 	}
> 	return 0;
> #endif

  parent reply	other threads:[~2008-01-06  8:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-04 21:34 [Bug 9106] Sun Fire v100 dmfe driver bug Richard Mortimer
2007-11-04 21:49 ` David Miller
2007-11-06  6:53 ` Grant Grundler
2007-11-06  7:11 ` David Miller
2008-01-06  8:35 ` Grant Grundler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-01-22  7:27 David Miller
2008-01-23  6:19 ` Grant Grundler
2008-01-23  6:23 ` David Miller

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=20080106083532.GA30102@colo.lackof.org \
    --to=grundler@parisc-linux.org \
    --cc=ultralinux@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 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.