Re: [PATCH 2/4] misc: hpilo: Exclude unsupported device via blacklist

2019-02-21 Thread Greg KH
On Thu, Feb 21, 2019 at 09:35:07PM -0700, Jerry Hoemann wrote: > On Thu, Feb 21, 2019 at 09:33:55AM +0100, Greg KH wrote: > > On Thu, Feb 21, 2019 at 04:04:40PM +0800, Matt Hsiao wrote: > > > > +static const struct pci_device_id ilo_blacklist[] = { > > > + /* auxiliary iLO */ > > > + {PCI_DEVICE_S

Re: [PATCH 2/4] misc: hpilo: Exclude unsupported device via blacklist

2019-02-21 Thread Jerry Hoemann
On Thu, Feb 21, 2019 at 09:33:55AM +0100, Greg KH wrote: > On Thu, Feb 21, 2019 at 04:04:40PM +0800, Matt Hsiao wrote: > > +static const struct pci_device_id ilo_blacklist[] = { > > + /* auxiliary iLO */ > > + {PCI_DEVICE_SUB(PCI_VENDOR_ID_HP, 0x3307, PCI_VENDOR_ID_HP, 0x1979)}, > > + {} > >

Re: [PATCH 2/4] misc: hpilo: Exclude unsupported device via blacklist

2019-02-21 Thread Greg KH
On Thu, Feb 21, 2019 at 04:04:40PM +0800, Matt Hsiao wrote: > Instead of having explicit if statments excluding devices, > use a pci_device_id table of devices to blacklist. > > Signed-off-by: Matt Hsiao > --- > drivers/misc/hpilo.c | 13 + > 1 file changed, 9 insertions(+), 4 deleti

[PATCH 2/4] misc: hpilo: Exclude unsupported device via blacklist

2019-02-21 Thread Matt Hsiao
Instead of having explicit if statments excluding devices, use a pci_device_id table of devices to blacklist. Signed-off-by: Matt Hsiao --- drivers/misc/hpilo.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/misc/hpilo.c b/drivers/misc/hpilo.c index 01c