CC: [email protected]
TO: Eric Biggers <[email protected]>
CC: Ulf Hansson <[email protected]>
CC: Satya Tangirala <[email protected]>

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git next
head:   bdcefe241263433e99f19cea76ebd0164a8c8826
commit: 080fde6b774eeb7b929a9fe76bafa0cf73c454cd [65/73] mmc: cqhci: add 
support for inline encryption
:::::: branch date: 15 hours ago
:::::: commit date: 16 hours ago
config: i386-randconfig-m021-20210126 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

smatch warnings:
drivers/mmc/host/cqhci-core.c:262 __cqhci_enable() warn: bitwise AND condition 
is false here

vim +262 drivers/mmc/host/cqhci-core.c

a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
240  
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
241  static void __cqhci_enable(struct cqhci_host *cq_host)
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
242  {
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
243      struct mmc_host *mmc = cq_host->mmc;
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
244      u32 cqcfg;
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
245  
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
246      cqcfg = cqhci_readl(cq_host, CQHCI_CFG);
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
247  
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
248      /* Configuration must not be changed while enabled */
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
249      if (cqcfg & CQHCI_ENABLE) {
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
250              cqcfg &= ~CQHCI_ENABLE;
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
251              cqhci_writel(cq_host, cqcfg, CQHCI_CFG);
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
252      }
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
253  
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
254      cqcfg &= ~(CQHCI_DCMD | CQHCI_TASK_DESC_SZ);
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
255  
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
256      if (mmc->caps2 & MMC_CAP2_CQE_DCMD)
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
257              cqcfg |= CQHCI_DCMD;
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
258  
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
259      if (cq_host->caps & CQHCI_TASK_DESC_SZ_128)
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
260              cqcfg |= CQHCI_TASK_DESC_SZ;
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
261  
080fde6b774eeb drivers/mmc/host/cqhci-core.c Eric Biggers          2021-01-25 
@262      if (mmc->caps2 & MMC_CAP2_CRYPTO)
080fde6b774eeb drivers/mmc/host/cqhci-core.c Eric Biggers          2021-01-25  
263              cqcfg |= CQHCI_CRYPTO_GENERAL_ENABLE;
080fde6b774eeb drivers/mmc/host/cqhci-core.c Eric Biggers          2021-01-25  
264  
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
265      cqhci_writel(cq_host, cqcfg, CQHCI_CFG);
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
266  
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
267      cqhci_writel(cq_host, lower_32_bits(cq_host->desc_dma_base),
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
268                   CQHCI_TDLBA);
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
269      cqhci_writel(cq_host, upper_32_bits(cq_host->desc_dma_base),
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
270                   CQHCI_TDLBAU);
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
271  
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
272      cqhci_writel(cq_host, cq_host->rca, CQHCI_SSC2);
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
273  
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
274      cqhci_set_irqs(cq_host, 0);
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
275  
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
276      cqcfg |= CQHCI_ENABLE;
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
277  
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
278      cqhci_writel(cq_host, cqcfg, CQHCI_CFG);
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
279  
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
280      mmc->cqe_on = true;
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
281  
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
282      if (cq_host->ops->enable)
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
283              cq_host->ops->enable(mmc);
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
284  
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
285      /* Ensure all writes are done before interrupts are enabled */
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
286      wmb();
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
287  
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
288      cqhci_set_irqs(cq_host, CQHCI_IS_MASK);
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
289  
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
290      cq_host->activated = true;
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
291  }
a4080225f51dce drivers/mmc/host/cqhci.c      Venkat Gopalakrishnan 2017-11-29  
292  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to