]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ipmi: Make ipmi_demangle_device_id more generic
authorJeremy Kerr <jk@ozlabs.org>
Fri, 25 Aug 2017 07:47:23 +0000 (15:47 +0800)
committerCorey Minyard <cminyard@mvista.com>
Wed, 27 Sep 2017 21:03:45 +0000 (16:03 -0500)
commitc468f911b73beb39b20f7e5f97a35d41f038b31b
tree7695d0f263fff5a5b46e270328d8390f4f5cdd59
parenta9137c3dfae9f371e302ee3fc6658f0fe6b904e7
ipmi: Make ipmi_demangle_device_id more generic

Currently, ipmi_demagle_device_id requires a full response buffer in its
data argument. This means we can't use it to parse a response in a
struct ipmi_recv_msg, which has the netfn and cmd as separate bytes.

This change alters the definition and users of ipmi_demangle_device_id
to use a split netfn, cmd and data buffer, so it can be used with
non-sequential responses.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Fixed the ipmi_ssif.c and ipmi_si_intf.c changes to use data from the
response, not the data from the message, when passing info to the
ipmi_demangle_device_id() function.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_si_intf.c
drivers/char/ipmi/ipmi_ssif.c
include/linux/ipmi_smi.h