summaryrefslogtreecommitdiff
path: root/drivers/char/ipmi/ipmi_si_intf.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2017-08-25 15:47:24 +0800
committerCorey Minyard <cminyard@mvista.com>2017-09-27 16:03:45 -0500
commitaa9c9ab2443e3b9562c6c7cfc245a9e43b557d14 (patch)
tree99bf8d6bf8385dbdd62b435ef88de27d119b97fd /drivers/char/ipmi/ipmi_si_intf.c
parent68e7e50f195f34d0d539282779cad073d999192b (diff)
ipmi: allow dynamic BMC version information
Currently, it's up to the IPMI SMIs to provide the product & version details of BMCs behind registered IPMI SMI interfaces. This device ID is provided on SMI regsitration, and kept around for all future queries. However, this version information isn't always static. For example, a BMC may be upgraded at runtime, making the old version information stale. This change allows querying the BMC device ID & version information dynamically. If no static device_id argument is provided to ipmi_register_smi, then the IPMI core code will perform a Get Device ID IPMI command to query the version information when needed. We keep a short-term cache of this information so we don't need to re-query for every attribute access. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> I basically rewrote this, I fixed some locking issues and simplified things. Same functional change, though. Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/ipmi/ipmi_si_intf.c')
0 files changed, 0 insertions, 0 deletions