summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorMian Yousaf Kaukab <ykaukab@suse.de>2021-04-14 12:33:58 +0200
committerPriyanka Jain <priyanka.jain@nxp.com>2021-06-16 18:14:08 +0530
commit864c3dbc0affea081264ff31c229232fbd45945a (patch)
treeb0a5522830c1f5a984618548e7398723567682d1 /include/net
parent2bf4658b8c5e5f4f43dc1888fe39ea61e6eeba64 (diff)
downloadu-boot-864c3dbc0affea081264ff31c229232fbd45945a.tar.gz
u-boot-864c3dbc0affea081264ff31c229232fbd45945a.tar.bz2
u-boot-864c3dbc0affea081264ff31c229232fbd45945a.zip
ls1012a: net: pfe: remove pfe stop from bootcmd
When using bootefi to boot a EFI binary, u-boot is supposed to provide networking service for EFI application. Currently, 'pfe stop' command is called from bootcmd before running bootefi. As a result network stops working for EFI applications and console is flooded with "Rx pkt not on expected port" messages. Implement board_quiesce_devices() for ls1012a boards and call pfe_command_stop() from it instead of calling 'pfe stop' from *_bootcmd and bootcmd. Tested-by: Anji Jagarlmudi <anji.jagarlmudi@nxp.com> Signed-off-by: Mian Yousaf Kaukab <ykaukab@suse.de> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> [Fixed checkpatch space error] Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/pfe_eth/pfe/pfe_hw.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/pfe_eth/pfe/pfe_hw.h b/include/net/pfe_eth/pfe/pfe_hw.h
index c69fc69130..71e4115afa 100644
--- a/include/net/pfe_eth/pfe/pfe_hw.h
+++ b/include/net/pfe_eth/pfe/pfe_hw.h
@@ -160,4 +160,10 @@ void hif_rx_enable(void);
void hif_rx_disable(void);
void hif_rx_desc_disable(void);
+#ifdef PFE_RESET_WA
+void pfe_command_stop(int argc, char *const argv[]);
+#else
+static void pfe_command_stop(int argc, char *const argv[]) {}
+#endif
+
#endif /* _PFE_H_ */