[PATCH] skge: chip clock rate typo
Okay, Fix both typo's in one patch .The impact is that the incorrect value was being computed for blinking LED and interrupt moderation values. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
9a71db721a
commit
187ff3b857
1 changed files with 1 additions and 4 deletions
|
@ -516,10 +516,7 @@ static int skge_set_pauseparam(struct net_device *dev,
|
||||||
/* Chip internal frequency for clock calculations */
|
/* Chip internal frequency for clock calculations */
|
||||||
static inline u32 hwkhz(const struct skge_hw *hw)
|
static inline u32 hwkhz(const struct skge_hw *hw)
|
||||||
{
|
{
|
||||||
if (hw->chip_id == CHIP_ID_GENESIS)
|
return (hw->chip_id == CHIP_ID_GENESIS) ? 53125 : 78125;
|
||||||
return 53215; /* or: 53.125 MHz */
|
|
||||||
else
|
|
||||||
return 78215; /* or: 78.125 MHz */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Chip HZ to microseconds */
|
/* Chip HZ to microseconds */
|
||||||
|
|
Reference in a new issue