* [PATCH 0/3] PowerPC: ibm_newemac minor fixes.
@ 2007-11-23 19:07 Valentine Barshak
2007-11-23 19:10 ` [PATCH 1/3] PowerPC: ibm_newemac correct opb_bus_freq value Valentine Barshak
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Valentine Barshak @ 2007-11-23 19:07 UTC (permalink / raw)
To: linuxppc-dev; +Cc: jgarzik, netdev
These patches have some minor ibm_newemac fixes.
Thanks,
Valentine.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/3] PowerPC: ibm_newemac correct opb_bus_freq value
2007-11-23 19:07 [PATCH 0/3] PowerPC: ibm_newemac minor fixes Valentine Barshak
@ 2007-11-23 19:10 ` Valentine Barshak
2007-11-23 19:11 ` [PATCH 2/3] PowerPC: ibm_newemac tah_ph typo fix Valentine Barshak
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Valentine Barshak @ 2007-11-23 19:10 UTC (permalink / raw)
To: linuxppc-dev; +Cc: jgarzik, netdev
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);
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/3] PowerPC: ibm_newemac tah_ph typo fix
2007-11-23 19:07 [PATCH 0/3] PowerPC: ibm_newemac minor fixes Valentine Barshak
2007-11-23 19:10 ` [PATCH 1/3] PowerPC: ibm_newemac correct opb_bus_freq value 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
3 siblings, 0 replies; 7+ messages in thread
From: Valentine Barshak @ 2007-11-23 19:11 UTC (permalink / raw)
To: linuxppc-dev; +Cc: jgarzik, netdev
This patch fixes a typo in ibm_newemac/core.c
(tah_port should be used instead of tah_ph)
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:36:00.000000000 +0300
@@ -2427,7 +2427,7 @@ static int __devinit emac_init_config(st
if (emac_read_uint_prop(np, "tah-device", &dev->tah_ph, 0))
dev->tah_ph = 0;
if (emac_read_uint_prop(np, "tah-channel", &dev->tah_port, 0))
- dev->tah_ph = 0;
+ dev->tah_port = 0;
if (emac_read_uint_prop(np, "mdio-device", &dev->mdio_ph, 0))
dev->mdio_ph = 0;
if (emac_read_uint_prop(np, "zmii-device", &dev->zmii_ph, 0))
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 3/3] PowerPC: ibm_newemac call dev_set_drvdata() before tah_reset()
2007-11-23 19:07 [PATCH 0/3] PowerPC: ibm_newemac minor fixes Valentine Barshak
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:14 ` Valentine Barshak
2007-11-24 1:18 ` [PATCH 0/3] PowerPC: ibm_newemac minor fixes Benjamin Herrenschmidt
3 siblings, 0 replies; 7+ messages in thread
From: Valentine Barshak @ 2007-11-23 19:14 UTC (permalink / raw)
To: linuxppc-dev; +Cc: jgarzik, netdev
The patch moves dev_set_drvdata(&ofdev->dev, dev) up before tah_reset(ofdev)
is called to avoid a NULL pointer dereference, since tah_reset uses drvdata.
Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>
---
drivers/net/ibm_newemac/tah.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -pruN linux-2.6.orig/drivers/net/ibm_newemac/tah.c linux-2.6/drivers/net/ibm_newemac/tah.c
--- linux-2.6.orig/drivers/net/ibm_newemac/tah.c 2007-11-23 21:27:57.000000000 +0300
+++ linux-2.6/drivers/net/ibm_newemac/tah.c 2007-11-23 21:35:12.000000000 +0300
@@ -116,13 +116,14 @@ static int __devinit tah_probe(struct of
goto err_free;
}
+ dev_set_drvdata(&ofdev->dev, dev);
+
/* Initialize TAH and enable IPv4 checksum verification, no TSO yet */
tah_reset(ofdev);
printk(KERN_INFO
"TAH %s initialized\n", ofdev->node->full_name);
wmb();
- dev_set_drvdata(&ofdev->dev, dev);
return 0;
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/3] PowerPC: ibm_newemac minor fixes.
2007-11-23 19:07 [PATCH 0/3] PowerPC: ibm_newemac minor fixes Valentine Barshak
` (2 preceding siblings ...)
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 ` Benjamin Herrenschmidt
2007-11-24 1:20 ` Jeff Garzik
3 siblings, 1 reply; 7+ messages in thread
From: Benjamin Herrenschmidt @ 2007-11-24 1:18 UTC (permalink / raw)
To: Valentine Barshak; +Cc: linuxppc-dev, jgarzik, netdev
On Fri, 2007-11-23 at 22:07 +0300, Valentine Barshak wrote:
> These patches have some minor ibm_newemac fixes.
All 3 patches look good, thanks. I'll sign them off and forward them
to Jeff in my next batch.
Jeff, did you already pick up my previous drop of EMAC patches from last
week for .25 or not ? If not, I will resend the whole lot along with
Valentine's patches sometime next week.
Cheers,
Ben.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/3] PowerPC: ibm_newemac minor fixes.
2007-11-24 1:18 ` [PATCH 0/3] PowerPC: ibm_newemac minor fixes Benjamin Herrenschmidt
@ 2007-11-24 1:20 ` Jeff Garzik
2007-11-24 1:31 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 7+ messages in thread
From: Jeff Garzik @ 2007-11-24 1:20 UTC (permalink / raw)
To: benh; +Cc: linuxppc-dev, netdev
Benjamin Herrenschmidt wrote:
> On Fri, 2007-11-23 at 22:07 +0300, Valentine Barshak wrote:
>
>> These patches have some minor ibm_newemac fixes.
>
> All 3 patches look good, thanks. I'll sign them off and forward them
> to Jeff in my next batch.
>
> Jeff, did you already pick up my previous drop of EMAC patches from last
> week for .25 or not ? If not, I will resend the whole lot along with
> Valentine's patches sometime next week.
Just got back from Thanksgiving holiday, and am about to go through the
lot that's sitting in my inbox.
Just let me know what you would prefer me to do, starting from today.
Jeff
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/3] PowerPC: ibm_newemac minor fixes.
2007-11-24 1:20 ` Jeff Garzik
@ 2007-11-24 1:31 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 7+ messages in thread
From: Benjamin Herrenschmidt @ 2007-11-24 1:31 UTC (permalink / raw)
To: Jeff Garzik; +Cc: linuxppc-dev, netdev
On Fri, 2007-11-23 at 20:20 -0500, Jeff Garzik wrote:
> Benjamin Herrenschmidt wrote:
> > On Fri, 2007-11-23 at 22:07 +0300, Valentine Barshak wrote:
> >
> >> These patches have some minor ibm_newemac fixes.
> >
> > All 3 patches look good, thanks. I'll sign them off and forward them
> > to Jeff in my next batch.
> >
> > Jeff, did you already pick up my previous drop of EMAC patches from last
> > week for .25 or not ? If not, I will resend the whole lot along with
> > Valentine's patches sometime next week.
>
> Just got back from Thanksgiving holiday, and am about to go through the
> lot that's sitting in my inbox.
>
> Just let me know what you would prefer me to do, starting from today.
Then wait for my next batch and ignore previous patches, except the
one titled "ibm_newemac: Fix possible lockup on close" which is a 2.6.24
bug fix.
Thanks !
Cheers,
Ben.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-11-24 1:31 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-23 19:07 [PATCH 0/3] PowerPC: ibm_newemac minor fixes Valentine Barshak
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: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:20 ` Jeff Garzik
2007-11-24 1:31 ` Benjamin Herrenschmidt
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).