]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:25:49 +0000 (09:25 -0700)
commite131628113867748a05c9080b9aaf67740d24057
treeb03cdfdd61aa6003032cdf5ca0042e1a2eef2a99
parent964909a72f6446115ce437637b0756b985df68e4
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/amd_iommu.c