]> 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)
commit337868cc39218c5741e94d3a58f4b36f04d54c50
tree3b7c93d16550063c81359b9c8a383e1fc7269c69
parentcaea61cd5d7d6a5f8b11c20c90fdb68a812aa69d
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