[Linux-stable-mirror] [PATCH 4.14 046/146] IB/hfi: Only read capability registers if the capability exists