]> git.baikalelectronics.ru Git - kernel.git/commit
phy:icplus:fix Auto Power Saving in ip101a_config_init.
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>
Mon, 2 Apr 2012 00:02:09 +0000 (00:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Apr 2012 22:48:58 +0000 (18:48 -0400)
commitb26101423a23c3b924eb9f1d1200fdb5bd2d0749
tree89d0f63b53d8412bec93f4da8c5edf2ea4066dda
parent35c20fba74c30ede7b3c27e77683b0ac3a9e371e
phy:icplus:fix Auto Power Saving in ip101a_config_init.

This patch fixes Auto Power Saving configuration in ip101a_config_init
which was broken as there is no phy register write followed after
setting IP101A_APS_ON flag.

This patch also fixes the return value of ip101a_config_init.

Without this patch ip101a_config_init returns 2 which is not an error
accroding to IS_ERR and the mac driver will continue accessing 2 as
valid pointer to phy_dev resulting in memory fault.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/icplus.c