From a8c5cb994341d4af6d75286fcb66684e53295135 Mon Sep 17 00:00:00 2001 From: Finn Thain Date: Mon, 25 Jun 2018 21:46:11 +1000 Subject: 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 Tested-by: Stan Johnson Signed-off-by: Finn Thain Reviewed-by: Christoph Hellwig Signed-off-by: Geert Uytterhoeven --- drivers/nubus/bus.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/nubus') 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 @@ // Copyright (C) 2017 Finn Thain #include +#include #include #include #include @@ -93,6 +94,8 @@ int nubus_device_register(struct nubus_board *board) board->dev.release = nubus_device_release; board->dev.bus = &nubus_bus_type; 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); } -- cgit