File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
drivers/net/ethernet/mediatek Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -2071,13 +2071,21 @@ static int airoha_hw_init(struct platform_device *pdev,
2071
2071
int err , i ;
2072
2072
2073
2073
/* disable xsi */
2074
- reset_control_bulk_assert (ARRAY_SIZE (eth -> xsi_rsts ), eth -> xsi_rsts );
2074
+ err = reset_control_bulk_assert (ARRAY_SIZE (eth -> xsi_rsts ),
2075
+ eth -> xsi_rsts );
2076
+ if (err )
2077
+ return err ;
2078
+
2079
+ err = reset_control_bulk_assert (ARRAY_SIZE (eth -> rsts ), eth -> rsts );
2080
+ if (err )
2081
+ return err ;
2075
2082
2076
- reset_control_bulk_assert (ARRAY_SIZE (eth -> rsts ), eth -> rsts );
2077
- msleep (20 );
2078
- reset_control_bulk_deassert (ARRAY_SIZE (eth -> rsts ), eth -> rsts );
2079
2083
msleep (20 );
2084
+ err = reset_control_bulk_deassert (ARRAY_SIZE (eth -> rsts ), eth -> rsts );
2085
+ if (err )
2086
+ return err ;
2080
2087
2088
+ msleep (20 );
2081
2089
err = airoha_fe_init (eth );
2082
2090
if (err )
2083
2091
return err ;
You can’t perform that action at this time.
0 commit comments