]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/zorro/zorro.c
lan78xx: Don't reset the interface on open
[mirror_ubuntu-bionic-kernel.git] / drivers / zorro / zorro.c
index cc1b1ac57d61e8b75ffde0ae2ea9c8f3a66f04be..47728477297e8c663c0d07f551d004f823b17360 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/bitops.h>
 #include <linux/string.h>
 #include <linux/platform_device.h>
+#include <linux/dma-mapping.h>
 #include <linux/slab.h>
 
 #include <asm/byteorder.h>
@@ -185,6 +186,17 @@ static int __init amiga_zorro_probe(struct platform_device *pdev)
                z->dev.parent = &bus->dev;
                z->dev.bus = &zorro_bus_type;
                z->dev.id = i;
+               switch (z->rom.er_Type & ERT_TYPEMASK) {
+               case ERT_ZORROIII:
+                       z->dev.coherent_dma_mask = DMA_BIT_MASK(32);
+                       break;
+
+               case ERT_ZORROII:
+               default:
+                       z->dev.coherent_dma_mask = DMA_BIT_MASK(24);
+                       break;
+               }
+               z->dev.dma_mask = &z->dev.coherent_dma_mask;
        }
 
        /* ... then register them */