* drivers/gpu/drm/omapdrm/dss/dsi.c:4933:2-9: line 4933 is redundant because platform_get_irq() already prints an error
@ 2026-11-26 0:26 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-26 0:26 UTC (permalink / raw)
To: Andreas Kemnade; +Cc: oe-kbuild-all, linux-kernel, Luca Ceresoli
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ebb7a8dc1e74c705daffe11c2faf38ec2628f838
commit: af8296450df7678c94ae03054887639e3d4d35de drm/omap: dsi: print errors with device prefix
date: 9 weeks ago
config: powerpc-randconfig-r2104-20261125 (https://download.01.org/0day-ci/archive/20261126/20261126012255.5iEGIm0r-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 8.5.0
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: af8296450df7 ("drm/omap: dsi: print errors with device prefix")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261126012255.5iEGIm0r-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/omapdrm/dss/dsi.c:4933:2-9: line 4933 is redundant because platform_get_irq() already prints an error
vim +4933 drivers/gpu/drm/omapdrm/dss/dsi.c
4917
4918 dsi_mem = platform_get_resource_byname(pdev, IORESOURCE_MEM, "proto");
4919 dsi->proto_base = devm_ioremap_resource(dev, dsi_mem);
4920 if (IS_ERR(dsi->proto_base))
4921 return PTR_ERR(dsi->proto_base);
4922
4923 dsi->phy_base = devm_platform_ioremap_resource_byname(pdev, "phy");
4924 if (IS_ERR(dsi->phy_base))
4925 return PTR_ERR(dsi->phy_base);
4926
4927 dsi->pll_base = devm_platform_ioremap_resource_byname(pdev, "pll");
4928 if (IS_ERR(dsi->pll_base))
4929 return PTR_ERR(dsi->pll_base);
4930
4931 dsi->irq = platform_get_irq(pdev, 0);
4932 if (dsi->irq < 0) {
> 4933 dev_err(dsi->dev, "platform_get_irq failed\n");
4934 return -ENODEV;
4935 }
4936
4937 r = devm_request_irq(dev, dsi->irq, omap_dsi_irq_handler,
4938 IRQF_SHARED, dev_name(dev), dsi);
4939 if (r < 0) {
4940 dev_err(dsi->dev, "request_irq failed\n");
4941 return r;
4942 }
4943
4944 dsi->vdds_dsi_reg = devm_regulator_get(dev, "vdd");
4945 if (IS_ERR(dsi->vdds_dsi_reg)) {
4946 if (PTR_ERR(dsi->vdds_dsi_reg) != -EPROBE_DEFER)
4947 dev_err(dsi->dev, "can't get DSI VDD regulator\n");
4948 return PTR_ERR(dsi->vdds_dsi_reg);
4949 }
4950
4951 soc = soc_device_match(dsi_soc_devices);
4952 if (soc)
4953 dsi->data = soc->data;
4954 else
4955 dsi->data = of_match_node(dsi_of_match, dev->of_node)->data;
4956
4957 d = dsi->data->modules;
4958 while (d->address != 0 && d->address != dsi_mem->start)
4959 d++;
4960
4961 if (d->address == 0) {
4962 dev_err(dsi->dev, "unsupported DSI module\n");
4963 return -ENODEV;
4964 }
4965
4966 dsi->module_id = d->id;
4967
4968 if (dsi->data->model == DSI_MODEL_OMAP4 ||
4969 dsi->data->model == DSI_MODEL_OMAP5) {
4970 struct device_node *np;
4971
4972 /*
4973 * The OMAP4/5 display DT bindings don't reference the padconf
4974 * syscon. Our only option to retrieve it is to find it by name.
4975 */
4976 np = of_find_node_by_name(NULL,
4977 dsi->data->model == DSI_MODEL_OMAP4 ?
4978 "omap4_padconf_global" : "omap5_padconf_global");
4979 if (!np)
4980 return -ENODEV;
4981
4982 dsi->syscon = syscon_node_to_regmap(np);
4983 of_node_put(np);
4984 }
4985
4986 /* DSI VCs initialization */
4987 for (i = 0; i < ARRAY_SIZE(dsi->vc); i++)
4988 dsi->vc[i].source = DSI_VC_SOURCE_L4;
4989
4990 r = dsi_get_clocks(dsi);
4991 if (r)
4992 return r;
4993
4994 pm_runtime_enable(dev);
4995
4996 /* DSI on OMAP3 doesn't have register DSI_GNQ, set number
4997 * of data to 3 by default */
4998 if (dsi->data->quirks & DSI_QUIRK_GNQ) {
4999 dsi_runtime_get(dsi);
5000 /* NB_DATA_LANES */
5001 dsi->num_lanes_supported = 1 + REG_GET(dsi, DSI_GNQ, 11, 9);
5002 dsi_runtime_put(dsi);
5003 } else {
5004 dsi->num_lanes_supported = 3;
5005 }
5006
5007 dsi->host.ops = &omap_dsi_host_ops;
5008 dsi->host.dev = &pdev->dev;
5009
5010 r = dsi_probe_of(dsi);
5011 if (r) {
5012 dev_err(dsi->dev, "Invalid DSI DT data\n");
5013 goto err_pm_disable;
5014 }
5015
5016 r = mipi_dsi_host_register(&dsi->host);
5017 if (r < 0) {
5018 dev_err(&pdev->dev, "failed to register DSI host: %d\n", r);
5019 goto err_pm_disable;
5020 }
5021
5022 r = dsi_init_output(dsi);
5023 if (r)
5024 goto err_dsi_host_unregister;
5025
5026 r = component_add(&pdev->dev, &dsi_component_ops);
5027 if (r)
5028 goto err_uninit_output;
5029
5030 return 0;
5031
5032 err_uninit_output:
5033 dsi_uninit_output(dsi);
5034 err_dsi_host_unregister:
5035 mipi_dsi_host_unregister(&dsi->host);
5036 err_pm_disable:
5037 pm_runtime_disable(dev);
5038 return r;
5039 }
5040
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-26 0:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 0:26 drivers/gpu/drm/omapdrm/dss/dsi.c:4933:2-9: line 4933 is redundant because platform_get_irq() already prints an error kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.