Martin Blumenstingl
84ce4d0f9f
net: stmmac: initialize the reset delay array
...
Commit ce4ab73ab0 ("net: stmmac: drop the reset delays from struct
stmmac_mdio_bus_data") moved the reset delay array from struct
stmmac_mdio_bus_data to a stack variable.
The values from the array inside struct stmmac_mdio_bus_data were
previously initialized to 0 because the struct was allocated using
devm_kzalloc(). The array on the stack has to be initialized
explicitly, else we might be reading garbage values.
Initialize all reset delays to 0 to ensure that the values are 0 if the
"snps,reset-delays-us" property is not defined.
This fixes booting at least two boards (MIPS pistachio marduk and ARM
sun8i H2+ Orange Pi Zero). These are hanging during boot when
initializing the stmmac Ethernet controller (as found by Kernel CI).
Both have in common that they don't define the "snps,reset-delays-us"
property.
Fixes: ce4ab73ab0 ("net: stmmac: drop the reset delays from struct stmmac_mdio_bus_data")
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com >
Reported-by: "kernelci.org bot" <bot@kernelci.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2019-06-19 17:40:49 -04:00
..
2019-05-24 17:36:47 +02:00
2019-06-05 17:37:17 +02:00
2019-06-05 17:36:37 +02:00
2019-06-05 17:36:37 +02:00
2019-06-13 03:17:11 -06:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:32 -07:00
2019-06-13 17:34:56 -10:00
2019-06-13 03:17:50 -06:00
2019-06-05 17:37:06 +02:00
2019-05-30 11:26:41 -07:00
2019-05-21 11:28:39 +02:00
2019-06-05 17:37:18 +02:00
2019-06-05 17:37:18 +02:00
2019-06-16 07:22:56 -10:00
2019-05-30 11:26:35 -07:00
2019-05-21 10:50:46 +02:00
2019-06-05 17:37:17 +02:00
2019-06-05 17:37:16 +02:00
2019-06-05 17:37:17 +02:00
2019-06-13 17:34:56 -10:00
2019-05-24 17:27:11 +02:00
2019-06-05 17:36:37 +02:00
2019-05-21 10:50:46 +02:00
2019-06-08 12:52:42 -07:00
2019-06-08 12:52:42 -07:00
2019-06-05 17:37:17 +02:00
2019-05-30 11:29:53 -07:00
2019-06-05 17:36:37 +02:00
2019-05-30 11:26:35 -07:00
2019-06-05 17:37:18 +02:00
2019-05-24 17:36:45 +02:00
2019-06-08 12:52:42 -07:00
2019-05-30 11:26:41 -07:00
2019-05-21 10:50:46 +02:00
2019-06-14 05:48:29 -10:00
2019-06-14 17:55:22 +02:00
2019-06-13 05:59:05 -10:00
2019-06-05 17:37:07 +02:00
2019-06-05 17:37:05 +02:00
2019-06-08 12:52:42 -07:00
2019-05-21 10:50:46 +02:00
2019-06-17 20:20:36 -07:00
2019-05-21 10:50:46 +02:00
2019-06-05 17:37:06 +02:00
2019-06-05 17:37:06 +02:00
2019-06-05 17:37:18 +02:00
2019-06-18 10:41:27 -07:00
2019-06-05 17:37:17 +02:00
2019-05-21 10:50:46 +02:00
2019-06-14 05:49:35 -10:00
2019-06-05 17:37:17 +02:00
2019-06-05 17:37:06 +02:00
2019-06-07 11:00:14 -07:00
2019-06-05 17:37:17 +02:00
2019-06-05 17:37:14 +02:00
2019-06-05 17:37:10 +02:00
2019-06-05 17:36:37 +02:00
2019-06-05 17:37:17 +02:00
2019-06-13 03:09:15 -06:00
2019-06-17 20:20:36 -07:00
2019-06-05 17:37:07 +02:00
2019-05-28 09:53:54 +02:00
2019-05-21 10:50:46 +02:00
2019-06-05 17:37:18 +02:00
2019-06-08 12:52:42 -07:00
2019-06-08 12:52:42 -07:00
2019-06-05 17:37:17 +02:00
2019-06-19 17:40:49 -04:00
2019-06-05 17:37:15 +02:00
2019-06-05 17:36:37 +02:00
2019-05-21 10:50:46 +02:00
2019-06-13 17:34:56 -10:00
2019-06-07 14:04:28 -06:00
2019-06-05 17:36:38 +02:00
2019-06-05 17:37:16 +02:00
2019-05-21 10:50:46 +02:00
2019-06-08 12:52:42 -07:00
2019-06-08 12:50:36 -07:00
2019-06-13 17:34:56 -10:00
2019-06-05 17:30:27 +02:00
2019-06-05 17:36:37 +02:00
2019-06-05 17:37:18 +02:00
2019-06-05 17:37:18 +02:00
2019-06-12 11:49:20 +03:00
2019-05-30 11:25:19 -07:00
2019-06-05 17:37:18 +02:00
2019-06-05 17:37:04 +02:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:39 -07:00
2019-06-15 13:43:06 -07:00
2019-06-05 17:37:10 +02:00
2019-05-30 11:26:37 -07:00
2019-06-07 23:21:39 +02:00
2019-06-10 07:35:55 -10:00
2019-06-05 17:36:37 +02:00
2019-06-05 17:37:15 +02:00
2019-06-05 17:37:17 +02:00
2019-06-13 22:39:32 -07:00
2019-05-24 17:36:45 +02:00
2019-06-17 20:20:36 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-06-05 17:37:14 +02:00
2019-05-21 10:50:46 +02:00
2019-06-10 07:19:56 -10:00
2019-06-05 17:36:37 +02:00
2019-05-21 10:50:46 +02:00
2019-06-07 11:00:14 -07:00
2019-06-17 20:20:36 -07:00
2019-05-21 10:50:46 +02:00
2019-06-05 17:36:37 +02:00
2019-06-05 17:37:15 +02:00
2019-05-21 10:50:46 +02:00
2019-05-24 17:08:18 +02:00
2019-06-05 17:37:06 +02:00
2019-06-12 17:13:02 +02:00
2019-06-05 17:30:29 +02:00
2019-06-06 12:32:37 -06:00
2019-06-17 13:58:02 -07:00
2019-06-05 17:37:18 +02:00
2019-05-21 10:50:46 +02:00
2019-05-27 11:08:22 -04:00
2019-05-21 10:50:46 +02:00
2019-05-24 17:39:00 +02:00
2019-05-30 11:26:32 -07:00
2019-06-08 12:52:42 -07:00
2019-06-05 17:37:18 +02:00
2019-06-11 15:38:34 -10:00
2019-05-21 10:50:46 +02:00