Reset AL states on link down.
--- a/TODO Thu Feb 25 15:38:14 2010 +0100
+++ b/TODO Fri Feb 26 18:22:02 2010 +0100
@@ -27,7 +27,6 @@
* Output warning when send_ext() is called in illegal context.
* Output hexadecimal values in 'ethercat xml'.
* Add native drivers from 2.6.24 up to 2.6.31.
-* Reset al_states on link down.
* Implement indent in 'ethercat ma'
* Add master index to log messages.
* Implement 0xXXXX:YY format for specifying SDOs.
--- a/master/fsm_master.c Thu Feb 25 15:38:14 2010 +0100
+++ b/master/fsm_master.c Fri Feb 26 18:22:02 2010 +0100
@@ -208,6 +208,7 @@
ec_master_clear_eoe_handlers(master);
#endif
ec_master_clear_slaves(master);
+ fsm->slave_states = 0x00;
}
fsm->link_state = master->main_device.link_state;