All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH v4 net-next 17/23] pinctrl: microchip-sgpio: expose microchip_sgpio_core_probe interface
Date: Thu, 18 Nov 2021 06:21:31 +0800	[thread overview]
Message-ID: <202111180603.BPxeoEMe-lkp@intel.com> (raw)
In-Reply-To: <20211116062328.1949151-18-colin.foster@in-advantage.com>

[-- Attachment #1: Type: text/plain, Size: 4557 bytes --]

Hi Colin,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on net-next/master]

url:    https://github.com/0day-ci/linux/commits/Colin-Foster/add-support-for-VSC75XX-control-over-SPI/20211116-143245
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 3ad4b7c81a992463c29ae130332c217607fe4452
config: openrisc-randconfig-r033-20211116 (attached as .config)
compiler: or1k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/687241afbab24f5d57bb22b23b4a7c3ad941702e
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Colin-Foster/add-support-for-VSC75XX-control-over-SPI/20211116-143245
        git checkout 687241afbab24f5d57bb22b23b4a7c3ad941702e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=openrisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/pinctrl/pinctrl-microchip-sgpio.c:838:5: warning: no previous prototype for 'microchip_sgpio_core_probe' [-Wmissing-prototypes]
     838 | int microchip_sgpio_core_probe(struct device *dev, struct device_node *node,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/microchip_sgpio_core_probe +838 drivers/pinctrl/pinctrl-microchip-sgpio.c

   837	
 > 838	int microchip_sgpio_core_probe(struct device *dev, struct device_node *node,
   839				       struct regmap *regmap, u32 offset)
   840	{
   841		int div_clock = 0, ret, port, i, nbanks;
   842		struct fwnode_handle *child, *fwnode;
   843		struct reset_control *reset;
   844		struct sgpio_priv *priv;
   845		struct clk *clk;
   846		u32 val;
   847	
   848		priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
   849		if (!priv)
   850			return -ENOMEM;
   851	
   852		priv->dev = dev;
   853		priv->dev_node = node;
   854	
   855		fwnode = of_fwnode_handle(node);
   856	
   857		reset = devm_reset_control_get_optional_shared(dev, "switch");
   858		if (IS_ERR(reset))
   859			return dev_err_probe(dev, PTR_ERR(reset), "Failed to get reset\n");
   860		reset_control_reset(reset);
   861	
   862		clk = devm_get_clk_from_child(dev, node, NULL);
   863		if (IS_ERR(clk))
   864			return dev_err_probe(dev, PTR_ERR(clk), "Failed to get clock\n");
   865	
   866		div_clock = clk_get_rate(clk);
   867		if (fwnode_property_read_u32(fwnode, "bus-frequency", &priv->clock))
   868			priv->clock = 12500000;
   869		if (priv->clock == 0 || priv->clock > (div_clock / 2)) {
   870			dev_err(dev, "Invalid frequency %d\n", priv->clock);
   871			return -EINVAL;
   872		}
   873	
   874		priv->regs = regmap;
   875		priv->regs_offset = 0;
   876		priv->properties = microchip_sgpio_match_from_node(node);
   877		priv->in.is_input = true;
   878	
   879		if (!priv->properties)
   880			return dev_err_probe(dev, -EINVAL, "No property match found\n");
   881	
   882		/* Get rest of device properties */
   883		ret = microchip_sgpio_get_ports(priv);
   884		if (ret)
   885			return ret;
   886	
   887		nbanks = fwnode_get_child_node_count(fwnode);
   888		if (nbanks != 2) {
   889			dev_err(dev, "Must have 2 banks (have %d)\n", nbanks);
   890			return -EINVAL;
   891		}
   892	
   893		i = 0;
   894		fwnode_for_each_child_node(fwnode, child) {
   895			ret = microchip_sgpio_register_bank(dev, priv, child, i++);
   896			if (ret) {
   897				fwnode_handle_put(child);
   898				return ret;
   899			}
   900		}
   901	
   902		if (priv->in.gpio.ngpio != priv->out.gpio.ngpio) {
   903			dev_err(dev, "Banks must have same GPIO count\n");
   904			return -ERANGE;
   905		}
   906	
   907		sgpio_configure_bitstream(priv);
   908	
   909		val = max(2U, div_clock / priv->clock);
   910		sgpio_configure_clock(priv, val);
   911	
   912		for (port = 0; port < SGPIO_BITS_PER_WORD; port++)
   913			sgpio_writel(priv, 0, REG_PORT_CONFIG, port);
   914		sgpio_writel(priv, priv->ports, REG_PORT_ENABLE, 0);
   915	
   916		return 0;
   917	}
   918	EXPORT_SYMBOL(microchip_sgpio_core_probe);
   919	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 25247 bytes --]

  reply	other threads:[~2021-11-17 22:21 UTC|newest]

Thread overview: 91+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-16  6:23 [RFC PATCH v4 net-next 00/23] add support for VSC75XX control over SPI Colin Foster
2021-11-16  6:23 ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 01/23] net: dsa: ocelot: remove unnecessary pci_bar variables Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16 17:37   ` Florian Fainelli
2021-11-16 17:37     ` Florian Fainelli
2021-11-16  6:23 ` [RFC PATCH v4 net-next 02/23] net: mdio: mscc-miim: convert to a regmap implementation Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 03/23] net: dsa: ocelot: seville: utilize of_mdiobus_register Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16 11:21   ` Vladimir Oltean
2021-11-16 11:21     ` Vladimir Oltean
2021-11-16 23:51   ` Florian Fainelli
2021-11-16 23:51     ` Florian Fainelli
2021-11-16  6:23 ` [RFC PATCH v4 net-next 04/23] net: dsa: ocelot: felix: switch to mdio-mscc-miim driver for indirect mdio access Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 05/23] net: dsa: ocelot: felix: Remove requirement for PCS in felix devices Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 06/23] net: dsa: ocelot: felix: add interface for custom regmaps Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 07/23] net: dsa: ocelot: felix: add per-device-per-port quirks Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 08/23] net: mscc: ocelot: split register definitions to a separate file Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 09/23] net: mscc: ocelot: expose ocelot wm functions Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 10/23] pinctrl: ocelot: combine get resource and ioremap into single call Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 11/23] pinctrl: ocelot: update pinctrl to automatic base address Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16 17:36   ` Alexandre Belloni
2021-11-16 17:36     ` Alexandre Belloni
2021-11-17 13:47     ` Clément Léger
2021-11-17 13:47       ` Clément Léger
2021-11-19  2:16       ` Colin Foster
2021-11-19  2:16         ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 12/23] pinctrl: ocelot: convert pinctrl to regmap Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 13/23] pinctrl: ocelot: expose ocelot_pinctrl_core_probe interface Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-18 18:36   ` kernel test robot
2021-11-16  6:23 ` [RFC PATCH v4 net-next 14/23] pinctrl: microchip-sgpio: update to support regmap Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 15/23] device property: add helper function fwnode_get_child_node_count Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16  8:23   ` Heikki Krogerus
2021-11-16  8:23     ` Heikki Krogerus
2021-11-16  6:23 ` [RFC PATCH v4 net-next 16/23] pinctrl: microchip-sgpio: change device tree matches to use nodes instead of device Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 17/23] pinctrl: microchip-sgpio: expose microchip_sgpio_core_probe interface Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-17 22:21   ` kernel test robot [this message]
2021-11-18  1:59   ` kernel test robot
2021-11-16  6:23 ` [RFC PATCH v4 net-next 18/23] net: phy: lynx: refactor Lynx PCS module to use generic phylink_pcs Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 19/23] net: dsa: felix: name change for clarity from pcs to mdio_device Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 20/23] net: dsa: seville: " Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 21/23] net: ethernet: enetc: " Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 22/23] net: pcs: lynx: use a common naming scheme for all lynx_pcs variables Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16  6:23 ` [RFC PATCH v4 net-next 23/23] net: dsa: ocelot: felix: add support for VSC75XX control over SPI Colin Foster
2021-11-16  6:23   ` Colin Foster
2021-11-16 10:34 ` [RFC PATCH v4 net-next 00/23] " Andy Shevchenko
2021-11-16 10:34   ` Andy Shevchenko
2021-11-16 15:04   ` Colin Foster
2021-11-16 15:04     ` Colin Foster
2021-11-16 17:05     ` Andy Shevchenko
2021-11-16 17:05       ` Andy Shevchenko
2021-11-16 11:10 ` Vladimir Oltean
2021-11-16 11:10   ` Vladimir Oltean
2021-11-16 15:32   ` Colin Foster
2021-11-16 15:32     ` Colin Foster
2021-11-16 17:41     ` Vladimir Oltean
2021-11-16 17:41       ` Vladimir Oltean
2021-11-16 22:56 ` Vladimir Oltean
2021-11-16 22:56   ` Vladimir Oltean
2021-11-16 23:44   ` Colin Foster
2021-11-16 23:44     ` Colin Foster
2021-11-16 23:47     ` Vladimir Oltean
2021-11-16 23:47       ` Vladimir Oltean
2021-11-19  1:58 ` Linus Walleij
2021-11-19  1:58   ` Linus Walleij
2021-11-19  2:14   ` Colin Foster
2021-11-19  2:14     ` Colin Foster
2021-11-21 23:59     ` Linus Walleij
2021-11-21 23:59       ` Linus Walleij
2021-11-19  9:32 [RFC PATCH v4 net-next 04/23] net: dsa: ocelot: felix: switch to mdio-mscc-miim driver for indirect mdio access kernel test robot
2021-11-22 10:20 ` Dan Carpenter

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=202111180603.BPxeoEMe-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 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.