aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-topology.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-01-30 19:40:18 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2008-01-30 19:40:18 -0500
commit94ed294c20ef07fffa40817c68155fba35dd67f1 (patch)
tree672cb304bd6440e681daeff2d04f753dc43dd2e4 /drivers/firewire/fw-topology.c
parent5bdeae46be6dfe9efa44a548bd622af325f4bdb4 (diff)
parent384170da9384b7bb3650c0c9b9d17ba0f7bde4ff (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6: (26 commits) firewire: fw-sbp2: Use sbp2 device-provided mgt orb timeout for logins firewire: fw-sbp2: increase login orb reply timeout, fix "failed to login" firewire: replace subtraction with bitwise and firewire: fw-core: react on bus resets while the config ROM is being fetched firewire: enforce access order between generation and node ID, fix "giving up on config rom" firewire: fw-cdev: use device generation, not card generation firewire: fw-sbp2: use device generation, not card generation firewire: fw-sbp2: try to increase reconnect_hold (speed up reconnection) firewire: fw-sbp2: skip unnecessary logout firewire vs. ieee1394: clarify MAINTAINERS firewire: fw-ohci: Dynamically allocate buffers for DMA descriptors firewire: fw-ohci: CycleTooLong interrupt management firewire: Fix extraction of source node id firewire: fw-ohci: Bug fixes for packet-per-buffer support firewire: fw-ohci: Fix for dualbuffer three-or-more buffers firewire: fw-sbp2: remove unused misleading macro firewire: fw-sbp2: prepare for s/g chaining firewire: fw-sbp2: refactor workq and kref handling ieee1394: ohci1394: don't schedule IT tasklets on IR events ieee1394: sbp2: raise default transfer size limit ...
Diffstat (limited to 'drivers/firewire/fw-topology.c')
-rw-r--r--drivers/firewire/fw-topology.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/firewire/fw-topology.c b/drivers/firewire/fw-topology.c
index 0fc9b000e99d..172c1867e9aa 100644
--- a/drivers/firewire/fw-topology.c
+++ b/drivers/firewire/fw-topology.c
@@ -21,6 +21,7 @@
21#include <linux/module.h> 21#include <linux/module.h>
22#include <linux/wait.h> 22#include <linux/wait.h>
23#include <linux/errno.h> 23#include <linux/errno.h>
24#include <asm/system.h>
24#include "fw-transaction.h" 25#include "fw-transaction.h"
25#include "fw-topology.h" 26#include "fw-topology.h"
26 27
@@ -518,6 +519,11 @@ fw_core_handle_bus_reset(struct fw_card *card,
518 card->bm_retries = 0; 519 card->bm_retries = 0;
519 520
520 card->node_id = node_id; 521 card->node_id = node_id;
522 /*
523 * Update node_id before generation to prevent anybody from using
524 * a stale node_id together with a current generation.
525 */
526 smp_wmb();
521 card->generation = generation; 527 card->generation = generation;
522 card->reset_jiffies = jiffies; 528 card->reset_jiffies = jiffies;
523 schedule_delayed_work(&card->work, 0); 529 schedule_delayed_work(&card->work, 0);