From: kernel test robot <lkp@intel.com>
To: Christian Bruel <christian.bruel@foss.st.com>,
vkoul@kernel.org, kishon@kernel.org, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org,
mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com,
p.zabel@pengutronix.de
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, fabrice.gasnier@foss.st.com,
Christian Bruel <christian.bruel@foss.st.com>
Subject: Re: [PATCH v5 2/5] phy: stm32: Add support for STM32MP25 COMBOPHY.
Date: Wed, 4 Sep 2024 19:50:09 +0800 [thread overview]
Message-ID: <202409041913.v0xzfcJ2-lkp@intel.com> (raw)
In-Reply-To: <20240903121303.2953150-3-christian.bruel@foss.st.com>
Hi Christian,
kernel test robot noticed the following build warnings:
[auto build test WARNING on atorgue-stm32/stm32-next]
[also build test WARNING on robh/for-next linus/master v6.11-rc6 next-20240904]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Christian-Bruel/dt-bindings-phy-Add-STM32MP25-COMBOPHY-bindings/20240903-201737
base: https://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32.git stm32-next
patch link: https://lore.kernel.org/r/20240903121303.2953150-3-christian.bruel%40foss.st.com
patch subject: [PATCH v5 2/5] phy: stm32: Add support for STM32MP25 COMBOPHY.
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240904/202409041913.v0xzfcJ2-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240904/202409041913.v0xzfcJ2-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/202409041913.v0xzfcJ2-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/phy/st/phy-stm32-combophy.c:524:10: warning: variable 'ret' is uninitialized when used here [-Wuninitialized]
524 | return ret;
| ^~~
drivers/phy/st/phy-stm32-combophy.c:509:9: note: initialize the variable 'ret' to silence this warning
509 | int ret, irq;
| ^
| = 0
1 warning generated.
vim +/ret +524 drivers/phy/st/phy-stm32-combophy.c
503
504 static int stm32_combophy_probe(struct platform_device *pdev)
505 {
506 struct stm32_combophy *combophy;
507 struct device *dev = &pdev->dev;
508 struct phy_provider *phy_provider;
509 int ret, irq;
510
511 combophy = devm_kzalloc(dev, sizeof(*combophy), GFP_KERNEL);
512 if (!combophy)
513 return -ENOMEM;
514
515 combophy->dev = dev;
516
517 dev_set_drvdata(dev, combophy);
518
519 combophy->base = devm_platform_ioremap_resource(pdev, 0);
520 if (IS_ERR(combophy->base))
521 return PTR_ERR(combophy->base);
522
523 if (stm32_combophy_get_clocks(combophy))
> 524 return ret;
525
526 combophy->phy_reset = devm_reset_control_get(dev, "phy");
527 if (IS_ERR(combophy->phy_reset))
528 return dev_err_probe(dev, PTR_ERR(combophy->phy_reset),
529 "Failed to get PHY reset\n");
530
531 combophy->regmap = syscon_regmap_lookup_by_compatible("st,stm32mp25-syscfg");
532 if (IS_ERR(combophy->regmap))
533 return dev_err_probe(dev, PTR_ERR(combophy->regmap),
534 "No syscfg specified\n");
535
536 combophy->phy = devm_phy_create(dev, NULL, &stm32_combophy_phy_data);
537 if (IS_ERR(combophy->phy))
538 return dev_err_probe(dev, PTR_ERR(combophy->phy),
539 "failed to create PCIe/USB3 ComboPHY\n");
540
541 if (device_property_read_bool(dev, "wakeup-source")) {
542 irq = platform_get_irq(pdev, 0);
543 if (irq < 0)
544 return dev_err_probe(dev, irq, "failed to get IRQ\n");
545 combophy->irq_wakeup = irq;
546
547 ret = devm_request_threaded_irq(dev, combophy->irq_wakeup, NULL,
548 stm32_combophy_irq_wakeup_handler, IRQF_ONESHOT,
549 NULL, NULL);
550 if (ret)
551 return dev_err_probe(dev, ret, "unable to request wake IRQ %d\n",
552 combophy->irq_wakeup);
553 }
554
555 ret = devm_pm_runtime_enable(dev);
556 if (ret)
557 return dev_err_probe(dev, ret, "Failed to enable pm runtime\n");
558
559 phy_set_drvdata(combophy->phy, combophy);
560
561 phy_provider = devm_of_phy_provider_register(dev, stm32_combophy_xlate);
562
563 return PTR_ERR_OR_ZERO(phy_provider);
564 }
565
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-09-04 11:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-03 12:12 [PATCH v5 0/5] Add STM32MP25 USB3/PCIE COMBOPHY driver Christian Bruel
2024-09-03 12:12 ` [PATCH v5 1/5] dt-bindings: phy: Add STM32MP25 COMBOPHY bindings Christian Bruel
2024-09-03 14:52 ` Rob Herring (Arm)
2024-09-03 12:13 ` [PATCH v5 2/5] phy: stm32: Add support for STM32MP25 COMBOPHY Christian Bruel
2024-09-04 11:50 ` kernel test robot [this message]
2024-09-06 13:44 ` Philipp Zabel
2024-09-09 8:40 ` Christian Bruel
2024-09-03 12:13 ` [PATCH v5 3/5] MAINTAINERS: add entry for ST STM32MP25 COMBOPHY driver Christian Bruel
2024-09-03 12:13 ` [PATCH v5 4/5] arm64: dts: st: Add combophy node on stm32mp251 Christian Bruel
2024-09-03 12:13 ` [PATCH v5 5/5] arm64: dts: st: Enable COMBOPHY on the stm32mp257f-ev1 board Christian Bruel
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=202409041913.v0xzfcJ2-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexandre.torgue@foss.st.com \
--cc=christian.bruel@foss.st.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=fabrice.gasnier@foss.st.com \
--cc=kishon@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=llvm@lists.linux.dev \
--cc=mcoquelin.stm32@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=vkoul@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
all inboxes | Powered by JetHome®