tg3: Fix the setting of the APE_HAS_NCSI flag
authorMichael Chan <mchan@broadcom.com>
Mon, 16 Jul 2012 16:23:59 +0000 (16:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 06:10:30 +0000 (23:10 -0700)
commit165f4d1cb3d7a10c5bc8c0fdae63323354f5a225
treee15e391f1dff26d1f2ed0d75d7304409fd5e009a
parent5a308f40bfe27fcfd1db3970afe18b635f23c182
tg3: Fix the setting of the APE_HAS_NCSI flag

The driver currently skips setting this flag if the VPD contains the
firmware version string.  We fix this by separating the probing of NCSI
from the reading of the NCSI version string.  The APE_HAS_NCSI flag is
needed to properly read sensor data.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c