From: Jack Morgenstein Date: Mon, 28 Aug 2006 16:08:53 +0000 (+0300) Subject: IB/mthca: Fix default static rate returned for Tavor in AV X-Git-Tag: v2.6.19-rc1~1293^2~31 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b046a04e162dc7f468700a0817acda0321b2b3ae;p=linux-2.6-omap-h63xx.git IB/mthca: Fix default static rate returned for Tavor in AV When default static rate is returned for Tavor, need to translate it to an ib rate value. Signed-off-by: Jack Morgenstein Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/mthca/mthca_av.c b/drivers/infiniband/hw/mthca/mthca_av.c index e215041b2db..69599455aca 100644 --- a/drivers/infiniband/hw/mthca/mthca_av.c +++ b/drivers/infiniband/hw/mthca/mthca_av.c @@ -90,7 +90,7 @@ static enum ib_rate tavor_rate_to_ib(u8 mthca_rate, u8 port_rate) case MTHCA_RATE_TAVOR_1X: return IB_RATE_2_5_GBPS; case MTHCA_RATE_TAVOR_1X_DDR: return IB_RATE_5_GBPS; case MTHCA_RATE_TAVOR_4X: return IB_RATE_10_GBPS; - default: return port_rate; + default: return mult_to_ib_rate(port_rate); } }