From: Michael Grzeschik Date: Wed, 28 Jun 2017 16:32:20 +0000 (+0200) Subject: arcnet: com20020-pci: handle backplane mode depending on card type X-Git-Tag: v4.14-rc1~596^2~63^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52ab12e4f99437a046962e6486b0efded52846af;p=platform%2Fkernel%2Flinux-rpi.git arcnet: com20020-pci: handle backplane mode depending on card type We read the backplane mode of each subcard from bits 2 and 3 of the misc register. Signed-off-by: Michael Grzeschik Signed-off-by: David S. Miller --- diff --git a/drivers/net/arcnet/com20020-pci.c b/drivers/net/arcnet/com20020-pci.c index dec300c..f5854ab 100644 --- a/drivers/net/arcnet/com20020-pci.c +++ b/drivers/net/arcnet/com20020-pci.c @@ -199,6 +199,8 @@ static int com20020pci_probe(struct pci_dev *pdev, lp->timeout = timeout; lp->hw.owner = THIS_MODULE; + lp->backplane = (inb(priv->misc) >> (2 + i)) & 0x1; + /* Get the dev_id from the PLX rotary coder */ if (!strncmp(ci->name, "EAE PLX-PCI MA1", 15)) dev->dev_id = 0xc;