Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci As suggested in the previous commit, the overwri...
details: https://anonhg.NetBSD.org/src/rev/5f5590cb82e5
branches: trunk
changeset: 778685:5f5590cb82e5
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sun Apr 08 13:08:02 2012 +0000
description:
As suggested in the previous commit, the overwrite of the pci_attach_args
is a bug. Although I have not tested on real hardware, Linux's
pata_sl82c105.c only looks at the revision of the PCI bridge.
diffstat:
sys/dev/pci/slide.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (39 lines):
diff -r 1615e4581695 -r 5f5590cb82e5 sys/dev/pci/slide.c
--- a/sys/dev/pci/slide.c Sun Apr 08 12:44:02 2012 +0000
+++ b/sys/dev/pci/slide.c Sun Apr 08 13:08:02 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: slide.c,v 1.22 2011/04/04 20:37:56 dyoung Exp $ */
+/* $NetBSD: slide.c,v 1.23 2012/04/08 13:08:02 jakllsch Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: slide.c,v 1.22 2011/04/04 20:37:56 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: slide.c,v 1.23 2012/04/08 13:08:02 jakllsch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -128,7 +128,6 @@
static void
sl82c105_chip_map(struct pciide_softc *sc, const struct pci_attach_args *pa)
{
- struct pci_attach_args pa0;
struct pciide_channel *cp;
pcireg_t interface, idecr;
int channel;
@@ -141,10 +140,9 @@
/*
* Check to see if we're part of the Winbond 83c553 Southbridge.
- * If so, we need to disable DMA on rev. <= 5 of that chip.
+ * If so, we need to disable DMA on rev. <= 5 of the southbridge.
*/
- if (pci_find_device(&pa0, sl82c105_bugchk)) {
- pa = &pa0;
+ if (pci_find_device(NULL, sl82c105_bugchk)) {
aprint_verbose(" but disabled due to 83c553 rev. <= 0x05");
sc->sc_dma_ok = 0;
} else
Home |
Main Index |
Thread Index |
Old Index