OSDN Git Service

platform/mellanox: mlxreg-hotplug: Improve mechanism of ASIC health discovery
authorVadim Pasternak <vadimp@mellanox.com>
Thu, 26 Jul 2018 22:40:58 +0000 (22:40 +0000)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 2 Aug 2018 00:41:31 +0000 (17:41 -0700)
commit66342d1c9c2460fe7d2d9c75f7e88f14d88318f2
tree0a7dba1d3bf522da90654062bee924167516d6c0
parent0378123c580091b4c2972a6e4fcb3dcb4686667a
platform/mellanox: mlxreg-hotplug: Improve mechanism of ASIC health discovery

Simplify the logic of ASIC health discovery.
ASIC device can indicate its health state as a good, booting or dormant.
During ASIC reset the device is dropped to dormant state and should get to
the stable good health state through the intermediate booting state.
The sequence for getting to the steady state health after reset is:
(dormant -> booting -> good)+.
Initial implementation assumes that ?good? within this sequence is always
repeated twice and device is getting steady state only after the second
?good?. This patch removes this dependency, since the second ?good? is
received because of the noise on line and can be ignored. Device reaches
steady state after the first ?good? is received.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/mellanox/mlxreg-hotplug.c