net: phy: Add support for polling cable test
authorAndrew Lunn <andrew@lunn.ch>
Sun, 10 May 2020 19:12:32 +0000 (21:12 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sun, 10 May 2020 19:28:41 +0000 (12:28 -0700)
commit97c22438963a7484c05c59ab6654e30f0a3e9288
tree1a3c5517a00a8f104f207d9eb7d13f534a83beb4
parenta68a813836e12b15715d9101309899123c250302
net: phy: Add support for polling cable test

Some PHYs are not capable of generating interrupts when a cable test
finished. They do however support interrupts for normal operations,
like link up/down. As such, the PHY state machine would normally not
poll the PHY.

Add support for indicating the PHY state machine must poll the PHY
when performing a cable test.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phy.c
include/linux/phy.h