NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: athn status - WN861N support?



On Mon, Nov 25, 2013 at 09:54:54PM +0100, Sébastien Bocahu wrote:
> > >   athn0 at pci0 dev 17 function 0
> > >   athn0: cannot map register space
> > 
> > Can you please provide the output of "pcictl dump" for this device?
> 
> Here it is...

Sorry for the delay - this looks completely ok, I don't see why the mapping
would fail. Can you build a kernel with the "cannot map register space"
message changed to print the error code?

Index: if_athn_pci.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/if_athn_pci.c,v
retrieving revision 1.9
diff -u -r1.9 if_athn_pci.c
--- if_athn_pci.c       8 Dec 2013 11:32:51 -0000       1.9
+++ if_athn_pci.c       8 Dec 2013 11:44:01 -0000
@@ -192,7 +192,8 @@
        error = pci_mapreg_map(pa, ATHN_PCI_MMBA, memtype, 0, &psc->psc_iot,
            &psc->psc_ioh, NULL, &psc->psc_mapsz);
        if (error != 0) {
-               aprint_error_dev(self, "cannot map register space\n");
+               aprint_error_dev(self, "cannot map register space, error %d\n"
+                   error);
                goto fail;
        }
 


Does the dmesg contain any other pci related errors? Maybe something goes
wrong at the bus level?

Martin


Home | Main Index | Thread Index | Old Index