]> Git Repo - J-u-boot.git/commit - drivers/net/phy/phy.c
net: phy: genphy: Allow overwriting features
authorSascha Hauer <[email protected]>
Wed, 13 Jan 2016 13:59:32 +0000 (16:59 +0300)
committerJoe Hershberger <[email protected]>
Thu, 28 Jan 2016 18:32:41 +0000 (12:32 -0600)
commit44bc317487386117a9a08d50be4cb105d512224c
tree6f175b0c93edda1c1bde7c0a8ca6ffc56c4bcbd1
parentbbdcaff12ad8c32100b5e1fdf9b9ae6931c3ba0d
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 <[email protected]>
Signed-off-by: Alexey Brodkin <[email protected]>
Cc: Joe Hershberger <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
drivers/net/phy/phy.c
This page took 0.036269 seconds and 4 git commands to generate.