Marek Vasut
8777033722
net: eth-phy: Handle gpio_request_by_name() return value
...
The gpio_request_by_name() returns zero in case of success, however the
conditional return value check in gpio_request_by_name() checks only for
(ret != -ENOENT) and if the condition is true, returns ret outright.
This leads to a situation where successful gpio_request_by_name() return
leads to immediate successful eth_phy_of_to_plat() return as well, and
to skipped parsing of "reset-assert-us" and "reset-deassert-us", so the
PHY driver operates with valid reset GPIO, but with assert/deassert times
set to default, which is 0, instead of the values from DT. This breaks
PHY reset.
Fix this by checking if return value is non-zero and then for this one
single allowed non-zero return value, -ENOENT.
Signed-off-by: Marek Vasut <marex@denx.de >
Cc: Ramon Fried <rfried.dev@gmail.com >
Reviewed-by: Ramon Fried <rfried.dev@gmail.com >
2021-12-02 08:35:37 +02:00
..
2021-09-28 18:50:56 +03:00
2021-11-09 17:18:06 +05:30
2021-02-02 15:33:42 -05:00
2021-09-28 18:50:57 +03:00
2021-09-30 08:08:56 -04:00
2021-09-30 08:08:56 -04:00
2021-09-28 18:50:56 +03:00
2021-09-30 08:08:56 -04:00
2021-08-02 13:32:14 -04:00
2021-09-28 18:50:56 +03:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2020-05-18 21:19:23 -04:00
2021-09-28 18:50:56 +03:00
2018-05-07 09:34:12 -04:00
2020-07-17 09:30:13 -04:00
2010-07-12 00:14:29 -07:00
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:09 -07:00
2020-05-18 21:19:23 -04:00
2018-05-07 09:34:12 -04:00
2021-09-28 18:50:56 +03:00
2018-05-07 09:34:12 -04:00
2020-12-13 16:51:09 -07:00
2021-09-30 09:08:16 -04:00
2021-02-24 16:51:49 -05:00
2021-01-27 10:47:44 -05:00
2020-07-17 09:30:13 -04:00
2018-05-07 09:34:12 -04:00
2020-12-13 16:51:09 -07:00
2021-09-13 18:23:13 -04:00
2020-12-13 16:51:09 -07:00
2021-09-30 09:08:16 -04:00
2008-08-26 23:08:19 -07:00
2020-07-17 09:30:13 -04:00
2009-02-10 00:16:27 +01:00
2021-09-28 18:50:56 +03:00
2021-07-22 22:09:27 +03:00
2021-05-14 17:46:50 +02:00
2021-02-02 15:33:42 -05:00
2021-01-15 17:48:37 +08:00
2021-08-02 13:32:14 -04:00
2021-09-30 08:08:56 -04:00
2021-09-30 09:08:16 -04:00
2021-09-28 18:50:56 +03:00
2021-09-28 18:50:56 +03:00
2018-05-07 09:34:12 -04:00
2021-12-02 08:35:37 +02:00
2020-12-13 16:51:09 -07:00
2021-10-01 21:08:18 -04:00
2021-10-01 21:08:18 -04:00
2021-01-05 12:24:41 -07:00
2021-09-28 18:50:56 +03:00
2021-07-06 05:22:41 +03:00
2020-12-13 08:00:25 -07:00
2021-09-28 18:50:56 +03:00
2020-12-13 16:51:08 -07:00
2021-01-19 09:15:02 -05:00
2020-05-18 21:19:23 -04:00
2021-02-15 10:16:45 -05:00
2018-05-07 09:34:12 -04:00
2021-09-28 18:50:56 +03:00
2018-05-07 09:34:12 -04:00
2021-06-17 09:40:57 +08:00
2020-12-18 20:32:21 -07:00
2021-11-12 14:18:17 -05:00
2021-01-19 09:15:02 -05:00
2021-07-10 18:12:42 +02:00
2020-07-17 09:30:13 -04:00
2018-05-07 09:34:12 -04:00
2021-09-28 18:50:56 +03:00
2021-10-20 10:59:09 +08:00
2021-01-18 11:06:38 +08:00
2021-09-21 10:08:24 +03:00
2021-07-18 21:03:57 -04:00
2021-07-07 19:52:22 -04:00
2021-01-05 12:24:41 -07:00
2021-04-06 11:10:29 +02:00
2021-04-06 11:10:29 +02:00
2020-12-13 08:00:25 -07:00
2020-12-13 08:00:25 -07:00
2021-01-05 12:24:41 -07:00
2021-09-28 18:50:56 +03:00
2021-01-24 21:39:27 +01:00
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:09 -07:00
2020-07-28 22:44:00 -04:00
2021-09-28 18:50:56 +03:00
2018-07-26 14:08:21 -05:00
2021-09-30 08:08:56 -04:00
2021-02-02 15:33:42 -05:00
2021-05-20 13:03:35 +02:00
2020-07-17 09:30:13 -04:00
2021-08-02 13:32:14 -04:00
2020-07-17 09:30:13 -04:00
2020-12-13 16:51:09 -07:00
2018-05-07 09:34:12 -04:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2021-02-02 15:33:42 -05:00
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:09 -07:00
2020-02-05 19:33:46 -07:00
2021-07-15 18:42:05 -04:00
2021-02-02 15:33:42 -05:00
2021-09-28 18:50:56 +03:00
2021-02-15 10:16:24 -05:00
2021-09-28 18:50:56 +03:00
2021-09-30 09:08:16 -04:00
2021-07-22 21:55:05 +03:00
2021-08-30 14:13:28 -04:00
2021-02-02 15:33:42 -05:00
2021-07-23 18:53:45 -04:00
2021-10-11 10:46:44 +01:00
2021-01-05 12:24:40 -07:00
2021-09-28 18:50:56 +03:00
2020-07-17 09:30:13 -04:00
2020-05-18 21:19:23 -04:00
2020-07-17 09:30:13 -04:00
2021-06-28 09:08:20 +02:00
2021-07-26 09:18:45 +02:00
2021-07-26 09:18:45 +02:00
2021-02-02 15:33:42 -05:00
2021-10-21 08:53:55 +02:00