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,
20712071 int err , i ;
20722072
20732073 /* 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 ;
20752082
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 );
20792083 msleep (20 );
2084+ err = reset_control_bulk_deassert (ARRAY_SIZE (eth -> rsts ), eth -> rsts );
2085+ if (err )
2086+ return err ;
20802087
2088+ msleep (20 );
20812089 err = airoha_fe_init (eth );
20822090 if (err )
20832091 return err ;
You can’t perform that action at this time.
0 commit comments