[openib-general] [PATCH][5/12] InfiniBand/mthca: don't write ECR in MSI-X mode

Roland Dreier roland at topspin.com
Sun Jan 23 22:14:23 PST 2005


From: "Michael S. Tsirkin" <mst at mellanox.co.il>

We don't need to write to the ECR to clear events when using MSI-X,
since we never read the ECR anyway.

Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>
Signed-off-by: Roland Dreier <roland at topspin.com>

--- linux-bk.orig/drivers/infiniband/hw/mthca/mthca_eq.c	2005-01-23 20:38:50.946247760 -0800
+++ linux-bk/drivers/infiniband/hw/mthca/mthca_eq.c	2005-01-23 20:47:40.946675448 -0800
@@ -381,7 +381,6 @@
 	struct mthca_eq  *eq  = eq_ptr;
 	struct mthca_dev *dev = eq->dev;
 
-	writel(eq->ecr_mask, dev->hcr + MTHCA_ECR_CLR_OFFSET + 4);
 	mthca_eq_int(dev, eq);
 
 	/* MSI-X vectors always belong to us */




More information about the general mailing list