change SDR to 16 outputs

This commit is contained in:
Ralph Metzler 2017-04-10 11:45:43 +02:00
parent 2aee51e447
commit ae37a1e4e9
1 changed files with 5 additions and 1 deletions

View File

@ -118,7 +118,11 @@ static int __devinit ddb_irq_msi(struct ddb *dev, int nr)
#ifdef CONFIG_PCI_MSI
if (msi && pci_msi_enabled()) {
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0))
stat = pci_enable_msi_range(dev->pdev, 1, nr);
#else
stat = pci_alloc_irq_vectors(dev->pdev, 1, nr, PCI_IRQ_MSI);
#endif
if (stat >= 1) {
dev->msi = stat;
pr_info("DDBridge: using %d MSI interrupt(s)\n",
@ -528,7 +532,7 @@ static struct ddb_info ddb_sdr = {
.name = "Digital Devices SDR",
.version = 3,
.regmap = &octopus_sdr_map,
.port_num = 20,
.port_num = 16,
.temp_num = 1,
.tempmon_irq = 8,
};