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

From: Roland Dreier
Date: Mon Jan 24 2005 - 01:27:25 EST


From: "Michael S. Tsirkin" <mst@xxxxxxxxxxxxxx>

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@xxxxxxxxxxxxxx>
Signed-off-by: Roland Dreier <roland@xxxxxxxxxxx>

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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/