devices/ccat/module.c
branchstable-1.5
changeset 2637 1d9be5716dee
parent 2636 0613017547fe
child 2638 5995331a55fe
equal deleted inserted replaced
2636:0613017547fe 2637:1d9be5716dee
   286 	if ((status = pci_request_regions(pdev, KBUILD_MODNAME))) {
   286 	if ((status = pci_request_regions(pdev, KBUILD_MODNAME))) {
   287 		pr_info("allocate mem_regions failed.\n");
   287 		pr_info("allocate mem_regions failed.\n");
   288 		goto cleanup_pci_device;
   288 		goto cleanup_pci_device;
   289 	}
   289 	}
   290 
   290 
   291 	if (!dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64))) {
   291 	/* CCAT is unable to access memory above 4 GB */
   292 		pr_debug("64 bit DMA supported, pci rev: %u\n", revision);
   292 	if (!dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32))) {
   293 	} else if (!dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32))) {
       
   294 		pr_debug("32 bit DMA supported, pci rev: %u\n", revision);
   293 		pr_debug("32 bit DMA supported, pci rev: %u\n", revision);
   295 	} else {
   294 	} else {
   296 		pr_warn("No suitable DMA available, pci rev: %u\n", revision);
   295 		pr_warn("No suitable DMA available, pci rev: %u\n", revision);
   297 	}
   296 	}
   298 
   297