diff options
author | Xianting Tian <tian.xianting@h3c.com> | 2020-09-16 14:21:29 +0800 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2020-09-16 08:54:53 -0500 |
commit | 42d8a346c5c06689f4f25aecfa287a5aca501a55 (patch) | |
tree | 98c1fc050338dcda68cb1a600dd3729cfd87de4d /include/linux/ipmi.h | |
parent | a190db945bccdb8c51a02fc26a9f79b860dc586e (diff) | |
download | lwn-42d8a346c5c06689f4f25aecfa287a5aca501a55.tar.gz lwn-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 'include/linux/ipmi.h')
-rw-r--r-- | include/linux/ipmi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ipmi.h b/include/linux/ipmi.h index ef61676cfe05..52850a02a3d0 100644 --- a/include/linux/ipmi.h +++ b/include/linux/ipmi.h @@ -333,4 +333,6 @@ struct ipmi_smi_info { /* This is to get the private info of struct ipmi_smi */ extern int ipmi_get_smi_info(int if_num, struct ipmi_smi_info *data); +#define GET_DEVICE_ID_MAX_RETRY 5 + #endif /* __LINUX_IPMI_H */ |