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-Url: https://git.stricted.de/?a=commitdiff_plain;h=52ab12e4f99437a046962e6486b0efded52846af;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 dec300cac55f..f5854ab7dc32 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;