diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-05-21 15:29:44 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-22 15:43:02 -0400 |
commit | c242a47238fa2a6a54af8a16e62b54e6e031d4bc (patch) | |
tree | 5ac5dadf274ad245349b5c49b6aa13fbb7a91e7b /drivers/of | |
parent | a6cea535e0cb85ece0673ac10f9d81779225564f (diff) | |
download | op-kernel-dev-c242a47238fa2a6a54af8a16e62b54e6e031d4bc.zip op-kernel-dev-c242a47238fa2a6a54af8a16e62b54e6e031d4bc.tar.gz |
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.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/of')
0 files changed, 0 insertions, 0 deletions