Skip to content

Commit

Permalink
iommu/rockchip: Silence attaching and detaching of devices
Browse files Browse the repository at this point in the history
Currently the driver emits a log line every time a device
attaches or detaches - which happens at every unblank/blank
of the drm for example.  The message itself also has no real
value to the average user and is merely useful when
debugging a problem, so make it a dev_dbg instead.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
Heiko Stuebner authored and Joerg Roedel committed May 29, 2015
1 parent d4dd920 commit ec4292d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/iommu/rockchip-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ static int rk_iommu_attach_device(struct iommu_domain *domain,
list_add_tail(&iommu->node, &rk_domain->iommus);
spin_unlock_irqrestore(&rk_domain->iommus_lock, flags);

dev_info(dev, "Attached to iommu domain\n");
dev_dbg(dev, "Attached to iommu domain\n");

rk_iommu_disable_stall(iommu);

Expand Down Expand Up @@ -819,7 +819,7 @@ static void rk_iommu_detach_device(struct iommu_domain *domain,

iommu->domain = NULL;

dev_info(dev, "Detached from iommu domain\n");
dev_dbg(dev, "Detached from iommu domain\n");
}

static struct iommu_domain *rk_iommu_domain_alloc(unsigned type)
Expand Down

0 comments on commit ec4292d

Please sign in to comment.