diff options
author | Xianting Tian <tian.xianting@h3c.com> | 2020-09-16 08:21:29 +0200 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2020-09-16 15:54:53 +0200 |
commit | 42d8a346c5c06689f4f25aecfa287a5aca501a55 (patch) | |
tree | 98c1fc050338dcda68cb1a600dd3729cfd87de4d /drivers/char/ipmi/ipmi_msghandler.c | |
parent | ipmi: Clean up some printks (diff) | |
download | linux-42d8a346c5c06689f4f25aecfa287a5aca501a55.tar.xz linux-42d8a346c5c06689f4f25aecfa287a5aca501a55.zip |
ipmi: add retry in try_get_dev_id()
Use a retry machanism to give the BMC more opportunities to correctly
respond when we receive specific completion codes.
This is similar to what is done in __get_device_id().
Signed-off-by: Xianting Tian <tian.xianting@h3c.com>
Message-Id: <20200916062129.26129-1-tian.xianting@h3c.com>
[Moved GET_DEVICE_ID_MAX_RETRY to include/linux/ipmi.h, reworded some
text.]
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/ipmi/ipmi_msghandler.c')
-rw-r--r-- | drivers/char/ipmi/ipmi_msghandler.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index e56409659459..555c3b1e4926 100644 --- a/drivers/char/ipmi/ipmi_msghandler.c +++ b/drivers/char/ipmi/ipmi_msghandler.c @@ -62,8 +62,6 @@ enum ipmi_panic_event_op { #define IPMI_PANIC_DEFAULT IPMI_SEND_PANIC_EVENT_NONE #endif -#define GET_DEVICE_ID_MAX_RETRY 5 - static enum ipmi_panic_event_op ipmi_send_panic_event = IPMI_PANIC_DEFAULT; static int panic_op_write_handler(const char *val, |