tg3: APE heartbeat changes
authorPrashant Sreedharan <prashant.sreedharan@broadcom.com>
Mon, 19 Feb 2018 06:57:04 +0000 (12:27 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Feb 2018 19:16:52 +0000 (14:16 -0500)
commit506b0a395f26e52b3f18827e0de1be051acb77ab
tree3b7c93d16550063c81359b9c8a383e1fc7269c69
parentd1c95af366961101819f07e3c64d44f3be7f0367
tg3: APE heartbeat changes

In ungraceful host shutdown or driver crash case BMC connectivity is
lost. APE firmware is missing the driver state in this
case to keep the BMC connectivity alive.
This patch has below change to address this issue.

Heartbeat mechanism with APE firmware. This heartbeat mechanism
is needed to notify the APE firmware about driver state.

This patch also has the change in wait time for APE event from
1ms to 20ms as there can be some delay in getting response.

v2: Drop inline keyword as per David suggestion.

Signed-off-by: Prashant Sreedharan <prashant.sreedharan@broadcom.com>
Signed-off-by: Satish Baddipadige <satish.baddipadige@broadcom.com>
Signed-off-by: Siva Reddy Kallam <siva.kallam@broadcom.com>
Acked-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c
drivers/net/ethernet/broadcom/tg3.h