From: Dean Luick Date: Sat, 5 Mar 2016 16:50:22 +0000 (-0800) Subject: IB/hfi1: Reduce hardware mutex timeout X-Git-Tag: v4.6-rc1~47^2^3~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0506f4c56d66f4a8413eaeb57212cf8166e30e9;p=platform%2Fkernel%2Flinux-exynos.git IB/hfi1: Reduce hardware mutex timeout The hardware mutex is now held only long enough to set or clear flags. Reduce the timeout to something more reasonable. Reviewed-by: Mitko Haralanov Reviewed-by: Easwar Hariharan Signed-off-by: Dean Luick Signed-off-by: Jubin John Signed-off-by: Doug Ledford --- diff --git a/drivers/staging/rdma/hfi1/firmware.c b/drivers/staging/rdma/hfi1/firmware.c index 1ea1ad8..3040162 100644 --- a/drivers/staging/rdma/hfi1/firmware.c +++ b/drivers/staging/rdma/hfi1/firmware.c @@ -198,7 +198,7 @@ static const struct firmware *platform_config; #define RSA_ENGINE_TIMEOUT 100 /* ms */ /* hardware mutex timeout, in ms */ -#define HM_TIMEOUT 4000 /* 4 s */ +#define HM_TIMEOUT 10 /* ms */ /* 8051 memory access timeout, in us */ #define DC8051_ACCESS_TIMEOUT 100 /* us */