iommu/amd: Make sure dma_ops are set for hotplug devices
authorJoerg Roedel <joro@8bytes.org>
Tue, 26 Mar 2013 21:48:23 +0000 (22:48 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 10 Apr 2013 02:20:04 +0000 (03:20 +0100)
commite8dc286d726ea2238178837ba3572c1bfe462b2d
tree7b729406af602d43e56b58579dfaf0bb39f095ed
parentc39ea1c36ac173cd07643f91e19671de3fe377e2
iommu/amd: Make sure dma_ops are set for hotplug devices

commit c2a2876e863356b092967ea62bebdb4dd663af80 upstream.

There is a bug introduced with commit 27c2127 that causes
devices which are hot unplugged and then hot-replugged to
not have per-device dma_ops set. This causes these devices
to not function correctly. Fixed with this patch.

Reported-by: Andreas Degert <andreas.degert@googlemail.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/iommu/amd_iommu.c