From: Valentine Barshak <vbarshak@ru.mvista.com>
To: linuxppc-dev@ozlabs.org
Cc: jgarzik@pobox.com, netdev@vger.kernel.org
Subject: [PATCH 1/3] PowerPC: ibm_newemac correct opb_bus_freq value
Date: Fri, 23 Nov 2007 22:10:19 +0300 [thread overview]
Message-ID: <20071123191019.GA25685@ru.mvista.com> (raw)
In-Reply-To: <20071123190747.GA25654@ru.mvista.com>
The EMAC4_MR1_OBCI(freq) macro expects freg in MHz,
while opb_bus_freq is kept in Hz. Correct this.
Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>
---
drivers/net/ibm_newemac/core.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -pruN linux-2.6.orig/drivers/net/ibm_newemac/core.c linux-2.6/drivers/net/ibm_newemac/core.c
--- linux-2.6.orig/drivers/net/ibm_newemac/core.c 2007-11-23 21:27:57.000000000 +0300
+++ linux-2.6/drivers/net/ibm_newemac/core.c 2007-11-23 21:47:53.000000000 +0300
@@ -402,7 +402,7 @@ static u32 __emac_calc_base_mr1(struct e
static u32 __emac4_calc_base_mr1(struct emac_instance *dev, int tx_size, int rx_size)
{
u32 ret = EMAC_MR1_VLE | EMAC_MR1_IST | EMAC4_MR1_TR |
- EMAC4_MR1_OBCI(dev->opb_bus_freq);
+ EMAC4_MR1_OBCI(dev->opb_bus_freq / 1000000);
DBG2(dev, "__emac4_calc_base_mr1" NL);
WARNING: multiple messages have this Message-ID (diff)
From: Valentine Barshak <vbarshak@ru.mvista.com>
To: linuxppc-dev@ozlabs.org
Cc: benh@kernel.crashing.org, netdev@vger.kernel.org,
jgarzik@pobox.com, jwboyer@linux.vnet.ibm.com
Subject: [PATCH 1/3] PowerPC: ibm_newemac correct opb_bus_freq value
Date: Fri, 23 Nov 2007 22:10:19 +0300 [thread overview]
Message-ID: <20071123191019.GA25685@ru.mvista.com> (raw)
In-Reply-To: <20071123190747.GA25654@ru.mvista.com>
The EMAC4_MR1_OBCI(freq) macro expects freg in MHz,
while opb_bus_freq is kept in Hz. Correct this.
Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>
---
drivers/net/ibm_newemac/core.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -pruN linux-2.6.orig/drivers/net/ibm_newemac/core.c linux-2.6/drivers/net/ibm_newemac/core.c
--- linux-2.6.orig/drivers/net/ibm_newemac/core.c 2007-11-23 21:27:57.000000000 +0300
+++ linux-2.6/drivers/net/ibm_newemac/core.c 2007-11-23 21:47:53.000000000 +0300
@@ -402,7 +402,7 @@ static u32 __emac_calc_base_mr1(struct e
static u32 __emac4_calc_base_mr1(struct emac_instance *dev, int tx_size, int rx_size)
{
u32 ret = EMAC_MR1_VLE | EMAC_MR1_IST | EMAC4_MR1_TR |
- EMAC4_MR1_OBCI(dev->opb_bus_freq);
+ EMAC4_MR1_OBCI(dev->opb_bus_freq / 1000000);
DBG2(dev, "__emac4_calc_base_mr1" NL);
next prev parent reply other threads:[~2007-11-23 19:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-23 19:07 [PATCH 0/3] PowerPC: ibm_newemac minor fixes Valentine Barshak
2007-11-23 19:07 ` Valentine Barshak
2007-11-23 19:10 ` Valentine Barshak [this message]
2007-11-23 19:10 ` [PATCH 1/3] PowerPC: ibm_newemac correct opb_bus_freq value Valentine Barshak
2007-11-23 19:11 ` [PATCH 2/3] PowerPC: ibm_newemac tah_ph typo fix Valentine Barshak
2007-11-23 19:11 ` Valentine Barshak
2007-11-23 19:14 ` [PATCH 3/3] PowerPC: ibm_newemac call dev_set_drvdata() before tah_reset() Valentine Barshak
2007-11-24 1:18 ` [PATCH 0/3] PowerPC: ibm_newemac minor fixes Benjamin Herrenschmidt
2007-11-24 1:18 ` Benjamin Herrenschmidt
2007-11-24 1:20 ` Jeff Garzik
2007-11-24 1:20 ` Jeff Garzik
2007-11-24 1:31 ` Benjamin Herrenschmidt
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=20071123191019.GA25685@ru.mvista.com \
--to=vbarshak@ru.mvista.com \
--cc=jgarzik@pobox.com \
--cc=linuxppc-dev@ozlabs.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 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.