net: phy: introduce a quirk PHY_FLAG_BROKEN_RESET
authorShaohui Xie <Shaohui.Xie@nxp.com>
Thu, 28 Jan 2016 07:55:46 +0000 (15:55 +0800)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 28 Jan 2016 19:20:30 +0000 (13:20 -0600)
commitddcd1f3084d88cc92403ed09f77f42fc6f2c4e0e
tree2143f807148f8261d9b7d1dd814b6f295cd3b029
parentff7bd212cb8a0a80a113e25af7616ef0a24abdfc
net: phy: introduce a quirk PHY_FLAG_BROKEN_RESET

Current driver always performs a phy soft reset when connecting the phy
device, but soft reset is not always supported by a phy device, so
introduce a quirk PHY_FLAG_BROKEN_RESET to let such a phy device to skip
soft reset. This commit uses 'flags' of phy device structure to store the
quirk.

Signed-off-by: Shaohui Xie <Shaohui.Xie@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/phy.c
include/phy.h