]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerJoe Jin <joe.jin@oracle.com>
Tue, 28 Aug 2012 07:23:08 +0000 (15:23 +0800)
commitdf86dd3bbc224efa7ff542a8b6cbc98c260afa68
tree7af1599ecc918519baf190926e274bcc2c8e07af
parentaa493944cd767b602e6356b505693a5ed1d1311b
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.

(cherry picked from commit 165f4d1cb3d7a10c5bc8c0fdae63323354f5a225)
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c