mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-02 12:47:29 +00:00
EMAC driver: Fix bug: The clock divisor is set to all ones at reset.
Signed-off-by: Kalle Pokki <kalle.pokki@eke.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com> Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6e01d1a4b2
commit
9dc7f30e3b
@ -408,7 +408,7 @@ static int mii_probe(struct net_device *dev)
|
||||
mdc_div = ((sclk / MDC_CLK) / 2) - 1;
|
||||
|
||||
sysctl = bfin_read_EMAC_SYSCTL();
|
||||
sysctl |= SET_MDCDIV(mdc_div);
|
||||
sysctl = (sysctl & ~MDCDIV) | SET_MDCDIV(mdc_div);
|
||||
bfin_write_EMAC_SYSCTL(sysctl);
|
||||
|
||||
/* search for connect PHY device */
|
||||
|
Loading…
Reference in New Issue
Block a user