lkml.org 
[lkml]   [2015]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 05/22] iommu: Call remove_device call-back after driver release
    Date
    From: Joerg Roedel <jroedel@suse.de>

    Do not remove the device from the IOMMU while the driver is
    still attached.

    Signed-off-by: Joerg Roedel <jroedel@suse.de>
    ---
    drivers/iommu/iommu.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
    index f0e0a23..d69e0ca 100644
    --- a/drivers/iommu/iommu.c
    +++ b/drivers/iommu/iommu.c
    @@ -779,7 +779,7 @@ static int iommu_bus_notifier(struct notifier_block *nb,
    if (action == BUS_NOTIFY_ADD_DEVICE) {
    if (ops->add_device)
    return ops->add_device(dev);
    - } else if (action == BUS_NOTIFY_DEL_DEVICE) {
    + } else if (action == BUS_NOTIFY_REMOVED_DEVICE) {
    if (ops->remove_device && dev->iommu_group) {
    ops->remove_device(dev);
    return 0;
    --
    1.9.1


    \
     
     \ /
      Last update: 2015-05-28 19:21    [W:4.288 / U:0.448 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site