]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf52013916f952865a6f46f31d4ab06388840399c
tree3b7c93d16550063c81359b9c8a383e1fc7269c69
parentd8f0651ae68c19c43024ace85e91bdca60fdf14c
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