From: Sascha Hauer Date: Wed, 21 May 2014 13:29:44 +0000 (+0200) Subject: net: phy: genphy: Allow overwriting features X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~164^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c242a47238fa2a6a54af8a16e62b54e6e031d4bc;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed