net: phy: dp83867: Validate FIFO depth property
authorTrent Piepho <tpiepho@impinj.com>
Wed, 22 May 2019 18:43:26 +0000 (18:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2019 00:40:18 +0000 (17:40 -0700)
commitf8bbf417e58b9933b49f1f7fa28ce85ad5d32a31
tree57d149636ce96e4b36696adb114f8ed0080dd34d
parent27708eb5481b7b00540028d0ac2b56dfa95a2df7
net: phy: dp83867: Validate FIFO depth property

Insure property is in valid range and fail when reading DT if it is not.
Also add error message for existing failure if required property is not
present.

Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Trent Piepho <tpiepho@impinj.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83867.c