[linux-next:master 6630/10444] drivers/dma/dw-edma/dw-edma-v0-core.c:211:4-25: opportunity for str_write_read(dir == EDMA_DIR_WRITE)
kernel test robot <[email protected]> Thu, 30 Jul 2026 18:59:59 +0800
| Newsgroups | dev.linux.lists.oe-kbuild |
|---|---|
| Message-ID | <[email protected]> |
BCC: [email protected] CC: [email protected] TO: Koichiro Den <[email protected]> CC: Vinod Koul <[email protected]> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 78bc8af4affb9a732504eb22eeac7d1e50883853 commit: c9c25b2f32601409a53845b41183a29c8260f33e [6630/10444] dmaengine: dw-edma: Add core quiesce operations :::::: branch date: 19 hours ago :::::: commit date: 9 days ago config: s390-randconfig-r064-20260730 (https://download.01.org/0day-ci/archive/20260730/[email protected]/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) 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 <[email protected]> | Reported-by: Julia Lawall <[email protected]> | Closes: https://lore.kernel.org/r/[email protected]/ cocci warnings: (new ones prefixed by >>) >> drivers/dma/dw-edma/dw-edma-v0-core.c:211:4-25: opportunity for str_write_read(dir == EDMA_DIR_WRITE) vim +211 drivers/dma/dw-edma/dw-edma-v0-core.c c9c25b2f326014 Koichiro Den 2026-07-21 199 c9c25b2f326014 Koichiro Den 2026-07-21 200 static int dw_edma_v0_core_engine_disable(struct dw_edma *dw, c9c25b2f326014 Koichiro Den 2026-07-21 201 enum dw_edma_dir dir) c9c25b2f326014 Koichiro Den 2026-07-21 202 { c9c25b2f326014 Koichiro Den 2026-07-21 203 u32 value; c9c25b2f326014 Koichiro Den 2026-07-21 204 int ret; c9c25b2f326014 Koichiro Den 2026-07-21 205 c9c25b2f326014 Koichiro Den 2026-07-21 206 SET_RW_32(dw, dir, engine_en, 0); c9c25b2f326014 Koichiro Den 2026-07-21 207 ret = read_poll_timeout(GET_RW_32, value, !(value & BIT(0)), 100, c9c25b2f326014 Koichiro Den 2026-07-21 208 200000, false, dw, dir, engine_en); c9c25b2f326014 Koichiro Den 2026-07-21 209 if (ret) c9c25b2f326014 Koichiro Den 2026-07-21 210 dev_warn(dw->chip->dev, "%s engine did not stop within 200ms\n", c9c25b2f326014 Koichiro Den 2026-07-21 @211 dir == EDMA_DIR_WRITE ? "write" : "read"); c9c25b2f326014 Koichiro Den 2026-07-21 212 c9c25b2f326014 Koichiro Den 2026-07-21 213 return ret; c9c25b2f326014 Koichiro Den 2026-07-21 214 } c9c25b2f326014 Koichiro Den 2026-07-21 215 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki