]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit11463894b52a48ded8ec3b2425f375ca715c0520
tree57d149636ce96e4b36696adb114f8ed0080dd34d
parent4873d513488fe9bee2a39fc8e8d26c4b62c62dfa
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