]> bbs.cooldavid.org Git - net-next-2.6.git/commit
firewire: fw-cdev: use device generation, not card generation
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 24 Jan 2008 00:53:51 +0000 (01:53 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 30 Jan 2008 21:22:27 +0000 (22:22 +0100)
commitcf5a56ac8083dd04ffe8b9b2ec7895e9bcff44bc
tree7b6afe0a4d4236a6c22acf5b724979c30d158090
parent5a8a1bcd15dfb9f177f3605fe6b9ba2bef2bf55a
firewire: fw-cdev: use device generation, not card generation

We have to use the fw_device.generation here, not the fw_card.generation,
because the generation must never be newer than the node ID when we emit
a transaction.  This cannot be guaranteed with fw_card.generation.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Verified in concert with subsequent memory barriers patch to fix 'giving
up on config rom' issues on multiple system and drive combinations that
were previously affected.

Signed-off-by: Jarod Wilson <jwilson@redhat.com>
drivers/firewire/fw-cdev.c