>From e05770d6c4dffedae03aadbf28a23e2861a9bb2e Mon Sep 17 00:00:00 2001
From: Stefan Hajnoczi <[email protected]>
Date: Fri, 22 Jan 2010 18:12:48 +0000
Subject: [PATCH] [rtl818x] Remove broken mmio register support

The rtl818x driver uses programmed I/O but has a fallback to
memory-mapped I/O registers.  The fallback currently will not work since
the registers are accessed using inl()/outl() programmed I/O functions
in the driver.  This patch removes the fallback to we fail cleanly when
programmed I/O is not possible.

Signed-off-by: Stefan Hajnoczi <[email protected]>
---
 src/drivers/net/rtl818x/rtl818x.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/drivers/net/rtl818x/rtl818x.c
b/src/drivers/net/rtl818x/rtl818x.c
index 167409d..7c7ca48 100644
--- a/src/drivers/net/rtl818x/rtl818x.c
+++ b/src/drivers/net/rtl818x/rtl818x.c
@@ -680,9 +680,6 @@ static int rtl818x_probe(struct pci_device *pdev,
        dev->netdev->dev = &pdev->dev;

        priv->map = (struct rtl818x_csr *)pdev->ioaddr;
-       if (!priv->map)
-               priv->map = (struct rtl818x_csr *)pdev->membase;
-
        if (!priv->map) {
                DBG("rtl818x: cannot find device memory\n");
                err = -ENXIO;
-- 
1.6.5
_______________________________________________
gPXE mailing list
[email protected]
http://etherboot.org/mailman/listinfo/gpxe

Reply via email to