Skip to content

Commit

Permalink
ibm_newemac: Correct opb_bus_freq value
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Valentine Barshak authored and Jeff Garzik committed Dec 7, 2007
1 parent 3d72256 commit 4696c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ibm_newemac/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ static u32 __emac_calc_base_mr1(struct emac_instance *dev, int tx_size, int rx_s
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);

Expand Down

0 comments on commit 4696c3c

Please sign in to comment.