Commit a8c5cb99 authored by Finn Thain's avatar Finn Thain Committed by Geert Uytterhoeven

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: default avatarStan Johnson <userm57@yahoo.com>
Signed-off-by: default avatarFinn Thain <fthain@telegraphics.com.au>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent cf85d895
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
// Copyright (C) 2017 Finn Thain // Copyright (C) 2017 Finn Thain
#include <linux/device.h> #include <linux/device.h>
#include <linux/dma-mapping.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/nubus.h> #include <linux/nubus.h>
#include <linux/seq_file.h> #include <linux/seq_file.h>
...@@ -93,6 +94,8 @@ int nubus_device_register(struct nubus_board *board) ...@@ -93,6 +94,8 @@ int nubus_device_register(struct nubus_board *board)
board->dev.release = nubus_device_release; board->dev.release = nubus_device_release;
board->dev.bus = &nubus_bus_type; board->dev.bus = &nubus_bus_type;
dev_set_name(&board->dev, "slot.%X", board->slot); dev_set_name(&board->dev, "slot.%X", board->slot);
board->dev.dma_mask = &board->dev.coherent_dma_mask;
dma_set_mask(&board->dev, DMA_BIT_MASK(32));
return device_register(&board->dev); return device_register(&board->dev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment