From 93e42deeaadf019d74237402a874ed4df3357c0d Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Mon, 12 Jun 2017 13:55:59 +0200 Subject: [PATCH] only eval register 0x1c for modulator type 1 --- ddbridge/ddbridge.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ddbridge/ddbridge.c b/ddbridge/ddbridge.c index 0ec1761..8f29fcc 100644 --- a/ddbridge/ddbridge.c +++ b/ddbridge/ddbridge.c @@ -308,8 +308,9 @@ static int __devinit ddb_probe(struct pci_dev *pdev, ddbwritel(dev, 0, DMA_BASE_WRITE); if (dev->link[0].info->type == DDB_MOD) { - if (ddbreadl(dev, 0x1c) == 4) - dev->link[0].info->port_num = 4; + if (dev->link[0].info->version == 1) + if (ddbreadl(dev, 0x1c) == 4) + dev->link[0].info->port_num = 4; } stat = ddb_irq_init(dev);