diff options
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_ruc.c')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_ruc.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_ruc.c b/drivers/infiniband/hw/ipath/ipath_ruc.c index a59bdbd0ed87..bcaa2914e341 100644 --- a/drivers/infiniband/hw/ipath/ipath_ruc.c +++ b/drivers/infiniband/hw/ipath/ipath_ruc.c | |||
@@ -483,14 +483,16 @@ done: | |||
483 | 483 | ||
484 | static void want_buffer(struct ipath_devdata *dd) | 484 | static void want_buffer(struct ipath_devdata *dd) |
485 | { | 485 | { |
486 | unsigned long flags; | 486 | if (!(dd->ipath_flags & IPATH_HAS_SEND_DMA)) { |
487 | 487 | unsigned long flags; | |
488 | spin_lock_irqsave(&dd->ipath_sendctrl_lock, flags); | 488 | |
489 | dd->ipath_sendctrl |= INFINIPATH_S_PIOINTBUFAVAIL; | 489 | spin_lock_irqsave(&dd->ipath_sendctrl_lock, flags); |
490 | ipath_write_kreg(dd, dd->ipath_kregs->kr_sendctrl, | 490 | dd->ipath_sendctrl |= INFINIPATH_S_PIOINTBUFAVAIL; |
491 | dd->ipath_sendctrl); | 491 | ipath_write_kreg(dd, dd->ipath_kregs->kr_sendctrl, |
492 | ipath_read_kreg64(dd, dd->ipath_kregs->kr_scratch); | 492 | dd->ipath_sendctrl); |
493 | spin_unlock_irqrestore(&dd->ipath_sendctrl_lock, flags); | 493 | ipath_read_kreg64(dd, dd->ipath_kregs->kr_scratch); |
494 | spin_unlock_irqrestore(&dd->ipath_sendctrl_lock, flags); | ||
495 | } | ||
494 | } | 496 | } |
495 | 497 | ||
496 | /** | 498 | /** |