CC: [email protected]
CC: [email protected]
TO: Samuel Holland <[email protected]>
CC: Jassi Brar <[email protected]>
CC: Philipp Zabel <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   f01c30de86f1047e9bae1b1b1417b0ce8dcd15b1
commit: 25831c44b0b79ac6261d36d7e777a52bdf92f239 mailbox: sun6i-msgbox: Add a 
new mailbox driver
date:   8 months ago
:::::: branch date: 20 hours ago
:::::: commit date: 8 months ago
config: i386-randconfig-m021-20201115 (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/mailbox/sun6i-msgbox.c:156 sun6i_msgbox_shutdown() warn: this loop 
depends on readl() succeeding

vim +156 drivers/mailbox/sun6i-msgbox.c

25831c44b0b79ac Samuel Holland 2020-02-22  138  
25831c44b0b79ac Samuel Holland 2020-02-22  139  static void 
sun6i_msgbox_shutdown(struct mbox_chan *chan)
25831c44b0b79ac Samuel Holland 2020-02-22  140  {
25831c44b0b79ac Samuel Holland 2020-02-22  141          struct sun6i_msgbox 
*mbox = to_sun6i_msgbox(chan);
25831c44b0b79ac Samuel Holland 2020-02-22  142          int n = 
channel_number(chan);
25831c44b0b79ac Samuel Holland 2020-02-22  143  
25831c44b0b79ac Samuel Holland 2020-02-22  144          if (readl(mbox->regs + 
CTRL_REG(n)) & CTRL_RX(n)) {
25831c44b0b79ac Samuel Holland 2020-02-22  145                  /* Disable the 
receive IRQ. */
25831c44b0b79ac Samuel Holland 2020-02-22  146                  
spin_lock(&mbox->lock);
25831c44b0b79ac Samuel Holland 2020-02-22  147                  
writel(readl(mbox->regs + LOCAL_IRQ_EN_REG) & ~RX_IRQ(n),
25831c44b0b79ac Samuel Holland 2020-02-22  148                         
mbox->regs + LOCAL_IRQ_EN_REG);
25831c44b0b79ac Samuel Holland 2020-02-22  149                  
spin_unlock(&mbox->lock);
25831c44b0b79ac Samuel Holland 2020-02-22  150  
25831c44b0b79ac Samuel Holland 2020-02-22  151                  /* Attempt to 
flush the FIFO until the IRQ is cleared. */
25831c44b0b79ac Samuel Holland 2020-02-22  152                  do {
25831c44b0b79ac Samuel Holland 2020-02-22  153                          while 
(sun6i_msgbox_peek_data(chan))
25831c44b0b79ac Samuel Holland 2020-02-22  154                                  
readl(mbox->regs + MSG_DATA_REG(n));
25831c44b0b79ac Samuel Holland 2020-02-22  155                          
writel(RX_IRQ(n), mbox->regs + LOCAL_IRQ_STAT_REG);
25831c44b0b79ac Samuel Holland 2020-02-22 @156                  } while 
(readl(mbox->regs + LOCAL_IRQ_STAT_REG) & RX_IRQ(n));
25831c44b0b79ac Samuel Holland 2020-02-22  157          }
25831c44b0b79ac Samuel Holland 2020-02-22  158  
25831c44b0b79ac Samuel Holland 2020-02-22  159          mbox_dbg(mbox, "Channel 
%d shutdown complete\n", n);
25831c44b0b79ac Samuel Holland 2020-02-22  160  }
25831c44b0b79ac Samuel Holland 2020-02-22  161  

---
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