From: Rodolfo Giometti <giometti@linux.it>
To: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: jgarzik@pobox.com, netdev@vger.kernel.org,
Linux-MIPS <linux-mips@linux-mips.org>,
Jordan Crouse <jordan.crouse@amd.com>
Subject: Re: [PATCH] au1000_eth.c Power Management, driver registration and module support
Date: Wed, 31 May 2006 17:21:41 +0200 [thread overview]
Message-ID: <20060531152141.GH4390@enneenne.com> (raw)
In-Reply-To: <447DAFAE.10503@ru.mvista.com>
[-- Attachment #1: Type: text/plain, Size: 1337 bytes --]
On Wed, May 31, 2006 at 07:01:02PM +0400, Sergei Shtylyov wrote:
>
> Now that this is merged, Rodolfo's patch should probably preempt mine...
> but it looks like something was lost during the transition: I failed to see
> where SYS_PINFUNC register is actually read (the comment mentioning this
> was retained :-) to check whether Ethernet port 1 is enabled (its pins are
> shared w/GPIO)...
You are right! Maybe something like this may fix the problem:
diff --git a/drivers/net/au1000_eth.c b/drivers/net/au1000_eth.c
index 341fdc4..8a6427e 100644
--- a/drivers/net/au1000_eth.c
+++ b/drivers/net/au1000_eth.c
@@ -2149,6 +2149,9 @@ static int au1000_drv_probe(struct devic
void *base_addr, *macen_addr;
int irq, ret;
+ if (pdev->id == 1 && (au_readl(SYS_PINFUNC) & SYS_PF_NI2) != 0)
+ return -ENODEV;
+
/* Get the resource info */
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "eth-base");
if (!res) {
Ciao,
Rodolfo
--
GNU/Linux Solutions e-mail: giometti@enneenne.com
Linux Device Driver giometti@gnudd.com
Embedded Systems giometti@linux.it
UNIX programming phone: +39 349 2432127
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2006-05-31 15:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20060405154711.GL7029@enneenne.com>
[not found] ` <20060405222332.GO7029@enneenne.com>
[not found] ` <20060405222620.GP7029@enneenne.com>
[not found] ` <4435290C.50607@ru.mvista.com>
[not found] ` <20060406155011.GC23424@enneenne.com>
2006-04-19 18:46 ` [PATCH] au1000_eth.c probe code straightened up Sergei Shtylyov
2006-05-02 15:09 ` [PATCH] au1000_eth.c Power Management, driver registration and module support Rodolfo Giometti
2006-05-03 7:47 ` Rodolfo Giometti
2006-05-31 15:01 ` Sergei Shtylyov
2006-05-31 15:21 ` Rodolfo Giometti [this message]
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=20060531152141.GH4390@enneenne.com \
--to=giometti@linux.it \
--cc=jgarzik@pobox.com \
--cc=jordan.crouse@amd.com \
--cc=linux-mips@linux-mips.org \
--cc=netdev@vger.kernel.org \
--cc=sshtylyov@ru.mvista.com \
/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).