Files
u-boot/drivers
Martin Fuzzey 331fcabe4f net: dm: fec: Fix phy-reset-duration clamping and defaults
The DT binding says:
- phy-reset-duration : Reset duration in milliseconds.  Should present
  only if property "phy-reset-gpios" is available.  Missing the property
  will have the duration be 1 millisecond.  Numbers greater than 1000 are
  invalid and 1 millisecond will be used instead.

However the current code:
 - clamps values greater than 1000ms to 1000ms rather than 1.
 - does not initialize the delay if the property does not exist
   (else clause mismatch)
 - returns an error if phy-reset-gpios is not defined

Fix all this and simplify by using dev_read_u32_default()

Signed-off-by: Martin Fuzzey <martin.fuzzey@flowbird.group>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2018-10-24 14:45:37 -05:00
..
2018-08-03 19:53:10 -04:00
2018-10-09 04:40:27 -06:00
2018-09-29 11:49:35 -06:00
2018-09-18 08:12:21 -06:00
2018-10-03 12:56:13 +02:00
2018-09-18 00:01:18 -06:00
2018-07-19 16:31:38 -04:00
2018-10-07 11:04:01 -04:00
2018-10-09 04:40:27 -06:00
2018-09-28 20:22:36 -04:00