All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: drivers/pci/controller/pcie-rzg3s-host.c:1675 rzg3s_pcie_suspend_noirq() warn: 'port->refclk' from clk_prepare_enable() not released on lines: 1675.
Date: Thu, 14 May 2026 16:04:16 +0800	[thread overview]
Message-ID: <202605141513.i0HxcVmM-lkp@intel.com> (raw)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
CC: Bjorn Helgaas <helgaas@kernel.org>
CC: Manivannan Sadhasivam <mani@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   e1914add2799225a87502051415fc5c32aeb02ae
commit: 7ef502fb35b283e0f85ed7b34e2d963343981a8c PCI: Add Renesas RZ/G3S host controller driver
date:   6 months ago
:::::: branch date: 13 hours ago
:::::: commit date: 6 months ago
config: alpha-randconfig-r071-20260514 (https://download.01.org/0day-ci/archive/20260514/202605141513.i0HxcVmM-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 12.5.0
smatch: v0.5.0-9185-gbcc58b9c

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: 7ef502fb35b2 ("PCI: Add Renesas RZ/G3S host controller driver")
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202605141513.i0HxcVmM-lkp@intel.com/

New smatch warnings:
drivers/pci/controller/pcie-rzg3s-host.c:1675 rzg3s_pcie_suspend_noirq() warn: 'port->refclk' from clk_prepare_enable() not released on lines: 1675.

Old smatch warnings:
internal error: arch/alpha/include/asm/io_trivial.h:70 SQL error #2: near "and": syntax error
internal error: arch/alpha/include/asm/io_trivial.h:70 SQL: 'select * from return_states where  and type = 1044 and parameter = -1 and key = '$' limit 1;'

vim +1675 drivers/pci/controller/pcie-rzg3s-host.c

7ef502fb35b283 Claudiu Beznea 2025-11-19  1632  
7ef502fb35b283 Claudiu Beznea 2025-11-19  1633  static int rzg3s_pcie_suspend_noirq(struct device *dev)
7ef502fb35b283 Claudiu Beznea 2025-11-19  1634  {
7ef502fb35b283 Claudiu Beznea 2025-11-19  1635  	struct rzg3s_pcie_host *host = dev_get_drvdata(dev);
7ef502fb35b283 Claudiu Beznea 2025-11-19  1636  	const struct rzg3s_pcie_soc_data *data = host->data;
7ef502fb35b283 Claudiu Beznea 2025-11-19  1637  	struct rzg3s_pcie_port *port = &host->port;
7ef502fb35b283 Claudiu Beznea 2025-11-19  1638  	struct regmap *sysc = host->sysc;
7ef502fb35b283 Claudiu Beznea 2025-11-19  1639  	int ret;
7ef502fb35b283 Claudiu Beznea 2025-11-19  1640  
7ef502fb35b283 Claudiu Beznea 2025-11-19  1641  	ret = pm_runtime_put_sync(dev);
7ef502fb35b283 Claudiu Beznea 2025-11-19  1642  	if (ret)
7ef502fb35b283 Claudiu Beznea 2025-11-19  1643  		return ret;
7ef502fb35b283 Claudiu Beznea 2025-11-19  1644  
7ef502fb35b283 Claudiu Beznea 2025-11-19  1645  	clk_disable_unprepare(port->refclk);
7ef502fb35b283 Claudiu Beznea 2025-11-19  1646  
7ef502fb35b283 Claudiu Beznea 2025-11-19  1647  	ret = reset_control_bulk_assert(data->num_power_resets,
7ef502fb35b283 Claudiu Beznea 2025-11-19  1648  					host->power_resets);
7ef502fb35b283 Claudiu Beznea 2025-11-19  1649  	if (ret)
7ef502fb35b283 Claudiu Beznea 2025-11-19  1650  		goto refclk_restore;
7ef502fb35b283 Claudiu Beznea 2025-11-19  1651  
7ef502fb35b283 Claudiu Beznea 2025-11-19  1652  	ret = reset_control_bulk_assert(data->num_cfg_resets,
7ef502fb35b283 Claudiu Beznea 2025-11-19  1653  					host->cfg_resets);
7ef502fb35b283 Claudiu Beznea 2025-11-19  1654  	if (ret)
7ef502fb35b283 Claudiu Beznea 2025-11-19  1655  		goto power_resets_restore;
7ef502fb35b283 Claudiu Beznea 2025-11-19  1656  
7ef502fb35b283 Claudiu Beznea 2025-11-19  1657  	ret = regmap_update_bits(sysc, RZG3S_SYS_PCIE_RST_RSM_B,
7ef502fb35b283 Claudiu Beznea 2025-11-19  1658  				 RZG3S_SYS_PCIE_RST_RSM_B_MASK,
7ef502fb35b283 Claudiu Beznea 2025-11-19  1659  				 FIELD_PREP(RZG3S_SYS_PCIE_RST_RSM_B_MASK, 0));
7ef502fb35b283 Claudiu Beznea 2025-11-19  1660  	if (ret)
7ef502fb35b283 Claudiu Beznea 2025-11-19  1661  		goto cfg_resets_restore;
7ef502fb35b283 Claudiu Beznea 2025-11-19  1662  
7ef502fb35b283 Claudiu Beznea 2025-11-19  1663  	return 0;
7ef502fb35b283 Claudiu Beznea 2025-11-19  1664  
7ef502fb35b283 Claudiu Beznea 2025-11-19  1665  	/* Restore the previous state if any error happens */
7ef502fb35b283 Claudiu Beznea 2025-11-19  1666  cfg_resets_restore:
7ef502fb35b283 Claudiu Beznea 2025-11-19  1667  	reset_control_bulk_deassert(data->num_cfg_resets,
7ef502fb35b283 Claudiu Beznea 2025-11-19  1668  				    host->cfg_resets);
7ef502fb35b283 Claudiu Beznea 2025-11-19  1669  power_resets_restore:
7ef502fb35b283 Claudiu Beznea 2025-11-19  1670  	reset_control_bulk_deassert(data->num_power_resets,
7ef502fb35b283 Claudiu Beznea 2025-11-19  1671  				    host->power_resets);
7ef502fb35b283 Claudiu Beznea 2025-11-19  1672  refclk_restore:
7ef502fb35b283 Claudiu Beznea 2025-11-19  1673  	clk_prepare_enable(port->refclk);
7ef502fb35b283 Claudiu Beznea 2025-11-19  1674  	pm_runtime_resume_and_get(dev);
7ef502fb35b283 Claudiu Beznea 2025-11-19 @1675  	return ret;
7ef502fb35b283 Claudiu Beznea 2025-11-19  1676  }
7ef502fb35b283 Claudiu Beznea 2025-11-19  1677  

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

             reply	other threads:[~2026-05-14  8:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-14  8:04 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-01-19 19:58 drivers/pci/controller/pcie-rzg3s-host.c:1675 rzg3s_pcie_suspend_noirq() warn: 'port->refclk' from clk_prepare_enable() not released on lines: 1675 kernel test robot

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=202605141513.i0HxcVmM-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@lists.linux.dev \
    /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.