From: Hariprasad Shenai Date: Thu, 9 Oct 2014 00:18:47 +0000 (+0530) Subject: cxgb4: Wait for device to get ready before reading any register X-Git-Tag: fixes-against-v3.18-rc2~115^2~18^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8203b509c5b7aab7a8170626ce02372c61da2cdd;p=pandora-kernel.git cxgb4: Wait for device to get ready before reading any register Call t4_wait_dev_ready() before attempting to read the PL_WHOAMI register (to determine which function we have been attached to). This prevents us from failing on that read if it comes right after a RESET. Signed-off-by: Hariprasad Shenai Signed-off-by: David S. Miller --- Reading git-diff-tree failed