Commit c0e745d7 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov

drm/msm: drop dbgname argument from msm_ioremap*()

msm_ioremap() functions take additional argument dbgname which is now
unused.
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: default avatarStephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20220105232700.444170-2-dmitry.baryshkov@linaro.orgSigned-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
parent 897f5504
...@@ -1506,7 +1506,7 @@ static void a6xx_llc_slices_init(struct platform_device *pdev, ...@@ -1506,7 +1506,7 @@ static void a6xx_llc_slices_init(struct platform_device *pdev,
if (a6xx_gpu->have_mmu500) if (a6xx_gpu->have_mmu500)
a6xx_gpu->llc_mmio = NULL; a6xx_gpu->llc_mmio = NULL;
else else
a6xx_gpu->llc_mmio = msm_ioremap(pdev, "cx_mem", "gpu_cx"); a6xx_gpu->llc_mmio = msm_ioremap(pdev, "cx_mem");
a6xx_gpu->llc_slice = llcc_slice_getd(LLCC_GPU); a6xx_gpu->llc_slice = llcc_slice_getd(LLCC_GPU);
a6xx_gpu->htw_llc_slice = llcc_slice_getd(LLCC_GPUHTW); a6xx_gpu->htw_llc_slice = llcc_slice_getd(LLCC_GPUHTW);
......
...@@ -1043,7 +1043,7 @@ static int dpu_kms_hw_init(struct msm_kms *kms) ...@@ -1043,7 +1043,7 @@ static int dpu_kms_hw_init(struct msm_kms *kms)
atomic_set(&dpu_kms->bandwidth_ref, 0); atomic_set(&dpu_kms->bandwidth_ref, 0);
dpu_kms->mmio = msm_ioremap(dpu_kms->pdev, "mdp", "mdp"); dpu_kms->mmio = msm_ioremap(dpu_kms->pdev, "mdp");
if (IS_ERR(dpu_kms->mmio)) { if (IS_ERR(dpu_kms->mmio)) {
rc = PTR_ERR(dpu_kms->mmio); rc = PTR_ERR(dpu_kms->mmio);
DPU_ERROR("mdp register memory map failed: %d\n", rc); DPU_ERROR("mdp register memory map failed: %d\n", rc);
...@@ -1052,20 +1052,20 @@ static int dpu_kms_hw_init(struct msm_kms *kms) ...@@ -1052,20 +1052,20 @@ static int dpu_kms_hw_init(struct msm_kms *kms)
} }
DRM_DEBUG("mapped dpu address space @%pK\n", dpu_kms->mmio); DRM_DEBUG("mapped dpu address space @%pK\n", dpu_kms->mmio);
dpu_kms->vbif[VBIF_RT] = msm_ioremap(dpu_kms->pdev, "vbif", "vbif"); dpu_kms->vbif[VBIF_RT] = msm_ioremap(dpu_kms->pdev, "vbif");
if (IS_ERR(dpu_kms->vbif[VBIF_RT])) { if (IS_ERR(dpu_kms->vbif[VBIF_RT])) {
rc = PTR_ERR(dpu_kms->vbif[VBIF_RT]); rc = PTR_ERR(dpu_kms->vbif[VBIF_RT]);
DPU_ERROR("vbif register memory map failed: %d\n", rc); DPU_ERROR("vbif register memory map failed: %d\n", rc);
dpu_kms->vbif[VBIF_RT] = NULL; dpu_kms->vbif[VBIF_RT] = NULL;
goto error; goto error;
} }
dpu_kms->vbif[VBIF_NRT] = msm_ioremap_quiet(dpu_kms->pdev, "vbif_nrt", "vbif_nrt"); dpu_kms->vbif[VBIF_NRT] = msm_ioremap_quiet(dpu_kms->pdev, "vbif_nrt");
if (IS_ERR(dpu_kms->vbif[VBIF_NRT])) { if (IS_ERR(dpu_kms->vbif[VBIF_NRT])) {
dpu_kms->vbif[VBIF_NRT] = NULL; dpu_kms->vbif[VBIF_NRT] = NULL;
DPU_DEBUG("VBIF NRT is not defined"); DPU_DEBUG("VBIF NRT is not defined");
} }
dpu_kms->reg_dma = msm_ioremap_quiet(dpu_kms->pdev, "regdma", "regdma"); dpu_kms->reg_dma = msm_ioremap_quiet(dpu_kms->pdev, "regdma");
if (IS_ERR(dpu_kms->reg_dma)) { if (IS_ERR(dpu_kms->reg_dma)) {
dpu_kms->reg_dma = NULL; dpu_kms->reg_dma = NULL;
DPU_DEBUG("REG_DMA is not defined"); DPU_DEBUG("REG_DMA is not defined");
......
...@@ -222,7 +222,7 @@ int dpu_mdss_init(struct platform_device *pdev) ...@@ -222,7 +222,7 @@ int dpu_mdss_init(struct platform_device *pdev)
if (!dpu_mdss) if (!dpu_mdss)
return -ENOMEM; return -ENOMEM;
dpu_mdss->mmio = msm_ioremap(pdev, "mdss", "mdss"); dpu_mdss->mmio = msm_ioremap(pdev, "mdss");
if (IS_ERR(dpu_mdss->mmio)) if (IS_ERR(dpu_mdss->mmio))
return PTR_ERR(dpu_mdss->mmio); return PTR_ERR(dpu_mdss->mmio);
......
...@@ -418,7 +418,7 @@ struct msm_kms *mdp4_kms_init(struct drm_device *dev) ...@@ -418,7 +418,7 @@ struct msm_kms *mdp4_kms_init(struct drm_device *dev)
mdp4_kms->dev = dev; mdp4_kms->dev = dev;
mdp4_kms->mmio = msm_ioremap(pdev, NULL, "MDP4"); mdp4_kms->mmio = msm_ioremap(pdev, NULL);
if (IS_ERR(mdp4_kms->mmio)) { if (IS_ERR(mdp4_kms->mmio)) {
ret = PTR_ERR(mdp4_kms->mmio); ret = PTR_ERR(mdp4_kms->mmio);
goto fail; goto fail;
......
...@@ -827,7 +827,7 @@ static int mdp5_init(struct platform_device *pdev, struct drm_device *dev) ...@@ -827,7 +827,7 @@ static int mdp5_init(struct platform_device *pdev, struct drm_device *dev)
if (ret) if (ret)
goto fail; goto fail;
mdp5_kms->mmio = msm_ioremap(pdev, "mdp_phys", "MDP5"); mdp5_kms->mmio = msm_ioremap(pdev, "mdp_phys");
if (IS_ERR(mdp5_kms->mmio)) { if (IS_ERR(mdp5_kms->mmio)) {
ret = PTR_ERR(mdp5_kms->mmio); ret = PTR_ERR(mdp5_kms->mmio);
goto fail; goto fail;
......
...@@ -210,13 +210,13 @@ int mdp5_mdss_init(struct platform_device *pdev) ...@@ -210,13 +210,13 @@ int mdp5_mdss_init(struct platform_device *pdev)
mdp5_mdss->base.dev = &pdev->dev; mdp5_mdss->base.dev = &pdev->dev;
mdp5_mdss->mmio = msm_ioremap(pdev, "mdss_phys", "MDSS"); mdp5_mdss->mmio = msm_ioremap(pdev, "mdss_phys");
if (IS_ERR(mdp5_mdss->mmio)) { if (IS_ERR(mdp5_mdss->mmio)) {
ret = PTR_ERR(mdp5_mdss->mmio); ret = PTR_ERR(mdp5_mdss->mmio);
goto fail; goto fail;
} }
mdp5_mdss->vbif = msm_ioremap(pdev, "vbif_phys", "VBIF"); mdp5_mdss->vbif = msm_ioremap(pdev, "vbif_phys");
if (IS_ERR(mdp5_mdss->vbif)) { if (IS_ERR(mdp5_mdss->vbif)) {
ret = PTR_ERR(mdp5_mdss->vbif); ret = PTR_ERR(mdp5_mdss->vbif);
goto fail; goto fail;
......
...@@ -1813,7 +1813,7 @@ int msm_dsi_host_init(struct msm_dsi *msm_dsi) ...@@ -1813,7 +1813,7 @@ int msm_dsi_host_init(struct msm_dsi *msm_dsi)
goto fail; goto fail;
} }
msm_host->ctrl_base = msm_ioremap_size(pdev, "dsi_ctrl", "DSI CTRL", &msm_host->ctrl_size); msm_host->ctrl_base = msm_ioremap_size(pdev, "dsi_ctrl", &msm_host->ctrl_size);
if (IS_ERR(msm_host->ctrl_base)) { if (IS_ERR(msm_host->ctrl_base)) {
pr_err("%s: unable to map Dsi ctrl base\n", __func__); pr_err("%s: unable to map Dsi ctrl base\n", __func__);
ret = PTR_ERR(msm_host->ctrl_base); ret = PTR_ERR(msm_host->ctrl_base);
......
...@@ -709,14 +709,14 @@ static int dsi_phy_driver_probe(struct platform_device *pdev) ...@@ -709,14 +709,14 @@ static int dsi_phy_driver_probe(struct platform_device *pdev)
if (!of_property_read_u32(dev->of_node, "phy-type", &phy_type)) if (!of_property_read_u32(dev->of_node, "phy-type", &phy_type))
phy->cphy_mode = (phy_type == PHY_TYPE_CPHY); phy->cphy_mode = (phy_type == PHY_TYPE_CPHY);
phy->base = msm_ioremap_size(pdev, "dsi_phy", "DSI_PHY", &phy->base_size); phy->base = msm_ioremap_size(pdev, "dsi_phy", &phy->base_size);
if (IS_ERR(phy->base)) { if (IS_ERR(phy->base)) {
DRM_DEV_ERROR(dev, "%s: failed to map phy base\n", __func__); DRM_DEV_ERROR(dev, "%s: failed to map phy base\n", __func__);
ret = -ENOMEM; ret = -ENOMEM;
goto fail; goto fail;
} }
phy->pll_base = msm_ioremap_size(pdev, "dsi_pll", "DSI_PLL", &phy->pll_size); phy->pll_base = msm_ioremap_size(pdev, "dsi_pll", &phy->pll_size);
if (IS_ERR(phy->pll_base)) { if (IS_ERR(phy->pll_base)) {
DRM_DEV_ERROR(&pdev->dev, "%s: failed to map pll base\n", __func__); DRM_DEV_ERROR(&pdev->dev, "%s: failed to map pll base\n", __func__);
ret = -ENOMEM; ret = -ENOMEM;
...@@ -724,7 +724,7 @@ static int dsi_phy_driver_probe(struct platform_device *pdev) ...@@ -724,7 +724,7 @@ static int dsi_phy_driver_probe(struct platform_device *pdev)
} }
if (phy->cfg->has_phy_lane) { if (phy->cfg->has_phy_lane) {
phy->lane_base = msm_ioremap_size(pdev, "dsi_phy_lane", "DSI_PHY_LANE", &phy->lane_size); phy->lane_base = msm_ioremap_size(pdev, "dsi_phy_lane", &phy->lane_size);
if (IS_ERR(phy->lane_base)) { if (IS_ERR(phy->lane_base)) {
DRM_DEV_ERROR(&pdev->dev, "%s: failed to map phy lane base\n", __func__); DRM_DEV_ERROR(&pdev->dev, "%s: failed to map phy lane base\n", __func__);
ret = -ENOMEM; ret = -ENOMEM;
...@@ -733,7 +733,7 @@ static int dsi_phy_driver_probe(struct platform_device *pdev) ...@@ -733,7 +733,7 @@ static int dsi_phy_driver_probe(struct platform_device *pdev)
} }
if (phy->cfg->has_phy_regulator) { if (phy->cfg->has_phy_regulator) {
phy->reg_base = msm_ioremap_size(pdev, "dsi_phy_regulator", "DSI_PHY_REG", &phy->reg_size); phy->reg_base = msm_ioremap_size(pdev, "dsi_phy_regulator", &phy->reg_size);
if (IS_ERR(phy->reg_base)) { if (IS_ERR(phy->reg_base)) {
DRM_DEV_ERROR(&pdev->dev, "%s: failed to map phy regulator base\n", __func__); DRM_DEV_ERROR(&pdev->dev, "%s: failed to map phy regulator base\n", __func__);
ret = -ENOMEM; ret = -ENOMEM;
......
...@@ -133,7 +133,7 @@ static struct hdmi *msm_hdmi_init(struct platform_device *pdev) ...@@ -133,7 +133,7 @@ static struct hdmi *msm_hdmi_init(struct platform_device *pdev)
hdmi->config = config; hdmi->config = config;
spin_lock_init(&hdmi->reg_lock); spin_lock_init(&hdmi->reg_lock);
hdmi->mmio = msm_ioremap(pdev, config->mmio_name, "HDMI"); hdmi->mmio = msm_ioremap(pdev, config->mmio_name);
if (IS_ERR(hdmi->mmio)) { if (IS_ERR(hdmi->mmio)) {
ret = PTR_ERR(hdmi->mmio); ret = PTR_ERR(hdmi->mmio);
goto fail; goto fail;
...@@ -144,8 +144,7 @@ static struct hdmi *msm_hdmi_init(struct platform_device *pdev) ...@@ -144,8 +144,7 @@ static struct hdmi *msm_hdmi_init(struct platform_device *pdev)
config->mmio_name); config->mmio_name);
hdmi->mmio_phy_addr = res->start; hdmi->mmio_phy_addr = res->start;
hdmi->qfprom_mmio = msm_ioremap(pdev, hdmi->qfprom_mmio = msm_ioremap(pdev, config->qfprom_mmio_name);
config->qfprom_mmio_name, "HDMI_QFPROM");
if (IS_ERR(hdmi->qfprom_mmio)) { if (IS_ERR(hdmi->qfprom_mmio)) {
DRM_DEV_INFO(&pdev->dev, "can't find qfprom resource\n"); DRM_DEV_INFO(&pdev->dev, "can't find qfprom resource\n");
hdmi->qfprom_mmio = NULL; hdmi->qfprom_mmio = NULL;
......
...@@ -144,7 +144,7 @@ static int msm_hdmi_phy_probe(struct platform_device *pdev) ...@@ -144,7 +144,7 @@ static int msm_hdmi_phy_probe(struct platform_device *pdev)
if (!phy->cfg) if (!phy->cfg)
return -ENODEV; return -ENODEV;
phy->mmio = msm_ioremap(pdev, "hdmi_phy", "HDMI_PHY"); phy->mmio = msm_ioremap(pdev, "hdmi_phy");
if (IS_ERR(phy->mmio)) { if (IS_ERR(phy->mmio)) {
DRM_DEV_ERROR(dev, "%s: failed to map phy base\n", __func__); DRM_DEV_ERROR(dev, "%s: failed to map phy base\n", __func__);
return -ENOMEM; return -ENOMEM;
......
...@@ -716,19 +716,18 @@ int msm_hdmi_pll_8996_init(struct platform_device *pdev) ...@@ -716,19 +716,18 @@ int msm_hdmi_pll_8996_init(struct platform_device *pdev)
pll->pdev = pdev; pll->pdev = pdev;
pll->mmio_qserdes_com = msm_ioremap(pdev, "hdmi_pll", "HDMI_PLL"); pll->mmio_qserdes_com = msm_ioremap(pdev, "hdmi_pll");
if (IS_ERR(pll->mmio_qserdes_com)) { if (IS_ERR(pll->mmio_qserdes_com)) {
DRM_DEV_ERROR(dev, "failed to map pll base\n"); DRM_DEV_ERROR(dev, "failed to map pll base\n");
return -ENOMEM; return -ENOMEM;
} }
for (i = 0; i < HDMI_NUM_TX_CHANNEL; i++) { for (i = 0; i < HDMI_NUM_TX_CHANNEL; i++) {
char name[32], label[32]; char name[32];
snprintf(name, sizeof(name), "hdmi_tx_l%d", i); snprintf(name, sizeof(name), "hdmi_tx_l%d", i);
snprintf(label, sizeof(label), "HDMI_TX_L%d", i);
pll->mmio_qserdes_tx[i] = msm_ioremap(pdev, name, label); pll->mmio_qserdes_tx[i] = msm_ioremap(pdev, name);
if (IS_ERR(pll->mmio_qserdes_tx[i])) { if (IS_ERR(pll->mmio_qserdes_tx[i])) {
DRM_DEV_ERROR(dev, "failed to map pll base\n"); DRM_DEV_ERROR(dev, "failed to map pll base\n");
return -ENOMEM; return -ENOMEM;
......
...@@ -434,7 +434,7 @@ int msm_hdmi_pll_8960_init(struct platform_device *pdev) ...@@ -434,7 +434,7 @@ int msm_hdmi_pll_8960_init(struct platform_device *pdev)
if (!pll) if (!pll)
return -ENOMEM; return -ENOMEM;
pll->mmio = msm_ioremap(pdev, "hdmi_pll", "HDMI_PLL"); pll->mmio = msm_ioremap(pdev, "hdmi_pll");
if (IS_ERR(pll->mmio)) { if (IS_ERR(pll->mmio)) {
DRM_DEV_ERROR(dev, "failed to map pll base\n"); DRM_DEV_ERROR(dev, "failed to map pll base\n");
return -ENOMEM; return -ENOMEM;
......
...@@ -116,7 +116,7 @@ struct clk *msm_clk_get(struct platform_device *pdev, const char *name) ...@@ -116,7 +116,7 @@ struct clk *msm_clk_get(struct platform_device *pdev, const char *name)
} }
static void __iomem *_msm_ioremap(struct platform_device *pdev, const char *name, static void __iomem *_msm_ioremap(struct platform_device *pdev, const char *name,
const char *dbgname, bool quiet, phys_addr_t *psize) bool quiet, phys_addr_t *psize)
{ {
struct resource *res; struct resource *res;
unsigned long size; unsigned long size;
...@@ -148,22 +148,20 @@ static void __iomem *_msm_ioremap(struct platform_device *pdev, const char *name ...@@ -148,22 +148,20 @@ static void __iomem *_msm_ioremap(struct platform_device *pdev, const char *name
return ptr; return ptr;
} }
void __iomem *msm_ioremap(struct platform_device *pdev, const char *name, void __iomem *msm_ioremap(struct platform_device *pdev, const char *name)
const char *dbgname)
{ {
return _msm_ioremap(pdev, name, dbgname, false, NULL); return _msm_ioremap(pdev, name, false, NULL);
} }
void __iomem *msm_ioremap_quiet(struct platform_device *pdev, const char *name, void __iomem *msm_ioremap_quiet(struct platform_device *pdev, const char *name)
const char *dbgname)
{ {
return _msm_ioremap(pdev, name, dbgname, true, NULL); return _msm_ioremap(pdev, name, true, NULL);
} }
void __iomem *msm_ioremap_size(struct platform_device *pdev, const char *name, void __iomem *msm_ioremap_size(struct platform_device *pdev, const char *name,
const char *dbgname, phys_addr_t *psize) phys_addr_t *psize)
{ {
return _msm_ioremap(pdev, name, dbgname, false, psize); return _msm_ioremap(pdev, name, false, psize);
} }
void msm_writel(u32 data, void __iomem *addr) void msm_writel(u32 data, void __iomem *addr)
......
...@@ -480,12 +480,10 @@ struct clk *msm_clk_get(struct platform_device *pdev, const char *name); ...@@ -480,12 +480,10 @@ struct clk *msm_clk_get(struct platform_device *pdev, const char *name);
struct clk *msm_clk_bulk_get_clock(struct clk_bulk_data *bulk, int count, struct clk *msm_clk_bulk_get_clock(struct clk_bulk_data *bulk, int count,
const char *name); const char *name);
void __iomem *msm_ioremap(struct platform_device *pdev, const char *name, void __iomem *msm_ioremap(struct platform_device *pdev, const char *name);
const char *dbgname);
void __iomem *msm_ioremap_size(struct platform_device *pdev, const char *name, void __iomem *msm_ioremap_size(struct platform_device *pdev, const char *name,
const char *dbgname, phys_addr_t *size); phys_addr_t *size);
void __iomem *msm_ioremap_quiet(struct platform_device *pdev, const char *name, void __iomem *msm_ioremap_quiet(struct platform_device *pdev, const char *name);
const char *dbgname);
void msm_writel(u32 data, void __iomem *addr); void msm_writel(u32 data, void __iomem *addr);
u32 msm_readl(const void __iomem *addr); u32 msm_readl(const void __iomem *addr);
void msm_rmw(void __iomem *addr, u32 mask, u32 or); void msm_rmw(void __iomem *addr, u32 mask, u32 or);
......
...@@ -861,7 +861,7 @@ int msm_gpu_init(struct drm_device *drm, struct platform_device *pdev, ...@@ -861,7 +861,7 @@ int msm_gpu_init(struct drm_device *drm, struct platform_device *pdev,
/* Map registers: */ /* Map registers: */
gpu->mmio = msm_ioremap(pdev, config->ioname, name); gpu->mmio = msm_ioremap(pdev, config->ioname);
if (IS_ERR(gpu->mmio)) { if (IS_ERR(gpu->mmio)) {
ret = PTR_ERR(gpu->mmio); ret = PTR_ERR(gpu->mmio);
goto fail; goto fail;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment