summaryrefslogtreecommitdiff
path: root/include/phy.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-01-13 16:59:32 +0300
committerJoe Hershberger <joe.hershberger@ni.com>2016-01-28 12:32:41 -0600
commit44bc317487386117a9a08d50be4cb105d512224c (patch)
tree6f175b0c93edda1c1bde7c0a8ca6ffc56c4bcbd1 /include/phy.h
parentbbdcaff12ad8c32100b5e1fdf9b9ae6931c3ba0d (diff)
net: phy: genphy: Allow overwriting features
of_set_phy_supported allows overwiting hardware capabilities of a phy with values from the devicetree. This does not work with the genphy driver though because the genphys config_init function will overwrite all values adjusted by of_set_phy_supported. Fix this by initialising the genphy features in the phy_driver struct and in config_init just limit the features to the ones the hardware can actually support. The resulting features are a subset of the devicetree specified features and the hardware features. This is a copy of the patch from Linux kernel, see http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c242a47238fa2a6a54af8a16e62b54e6e031d4bc Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/phy.h')
0 files changed, 0 insertions, 0 deletions