net: phy: fixed: return an error for Clause 45 over 22 reads
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 23 Aug 2014 01:55:42 +0000 (18:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Aug 2014 18:39:09 +0000 (11:39 -0700)
commita2dbba7674468ad03aa6cf4378ed0965f453e034
treecb80f62a71331df216ddeaf3f9a0dda6a5c3f949
parent9df54ddab9aa91d53b672b1c0efbeb5d07919e66
net: phy: fixed: return an error for Clause 45 over 22 reads

The fixed PHY driver does not properly emulate Clause 45 over Clause 22
MDIO reads, and as such, will return bogus values when we access such
registers.

Return an error when accessing these registers in order to prevent
advertising bogus capabilities such as EEE support and such.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/fixed.c