diff options
| author | Landon J. Fuller <landonf@FreeBSD.org> | 2018-03-29 19:48:50 +0000 |
|---|---|---|
| committer | Landon J. Fuller <landonf@FreeBSD.org> | 2018-03-29 19:48:50 +0000 |
| commit | be9a13138e1f43e3e333f5069efd5595b6aa542d (patch) | |
| tree | 23264bebaee98732ccd400b2e448ed5bee6f0e36 /sys/mips/broadcom | |
| parent | b9a9e8e9bd2a76869d3787c657816283b72d5f88 (diff) | |
Notes
Diffstat (limited to 'sys/mips/broadcom')
| -rw-r--r-- | sys/mips/broadcom/bhnd_nexus.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/mips/broadcom/bhnd_nexus.c b/sys/mips/broadcom/bhnd_nexus.c index 97ca497e9c9c..b3888c48e39f 100644 --- a/sys/mips/broadcom/bhnd_nexus.c +++ b/sys/mips/broadcom/bhnd_nexus.c @@ -234,10 +234,11 @@ bhnd_nexus_get_dma_translation(device_t dev, device_t child, KASSERT(width > 0 && width <= BHND_DMA_ADDR_64BIT, ("invalid width %u", width)); + /* Is the requested width supported? */ if (width > BHND_DMA_ADDR_32BIT) { /* Backplane must support 64-bit addressing */ - if (!(bp->cc_caps & CHIPC_CAP_BKPLN64)) - return (ENOENT); + if (!(bp->cid.chip_caps & BHND_CAP_BP64)) + width = BHND_DMA_ADDR_32BIT; } /* No DMA address translation required */ |
