]> 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)
commit83628601cfcf3f3bdc40339909cb760fb7f0890b
tree57d149636ce96e4b36696adb114f8ed0080dd34d
parent88f51445148233ea9ecce1ee005a58e8a8bffdd0
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