|
@@ -523,7 +523,7 @@ fw_core_handle_bus_reset(struct fw_card *card,
|
|
* previously processed one, we cannot reliably compare the
|
|
* previously processed one, we cannot reliably compare the
|
|
* old and new topologies.
|
|
* old and new topologies.
|
|
*/
|
|
*/
|
|
- if ((generation & 0xff) != ((card->generation + 1) & 0xff) &&
|
|
|
|
|
|
+ if (!is_next_generation(generation, card->generation) &&
|
|
card->local_node != NULL) {
|
|
card->local_node != NULL) {
|
|
fw_notify("skipped bus generations, destroying all nodes\n");
|
|
fw_notify("skipped bus generations, destroying all nodes\n");
|
|
fw_destroy_nodes(card);
|
|
fw_destroy_nodes(card);
|