diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2018-06-25 07:46:11 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2018-07-23 09:07:12 -0400 |
commit | a8c5cb994341d4af6d75286fcb66684e53295135 (patch) | |
tree | ba12a8a3c4c3683601b0388ed8ab5e2c9b63f663 /drivers/nubus | |
parent | cf85d89562f39cc7ae73de54639f1915a9195b7a (diff) |
nubus: Set default dma mask for nubus_board devices
A 32-bit mask is used by default because a NuBus slot has 32
address/data lines and a NuBus board is free to use all of them.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/nubus')
-rw-r--r-- | drivers/nubus/bus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/nubus/bus.c b/drivers/nubus/bus.c index a59b6c4bb5b8..ad3d17c42e23 100644 --- a/drivers/nubus/bus.c +++ b/drivers/nubus/bus.c | |||
@@ -5,6 +5,7 @@ | |||
5 | // Copyright (C) 2017 Finn Thain | 5 | // Copyright (C) 2017 Finn Thain |
6 | 6 | ||
7 | #include <linux/device.h> | 7 | #include <linux/device.h> |
8 | #include <linux/dma-mapping.h> | ||
8 | #include <linux/list.h> | 9 | #include <linux/list.h> |
9 | #include <linux/nubus.h> | 10 | #include <linux/nubus.h> |
10 | #include <linux/seq_file.h> | 11 | #include <linux/seq_file.h> |
@@ -93,6 +94,8 @@ int nubus_device_register(struct nubus_board *board) | |||
93 | board->dev.release = nubus_device_release; | 94 | board->dev.release = nubus_device_release; |
94 | board->dev.bus = &nubus_bus_type; | 95 | board->dev.bus = &nubus_bus_type; |
95 | dev_set_name(&board->dev, "slot.%X", board->slot); | 96 | dev_set_name(&board->dev, "slot.%X", board->slot); |
97 | board->dev.dma_mask = &board->dev.coherent_dma_mask; | ||
98 | dma_set_mask(&board->dev, DMA_BIT_MASK(32)); | ||
96 | return device_register(&board->dev); | 99 | return device_register(&board->dev); |
97 | } | 100 | } |
98 | 101 | ||