Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1613556 > unrolled thread
| Started by | Bjorn Helgaas <helgaas@kernel.org> |
|---|---|
| First post | 2017-03-31 02:00 +0200 |
| Last post | 2017-03-31 02:00 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] pci: quirk cavium: Add device ID range check Bjorn Helgaas <helgaas@kernel.org> - 2017-03-31 02:00 +0200
| From | Bjorn Helgaas <helgaas@kernel.org> |
|---|---|
| Date | 2017-03-31 02:00 +0200 |
| Subject | Re: [PATCH] pci: quirk cavium: Add device ID range check |
| Message-ID | <tqS8V-5fU-5@gated-at.bofh.it> |
On Fri, Mar 17, 2017 at 12:46:29PM +0530, Manish Jaggi wrote: > ACS quirk applies to devices with ID in the range a000-a0XX. > The patch adds a check.This matches on-chip pci devices for > CN81xx/CN83xx/CN88xx > > This patch adds check to > b404bcfbf0 : PCI: Add ACS quirk for all Cavium devices > > Signed-off-by: Manish Jaggi <mjaggi@cavium.com> > Acked-by: David Daney <david.daney@cavium.com> Applied with Alex's ack to pci/host-thunder for v4.12, thanks! > --- > drivers/pci/quirks.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c > index f754453..178242d 100644 > --- a/drivers/pci/quirks.c > +++ b/drivers/pci/quirks.c > @@ -4094,6 +4094,9 @@ static int pci_quirk_cavium_acs(struct pci_dev *dev, u16 acs_flags) > acs_flags &= ~(PCI_ACS_SV | PCI_ACS_TB | PCI_ACS_RR | > PCI_ACS_CR | PCI_ACS_UF | PCI_ACS_DT); > + if (!((dev->device >= 0xa000) && (dev->device <= 0xa0ff))) > + return -ENOTTY; > + > return acs_flags ? 0 : 1; > } > -- > 2.7.4 > >
Back to top | Article view | linux.kernel
csiph-web