diff options
author | jpinto <Joao.Pinto@synopsys.com> | 2016-12-23 13:15:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-23 19:46:37 +0300 |
commit | 567be786597ca24b13906a552ad2159316c6fe7d (patch) | |
tree | 8ca503b742460caa59d0ccc744a8181f4328533f /drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c | |
parent | 2e3d5fa44f0f6e71ada2c4ed212ac23ca7ff0064 (diff) | |
download | linux-567be786597ca24b13906a552ad2159316c6fe7d.tar.xz |
stmmac: CSR clock configuration fix
When testing stmmac with my QoS reference design I checked a problem in the
CSR clock configuration that was impossibilitating the phy discovery, since
every read operation returned 0x0000ffff. This patch fixes the issue.
Signed-off-by: Joao Pinto <jpinto@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c index b21d03fe4f43..be3c91c7f211 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c @@ -539,7 +539,7 @@ struct mac_device_info *dwmac1000_setup(void __iomem *ioaddr, int mcbins, mac->mii.reg_shift = 6; mac->mii.reg_mask = 0x000007C0; mac->mii.clk_csr_shift = 2; - mac->mii.clk_csr_mask = 0xF; + mac->mii.clk_csr_mask = GENMASK(5, 2); /* Get and dump the chip ID */ *synopsys_id = stmmac_get_synopsys_id(hwid); |