From: kernel test robot <lkp@intel.com>
To: Yang Xiwen via B4 Relay
<devnull+forbidden405.outlook.com@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Philipp Zabel <p.zabel@pengutronix.de>
Cc: oe-kbuild-all@lists.linux.dev, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Yang Xiwen <forbidden405@outlook.com>
Subject: Re: [PATCH 2/2] drivers: bus: simple-pm-bus: Get and deassert resets exclusively
Date: Sat, 24 Feb 2024 06:50:30 +0800 [thread overview]
Message-ID: <202402240650.1O7vtd48-lkp@intel.com> (raw)
In-Reply-To: <20240223-b4-bus-v1-2-2803c3ac4673@outlook.com>
Hi Yang,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 8d3dea210042f54b952b481838c1e7dfc4ec751d]
url: https://github.com/intel-lab-lkp/linux/commits/Yang-Xiwen-via-B4-Relay/dt-bindings-simple-pm-bus-Add-optional-resets/20240223-115400
base: 8d3dea210042f54b952b481838c1e7dfc4ec751d
patch link: https://lore.kernel.org/r/20240223-b4-bus-v1-2-2803c3ac4673%40outlook.com
patch subject: [PATCH 2/2] drivers: bus: simple-pm-bus: Get and deassert resets exclusively
config: openrisc-allnoconfig (https://download.01.org/0day-ci/archive/20240224/202402240650.1O7vtd48-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240224/202402240650.1O7vtd48-lkp@intel.com/reproduce)
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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402240650.1O7vtd48-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/bus/simple-pm-bus.c: In function 'simple_pm_bus_probe':
>> drivers/bus/simple-pm-bus.c:67:50: warning: passing argument 1 of 'devm_reset_control_array_get' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
67 | bus->rsts = devm_reset_control_array_get(dev, false, true);
| ^~~
In file included from drivers/bus/simple-pm-bus.c:19:
include/linux/reset.h:192:45: note: expected 'struct device *' but argument is of type 'const struct device *'
192 | devm_reset_control_array_get(struct device *dev, bool shared, bool optional)
| ~~~~~~~~~~~~~~~^~~
vim +67 drivers/bus/simple-pm-bus.c
26
27 static int simple_pm_bus_probe(struct platform_device *pdev)
28 {
29 const struct device *dev = &pdev->dev;
30 const struct of_dev_auxdata *lookup = dev_get_platdata(dev);
31 struct device_node *np = dev->of_node;
32 const struct of_device_id *match;
33 struct simple_pm_bus *bus;
34
35 /*
36 * Allow user to use driver_override to bind this driver to a
37 * transparent bus device which has a different compatible string
38 * that's not listed in simple_pm_bus_of_match. We don't want to do any
39 * of the simple-pm-bus tasks for these devices, so return early.
40 */
41 if (pdev->driver_override)
42 return 0;
43
44 match = of_match_device(dev->driver->of_match_table, dev);
45 /*
46 * These are transparent bus devices (not simple-pm-bus matches) that
47 * have their child nodes populated automatically. So, don't need to
48 * do anything more. We only match with the device if this driver is
49 * the most specific match because we don't want to incorrectly bind to
50 * a device that has a more specific driver.
51 */
52 if (match && match->data) {
53 if (of_property_match_string(np, "compatible", match->compatible) == 0)
54 return 0;
55 else
56 return -ENODEV;
57 }
58
59 bus = devm_kzalloc(&pdev->dev, sizeof(*bus), GFP_KERNEL);
60 if (!bus)
61 return -ENOMEM;
62
63 bus->num_clks = devm_clk_bulk_get_all(&pdev->dev, &bus->clks);
64 if (bus->num_clks < 0)
65 return dev_err_probe(&pdev->dev, bus->num_clks, "failed to get clocks\n");
66
> 67 bus->rsts = devm_reset_control_array_get(dev, false, true);
68 if (IS_ERR(bus->rsts))
69 return dev_err_probe(&pdev->dev, PTR_ERR(bus->rsts), "failed to get resets\n");
70
71 dev_set_drvdata(&pdev->dev, bus);
72
73 dev_dbg(&pdev->dev, "%s\n", __func__);
74
75 pm_runtime_enable(&pdev->dev);
76
77 if (np)
78 of_platform_populate(np, NULL, lookup, &pdev->dev);
79
80 return 0;
81 }
82
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-02-23 22:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-23 3:49 [PATCH 0/2] simple-pm-bus: deassert resets if possible Yang Xiwen via B4 Relay
2024-02-23 3:49 ` [PATCH 1/2] dt-bindings: simple-pm-bus: Add optional resets Yang Xiwen via B4 Relay
2024-02-23 8:08 ` Geert Uytterhoeven
2024-02-23 3:49 ` [PATCH 2/2] drivers: bus: simple-pm-bus: Get and deassert resets exclusively Yang Xiwen via B4 Relay
2024-02-23 8:08 ` Geert Uytterhoeven
2024-02-23 22:40 ` kernel test robot
2024-02-23 22:50 ` kernel test robot [this message]
2024-02-23 23:32 ` kernel test robot
2024-02-24 12:12 ` Yang Xiwen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202402240650.1O7vtd48-lkp@intel.com \
--to=lkp@intel.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=devnull+forbidden405.outlook.com@kernel.org \
--cc=forbidden405@outlook.com \
--cc=geert+renesas@glider.be \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=p.zabel@pengutronix.de \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox