]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Add phy_interface_is_rgmii helper
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 26 May 2015 19:19:58 +0000 (12:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2015 04:27:35 +0000 (00:27 -0400)
commit2bc1a34598217bb3c9a480101f8bf6c771ab493e
treed420ecefce0c1d389b40146d1abbd641b6f15a3c
parent28a5a394efa7e3d18b7bac095ae29f4c3fcba893
net: phy: Add phy_interface_is_rgmii helper

RGMII interfaces come in 4 different flavors that the PHY library needs
to care about: regular RGMII (no delays), RGMII with either RX or TX
delay, and both. In order to avoid errors of checking only for one type
of RGMII interface and miss the 3 others, introduce a convenience
function which tests for all values.

Suggested-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/phy.h