Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers: Remove useless trailing comments from mmiowb() invocations

In preparation for using coccinelle to remove all mmiowb() instances
from drivers, remove all trailing comments since they won't be picked up
by spatch later on and will end up being preserved in the code.

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>

+5 -5
+1 -1
drivers/infiniband/hw/hfi1/chip.c
··· 8365 8365 struct hfi1_devdata *dd = rcd->dd; 8366 8366 u32 addr = CCE_INT_CLEAR + (8 * rcd->ireg); 8367 8367 8368 - mmiowb(); /* make sure everything before is written */ 8368 + mmiowb(); 8369 8369 write_csr(dd, addr, rcd->imask); 8370 8370 /* force the above write on the chip and get a value back */ 8371 8371 (void)read_csr(dd, addr);
+1 -1
drivers/infiniband/hw/qedr/verbs.c
··· 3700 3700 3701 3701 if (rdma_protocol_iwarp(&dev->ibdev, 1)) { 3702 3702 writel(qp->rq.iwarp_db2_data.raw, qp->rq.iwarp_db2); 3703 - mmiowb(); /* for second doorbell */ 3703 + mmiowb(); 3704 3704 } 3705 3705 3706 3706 wr = wr->next;
+1 -1
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
··· 527 527 REG_WR_RELAXED(bp, fp->ustorm_rx_prods_offset + i * 4, 528 528 ((u32 *)&rx_prods)[i]); 529 529 530 - mmiowb(); /* keep prod updates ordered */ 530 + mmiowb(); 531 531 532 532 DP(NETIF_MSG_RX_STATUS, 533 533 "queue[%d]: wrote bd_prod %u cqe_prod %u sge_prod %u\n",
+1 -1
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
··· 5244 5244 { 5245 5245 /* No memory barriers */ 5246 5246 storm_memset_eq_prod(bp, prod, BP_FUNC(bp)); 5247 - mmiowb(); /* keep prod updates ordered */ 5247 + mmiowb(); 5248 5248 } 5249 5249 5250 5250 static int bnx2x_cnic_handle_cfc_del(struct bnx2x *bp, u32 cid,
+1 -1
drivers/scsi/bnx2i/bnx2i_hwi.c
··· 280 280 } else 281 281 writew(count, ep->qp.ctx_base + CNIC_SEND_DOORBELL); 282 282 283 - mmiowb(); /* flush posted PCI writes */ 283 + mmiowb(); 284 284 } 285 285 286 286