Hi Mathias,

FYI, there are new smatch warnings show up in

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/sarah/xhci.git 
for-usb-next-command-queue
head:   f8480a8dea8e428b6ba1ae8f4a5ed0a7691de7ad
commit: 5d8ce20aa8ad5fa1bf7c14833eaa60b94a78321f [4/10] xhci: use command 
structures for xhci_queue_stop_endpoint()

drivers/usb/host/xhci-hub.c:326 xhci_stop_device() warn: inconsistent returns 
spin_lock:&xhci->lock: locked (294 [(-12)]) unlocked (283 [(-12)], 326 [(-62)], 
326 [0])
drivers/usb/host/xhci-hub.c:326 xhci_stop_device() warn: inconsistent returns 
irqsave:flags: locked (294 [(-12)]) unlocked (283 [(-12)], 326 [(-62)], 326 [0])

git remote add xhci git://git.kernel.org/pub/scm/linux/kernel/git/sarah/xhci.git
git remote update xhci
git checkout 5d8ce20aa8ad5fa1bf7c14833eaa60b94a78321f
vim +326 drivers/usb/host/xhci-hub.c

be88fe4f Andiry Xu 2010-10-14  310      if (timeleft <= 0) {
be88fe4f Andiry Xu 2010-10-14  311              xhci_warn(xhci, "%s while 
waiting for stop endpoint command\n",
be88fe4f Andiry Xu 2010-10-14  312                              timeleft == 0 ? 
"Timeout" : "Signal");
be88fe4f Andiry Xu 2010-10-14  313              spin_lock_irqsave(&xhci->lock, 
flags);
be88fe4f Andiry Xu 2010-10-14  314              /* The timeout might have raced 
with the event ring handler, so
be88fe4f Andiry Xu 2010-10-14  315               * only delete from the list if 
the item isn't poisoned.
be88fe4f Andiry Xu 2010-10-14  316               */
be88fe4f Andiry Xu 2010-10-14  317              if (cmd->cmd_list.next != 
LIST_POISON1)
be88fe4f Andiry Xu 2010-10-14  318                      
list_del(&cmd->cmd_list);
be88fe4f Andiry Xu 2010-10-14  319              
spin_unlock_irqrestore(&xhci->lock, flags);
be88fe4f Andiry Xu 2010-10-14  320              ret = -ETIME;
be88fe4f Andiry Xu 2010-10-14  321              goto command_cleanup;
be88fe4f Andiry Xu 2010-10-14  322      }
be88fe4f Andiry Xu 2010-10-14  323  
be88fe4f Andiry Xu 2010-10-14  324  command_cleanup:
be88fe4f Andiry Xu 2010-10-14  325      xhci_free_command(xhci, cmd);
be88fe4f Andiry Xu 2010-10-14 @326      return ret;
be88fe4f Andiry Xu 2010-10-14  327  }
be88fe4f Andiry Xu 2010-10-14  328  
be88fe4f Andiry Xu 2010-10-14  329  /*
be88fe4f Andiry Xu 2010-10-14  330   * Ring device, it rings the all doorbells 
unconditionally.
be88fe4f Andiry Xu 2010-10-14  331   */
56192531 Andiry Xu 2010-10-14  332  void xhci_ring_device(struct xhci_hcd 
*xhci, int slot_id)
be88fe4f Andiry Xu 2010-10-14  333  {
be88fe4f Andiry Xu 2010-10-14  334      int i;

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation
_______________________________________________
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild

Reply via email to