MLK-17475-05 net: phy: tja110x: add lock to protect .suspend/.resume()
authorFugang Duan <fugang.duan@nxp.com>
Tue, 30 Jan 2018 08:22:56 +0000 (16:22 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:54:10 +0000 (14:54 -0500)
commit167e1c7c1c667e6190791425be467965cbd4bef3
tree401ba697e6cb476fc0d674f40d9b69a492b8dccd
parent6676704b1cfa13f53876f8348f46d6e461a7dd67
MLK-17475-05 net: phy: tja110x: add lock to protect .suspend/.resume()

Add phydev->lock to protect phy register access in .suspend()/.resume().

Reviewed-by: Pandy Gao <pandy.gao@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
drivers/net/phy/tja110x.c