cxgb4: Wait for device to get ready before reading any register
authorHariprasad Shenai <hariprasad@chelsio.com>
Thu, 9 Oct 2014 00:18:47 +0000 (05:48 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Oct 2014 22:53:52 +0000 (18:53 -0400)
commit8203b509c5b7aab7a8170626ce02372c61da2cdd
tree372c801e34ee761dc51906c3aabc79e8b50ca1e5
parent897d55df3ca794ad4522472d46aa2dbbface8c37
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 <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
This page took 0.025816 seconds and 5 git commands to generate.