summaryrefslogtreecommitdiff
path: root/sys/dev/isa
diff options
context:
space:
mode:
authorjmcneill <jmcneill@NetBSD.org>2022-04-18 10:09:07 +0000
committerjmcneill <jmcneill@NetBSD.org>2022-04-18 10:09:07 +0000
commited5819357fef80ff33de2a828a025c8ff6ca27d3 (patch)
treedb9d015ea654e4b7d1635c623b807a1fa3cfae31 /sys/dev/isa
parent91110ef3adb94c3a1a1474edea9a3046495f9aa6 (diff)
Do not attach if the parent bus failed to provide an ISA chipset tag.
Diffstat (limited to 'sys/dev/isa')
-rw-r--r--sys/dev/isa/fdc_isa.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/isa/fdc_isa.c b/sys/dev/isa/fdc_isa.c
index 9b6c35cb41c..4862c271c3b 100644
--- a/sys/dev/isa/fdc_isa.c
+++ b/sys/dev/isa/fdc_isa.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fdc_isa.c,v 1.20 2015/04/13 16:33:24 riastradh Exp $ */
+/* $NetBSD: fdc_isa.c,v 1.21 2022/04/18 10:09:07 jmcneill Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdc_isa.c,v 1.20 2015/04/13 16:33:24 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdc_isa.c,v 1.21 2022/04/18 10:09:07 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -131,6 +131,10 @@ fdc_isa_probe(device_t parent, cfdata_t match, void *aux)
if (ia->ia_drq[0].ir_drq == ISA_UNKNOWN_DRQ)
return (0);
+ /* ISA chipset tag is required for DMA support. */
+ if (ia->ia_ic == NULL)
+ return (0);
+
/* Map the I/O space. */
iobase = ia->ia_io[0].ir_addr;
if (bus_space_map(iot, iobase, 6 /* FDC_NPORT */, 0, &base_ioh))