iommu/rockchip: fix rockchip private interface dependence
Fixes: fae620b2b6 ("iommu/rockchip: add irq mask cb")
Change-Id: I9783a64d866d7919ade89a48e004b9c51b38dde6
Signed-off-by: Simon Xue <xxm@rock-chips.com>
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <linux/nospec.h>
|
||||
#include <linux/workqueue.h>
|
||||
#include <soc/rockchip/pm_domains.h>
|
||||
#include <soc/rockchip/rockchip_iommu.h>
|
||||
#include <soc/rockchip/rockchip_ipa.h>
|
||||
#include <soc/rockchip/rockchip_opp_select.h>
|
||||
#include <soc/rockchip/rockchip_system_monitor.h>
|
||||
|
||||
@@ -588,8 +588,6 @@ static inline void iommu_iotlb_gather_add_page(struct iommu_domain *domain,
|
||||
extern struct iommu_group *pci_device_group(struct device *dev);
|
||||
/* Generic device grouping function */
|
||||
extern struct iommu_group *generic_device_group(struct device *dev);
|
||||
extern void rk_iommu_mask_irq(struct device *dev);
|
||||
extern void rk_iommu_unmask_irq(struct device *dev);
|
||||
/* FSL-MC device grouping function */
|
||||
struct iommu_group *fsl_mc_device_group(struct device *dev);
|
||||
|
||||
@@ -1098,14 +1096,6 @@ static inline struct iommu_fwspec *dev_iommu_fwspec_get(struct device *dev)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline void rk_iommu_mask_irq(struct device *dev)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void rk_iommu_unmask_irq(struct device *dev)
|
||||
{
|
||||
}
|
||||
#endif /* CONFIG_IOMMU_API */
|
||||
|
||||
/**
|
||||
|
||||
@@ -13,6 +13,8 @@ int rockchip_iommu_disable(struct device *dev);
|
||||
int rockchip_pagefault_done(struct device *master_dev);
|
||||
void __iomem *rockchip_get_iommu_base(struct device *master_dev, int idx);
|
||||
bool rockchip_iommu_is_enabled(struct device *dev);
|
||||
void rk_iommu_mask_irq(struct device *dev);
|
||||
void rk_iommu_unmask_irq(struct device *dev);
|
||||
#else
|
||||
static inline int rockchip_iommu_enable(struct device *dev)
|
||||
{
|
||||
@@ -34,6 +36,12 @@ static inline bool rockchip_iommu_is_enabled(struct device *dev)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
static inline void rk_iommu_mask_irq(struct device *dev)
|
||||
{
|
||||
}
|
||||
static inline void rk_iommu_unmask_irq(struct device *dev)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user