diff options
author | David McKay <david.mckay@st.com> | 2012-02-21 22:24:57 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-23 23:14:26 +0100 |
commit | b8e3995af4c7da7707b1710332a31f66e06b74dc (patch) | |
tree | 486ef40d3989e1abcaabe32666dc0615bd90740e /drivers/bcma | |
parent | ipsec: be careful of non existing mac headers (diff) | |
download | linux-b8e3995af4c7da7707b1710332a31f66e06b74dc.tar.xz linux-b8e3995af4c7da7707b1710332a31f66e06b74dc.zip |
netdev/phy/icplus: Correct broken phy_init code
The code for ip1001_config_init() was totally broken if you were not
using RGMII. Instead of returning an error code or zero it actually
returned the value in the IP1001_SPEC_CTRL_STATUS_2 register. It was
also trying to set the IP1001_APS_ON bit , but never actually wrote
back the register.
The error checking was also incorrect in both this function and the
reset function, so this patch fixes that up in a consistent fashion.
Signed-off-by: David McKay <david.mckay@st.com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/bcma')
0 files changed, 0 insertions, 0 deletions