misc: hpilo: Exclude unsupported device via blacklist
authorMatt Hsiao <matt.hsiao@hpe.com>
Wed, 27 Feb 2019 03:25:29 +0000 (11:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 15:00:20 +0000 (16:00 +0100)
commitbc7de897f26c9db1fc3e445d210208945aae3b6e
treedbdaa070160e0cdb91a566433bb7db661607d07a
parent9d49fff91b85d6ac601054d4ab45758e5f5186c0
misc: hpilo: Exclude unsupported device via blacklist

Instead of having explicit if statements excluding devices,
use a pci_device_id table of devices to blacklist.

HPE will put out minor updates to the iLO using the same device
info except for the subsystem device id. hpilo driver takes the
approach to claim based upon {Vendor, Device, SubVendor} and it
allows old software to work on new hardware without patching.

As our primary way to support our customers is via distros, the
patching process could take months to go upstream and then
backported to multiple releases of multiple distros.

This approach worked fairly well as this is only the second time
in 10+ years that we need to blacklist an instance.

Signed-off-by: Matt Hsiao <matt.hsiao@hpe.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/hpilo.c