All of lore.kernel.org
 help / color / mirror / Atom feed
* [arm-integrator:b4/genexis-xg6846b-bcmbca-xrdp-reset 5/6] drivers/bus/bcmbca_pmc3_pmb.c:100:2-8: preceding lock on line 86
@ 2026-10-14 21:16 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-14 21:16 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Julia Lawall

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Linus Walleij <linusw@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git b4/genexis-xg6846b-bcmbca-xrdp-reset
head:   f576cbf2d1f356edfa8a9a7774037a6f28209ac2
commit: f7d8e26a2c3719e61f34785d5049f1f68f4413cb [5/6] bus: Add a shared BCMBCA PMC3 PMB transport
:::::: branch date: 12 hours ago
:::::: commit date: 12 hours ago
config: parisc-randconfig-r2111-20261014 (https://download.01.org/0day-ci/archive/20261014/202610142340.SKtimKtj-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 8.5.0

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>
| Reported-by: Julia Lawall <julia.lawall@inria.fr>
| Closes: https://lore.kernel.org/r/202610142340.SKtimKtj-lkp@intel.com/

cocci warnings: (new ones prefixed by >>)
>> drivers/bus/bcmbca_pmc3_pmb.c:100:2-8: preceding lock on line 86

vim +100 drivers/bus/bcmbca_pmc3_pmb.c

f7d8e26a2c3719e Linus Walleij 2026-10-13   80  
f7d8e26a2c3719e Linus Walleij 2026-10-13   81  int bcmbca_pmb_lock(struct bcmbca_pmb *pmb)
f7d8e26a2c3719e Linus Walleij 2026-10-13   82  {
f7d8e26a2c3719e Linus Walleij 2026-10-13   83  	u32 value;
f7d8e26a2c3719e Linus Walleij 2026-10-13   84  	int ret;
f7d8e26a2c3719e Linus Walleij 2026-10-13   85  
f7d8e26a2c3719e Linus Walleij 2026-10-13  @86  	mutex_lock(&pmb->lock);
f7d8e26a2c3719e Linus Walleij 2026-10-13   87  	if (pmb->stopping) {
f7d8e26a2c3719e Linus Walleij 2026-10-13   88  		ret = -ENODEV;
f7d8e26a2c3719e Linus Walleij 2026-10-13   89  		goto unlock;
f7d8e26a2c3719e Linus Walleij 2026-10-13   90  	}
f7d8e26a2c3719e Linus Walleij 2026-10-13   91  	if (pmb->recovering) {
f7d8e26a2c3719e Linus Walleij 2026-10-13   92  		ret = -EBUSY;
f7d8e26a2c3719e Linus Walleij 2026-10-13   93  		goto unlock;
f7d8e26a2c3719e Linus Walleij 2026-10-13   94  	}
f7d8e26a2c3719e Linus Walleij 2026-10-13   95  
f7d8e26a2c3719e Linus Walleij 2026-10-13   96  	/* Reading bit 0 acquires the hardware lock; writing 1 releases it. */
f7d8e26a2c3719e Linus Walleij 2026-10-13   97  	ret = readl_poll_timeout(pmb->base + PMB_MUTEX, value,
f7d8e26a2c3719e Linus Walleij 2026-10-13   98  				 value & PMB_LOCKED, 1, 1000);
f7d8e26a2c3719e Linus Walleij 2026-10-13   99  	if (!ret)
f7d8e26a2c3719e Linus Walleij 2026-10-13 @100  		return 0;
f7d8e26a2c3719e Linus Walleij 2026-10-13  101  unlock:
f7d8e26a2c3719e Linus Walleij 2026-10-13  102  	mutex_unlock(&pmb->lock);
f7d8e26a2c3719e Linus Walleij 2026-10-13  103  	return ret;
f7d8e26a2c3719e Linus Walleij 2026-10-13  104  }
f7d8e26a2c3719e Linus Walleij 2026-10-13  105  EXPORT_SYMBOL_GPL(bcmbca_pmb_lock);
f7d8e26a2c3719e Linus Walleij 2026-10-13  106  

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-14 21:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-14 21:16 [arm-integrator:b4/genexis-xg6846b-bcmbca-xrdp-reset 5/6] drivers/bus/bcmbca_pmc3_pmb.c:100:2-8: preceding lock on line 86 kernel test robot

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.