Change tegra_pcie_conf_hook() to only give us the defaults without
enabled bus mastering. Previously both bus mastering and ROM decode were enabled at pci_configure_bus() time. Both bus mastering and ROM decode potentially have undesireable side effects. These can best be managed by drivers familiar with their hardware.
This commit is contained in:
parent
143d08947e
commit
33332c25ae
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tegra_pcie.c,v 1.14 2015/12/13 17:39:19 jmcneill Exp $ */
|
||||
/* $NetBSD: tegra_pcie.c,v 1.15 2016/08/17 00:22:56 jakllsch Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2015 Jared D. McNeill <jmcneill@invisible.ca>
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: tegra_pcie.c,v 1.14 2015/12/13 17:39:19 jmcneill Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tegra_pcie.c,v 1.15 2016/08/17 00:22:56 jakllsch Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/bus.h>
|
||||
@ -538,7 +538,7 @@ tegra_pcie_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
|
||||
static int
|
||||
tegra_pcie_conf_hook(void *v, int b, int d, int f, pcireg_t id)
|
||||
{
|
||||
return PCI_CONF_ALL;
|
||||
return PCI_CONF_DEFAULT & ~PCI_CONF_ENABLE_BM;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user