From: kernel test robot <lkp@intel.com>
To: Christian Marangi <ansuelsmth@gmail.com>,
Lee Jones <lee@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Vladimir Oltean <olteanv@gmail.com>,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
Maxime Chevallier <maxime.chevallier@bootlin.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, upstream@airoha.com
Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org
Subject: Re: [net-next PATCH v13 10/14] mfd: an8855: Add support for Airoha AN8855 Switch MFD
Date: Fri, 21 Mar 2025 14:12:55 +0800 [thread overview]
Message-ID: <202503211428.H4VdWHco-lkp@intel.com> (raw)
In-Reply-To: <20250315154407.26304-11-ansuelsmth@gmail.com>
Hi Christian,
kernel test robot noticed the following build errors:
[auto build test ERROR on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Christian-Marangi/dt-bindings-nvmem-Document-support-for-Airoha-AN8855-Switch-EFUSE/20250315-235040
base: net-next/main
patch link: https://lore.kernel.org/r/20250315154407.26304-11-ansuelsmth%40gmail.com
patch subject: [net-next PATCH v13 10/14] mfd: an8855: Add support for Airoha AN8855 Switch MFD
config: i386-randconfig-006-20250321 (https://download.01.org/0day-ci/archive/20250321/202503211428.H4VdWHco-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250321/202503211428.H4VdWHco-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/202503211428.H4VdWHco-lkp@intel.com/
All errors (new ones prefixed by >>):
ld: drivers/mfd/airoha-an8855.o: in function `an8855_core_probe':
>> drivers/mfd/airoha-an8855.c:376: undefined reference to `devm_mdio_regmap_init'
vim +376 drivers/mfd/airoha-an8855.c
352
353 static int an8855_core_probe(struct mdio_device *mdiodev)
354 {
355 struct regmap *regmap, *regmap_phy;
356 struct device *dev = &mdiodev->dev;
357 struct an8855_core_priv *priv;
358 struct gpio_desc *reset_gpio;
359 u32 val;
360 int ret;
361
362 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
363 if (!priv)
364 return -ENOMEM;
365
366 priv->bus = mdiodev->bus;
367 priv->switch_addr = mdiodev->addr;
368 /* No DMA for mdiobus, mute warning for DMA mask not set */
369 dev->dma_mask = &dev->coherent_dma_mask;
370
371 regmap = devm_regmap_init(dev, NULL, priv, &an8855_regmap_config);
372 if (IS_ERR(regmap))
373 return dev_err_probe(dev, PTR_ERR(regmap),
374 "regmap initialization failed\n");
375
> 376 regmap_phy = devm_mdio_regmap_init(dev, priv, &an8855_regmap_phy_config);
377 if (IS_ERR(regmap_phy))
378 return dev_err_probe(dev, PTR_ERR(regmap_phy),
379 "regmap phy initialization failed\n");
380
381 reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
382 if (IS_ERR(reset_gpio))
383 return PTR_ERR(reset_gpio);
384
385 if (reset_gpio) {
386 usleep_range(100000, 150000);
387 gpiod_set_value_cansleep(reset_gpio, 0);
388 usleep_range(100000, 150000);
389 gpiod_set_value_cansleep(reset_gpio, 1);
390
391 /* Poll HWTRAP reg to wait for Switch to fully Init */
392 ret = regmap_read_poll_timeout(regmap, AN8855_HWTRAP, val,
393 val, 20, 200000);
394 if (ret)
395 return ret;
396 }
397
398 ret = an8855_read_switch_id(dev, regmap);
399 if (ret)
400 return ret;
401
402 /* Release global PHY power down */
403 ret = regmap_write(regmap, AN8855_RG_GPHY_AFE_PWD, 0x0);
404 if (ret)
405 return ret;
406
407 return devm_mfd_add_devices(dev, PLATFORM_DEVID_AUTO, an8855_core_childs,
408 ARRAY_SIZE(an8855_core_childs), NULL, 0,
409 NULL);
410 }
411
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-03-21 6:16 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-15 15:43 [net-next PATCH v13 00/14] net: dsa: Add Airoha AN8855 support Christian Marangi
2025-03-15 15:43 ` [net-next PATCH v13 01/14] dt-bindings: nvmem: Document support for Airoha AN8855 Switch EFUSE Christian Marangi
2025-03-15 15:43 ` [net-next PATCH v13 02/14] dt-bindings: net: Document support for Airoha AN8855 Switch Virtual MDIO Christian Marangi
2025-03-15 15:43 ` [net-next PATCH v13 03/14] dt-bindings: net: dsa: Document support for Airoha AN8855 DSA Switch Christian Marangi
2025-03-17 16:21 ` Rob Herring (Arm)
2025-03-15 15:43 ` [net-next PATCH v13 04/14] dt-bindings: net: Document support for AN8855 Switch Internal PHY Christian Marangi
2025-03-17 16:22 ` Rob Herring (Arm)
2025-03-15 15:43 ` [net-next PATCH v13 05/14] dt-bindings: mfd: Document support for Airoha AN8855 Switch SoC Christian Marangi
2025-03-15 17:12 ` Rob Herring (Arm)
2025-03-17 14:28 ` Rob Herring
2025-03-15 15:43 ` [net-next PATCH v13 06/14] net: mdio: regmap: prepare support for multiple valid addr Christian Marangi
2025-03-15 15:43 ` [net-next PATCH v13 07/14] net: mdio: regmap: add support for C45 read/write Christian Marangi
2025-03-15 15:43 ` [net-next PATCH v13 08/14] net: mdio: regmap: add support for multiple valid addr Christian Marangi
2025-03-15 15:43 ` [net-next PATCH v13 09/14] net: mdio: regmap: add OF support Christian Marangi
2025-03-15 15:43 ` [net-next PATCH v13 10/14] mfd: an8855: Add support for Airoha AN8855 Switch MFD Christian Marangi
2025-03-21 6:12 ` kernel test robot [this message]
2025-04-04 13:01 ` Lee Jones
2025-03-15 15:43 ` [net-next PATCH v13 11/14] net: mdio: Add Airoha AN8855 Switch MDIO Passtrough Christian Marangi
2025-03-15 15:43 ` [net-next PATCH v13 12/14] nvmem: an8855: Add support for Airoha AN8855 Switch EFUSE Christian Marangi
2025-03-15 15:43 ` [net-next PATCH v13 14/14] net: phy: Add Airoha AN8855 Internal Switch Gigabit PHY Christian Marangi
[not found] ` <20250315154407.26304-14-ansuelsmth@gmail.com>
2025-03-18 15:15 ` [net-next PATCH v13 13/14] net: dsa: Add Airoha AN8855 5-Port Gigabit DSA Switch driver Vladimir Oltean
2025-04-08 9:13 ` Christian Marangi
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=202503211428.H4VdWHco-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=angelogioacchino.delregno@collabora.com \
--cc=ansuelsmth@gmail.com \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=krzk@kernel.org \
--cc=kuba@kernel.org \
--cc=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux@armlinux.org.uk \
--cc=matthias.bgg@gmail.com \
--cc=maxime.chevallier@bootlin.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=robh@kernel.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=upstream@airoha.com \
/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;
as well as URLs for NNTP newsgroup(s).