switchtec: Add "running" status flag to fw partition info ioctl
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 15 Jun 2017 20:12:23 +0000 (14:12 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 27 Jun 2017 23:23:14 +0000 (18:23 -0500)
commit079e3bc588465f6216bfc5ad61540b5db4616598
tree43219000fb8694f00ab9b8220f06fff778665a09
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
switchtec: Add "running" status flag to fw partition info ioctl

This flag lets userspace know which firmware partitions are currently in
use as opposed to just active.  "Active" means they will be in use for the
next reboot, whereas "running" means they are currently in use.

If an old kernel is in use, or the firmware doesn't support these fields,
the new flag will not be set in the output.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Kurt Schwemmer <kurt.schwemmer@microsemi.com>
drivers/pci/switch/switchtec.c
include/uapi/linux/switchtec_ioctl.h