public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.5.24 : drivers/scsi/inia100.c
@ 2002-06-24  3:46 Frank Davis
  2002-06-24  6:30 ` Francois Romieu
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Davis @ 2002-06-24  3:46 UTC (permalink / raw)
  To: linux-kernel; +Cc: fdavis

Hello all,
  This patch adds the DMA mapping check (1st step for 
Documentation/DMA-mapping.txt compliance). Please review.

Regards,
Frank

--- drivers/scsi/inia100.c.old	Wed Feb 13 21:27:00 2002
+++ drivers/scsi/inia100.c	Sun Jun 23 23:30:10 2002
@@ -248,7 +248,10 @@
 					continue;
 				if (iAdapters >= MAX_SUPPORTED_ADAPTERS)
 					break;	/* Never greater than maximum   */
-
+				if(pci_set_dma_mask(pdev, 0xffffffff))
+				{
+					printk(KERN_WARNING "inia100 : No suitable DMA available.\n");
+				}
 				if (i == 0) {
 					/*
 					   printk("inia100: The RAID controller is not supported by\n");


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] 2.5.24 : drivers/scsi/inia100.c
  2002-06-24  3:46 [PATCH] 2.5.24 : drivers/scsi/inia100.c Frank Davis
@ 2002-06-24  6:30 ` Francois Romieu
  2002-06-24  6:48   ` Frank Davis
  0 siblings, 1 reply; 3+ messages in thread
From: Francois Romieu @ 2002-06-24  6:30 UTC (permalink / raw)
  To: Frank Davis; +Cc: linux-kernel

Greetings,

Frank Davis <fdavis@si.rr.com> :
> Hello all,
>   This patch adds the DMA mapping check (1st step for 
> Documentation/DMA-mapping.txt compliance). Please review.

- please take a look at Documentation/CodingStyle
- if pci_set_dma_mask() fails, the driver shouldn't go on as if nothing 
  happened. See what other drivers do (net/acenic.c for example)
- the interesting part of DMA mapping conversion is more a matter of
  memory descriptor handling (and phys_to_virt/friends removal)

-- 
Ueimor

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] 2.5.24 : drivers/scsi/inia100.c
  2002-06-24  6:30 ` Francois Romieu
@ 2002-06-24  6:48   ` Frank Davis
  0 siblings, 0 replies; 3+ messages in thread
From: Frank Davis @ 2002-06-24  6:48 UTC (permalink / raw)
  To: Francois Romieu; +Cc: linux-kernel

Francois,
     Yes, I'm aware of the DMA mapping and pci_set_dma_mask() options. 
As I stated, this is just the 1st patch for the DMA code. The 
"interesting" parts will be included in a future patch (possibly by the 
driver developers), as well as appropriate option for pci_set_dma_mask() 
such as returning an error code or jumping to some code to return. This 
goes for all of my recent DMA patches.
Regards,
Frank

Francois Romieu wrote:
> Greetings,
> 
> Frank Davis <fdavis@si.rr.com> :
> 
>>Hello all,
>>  This patch adds the DMA mapping check (1st step for 
>>Documentation/DMA-mapping.txt compliance). Please review.
> 
> 
> - please take a look at Documentation/CodingStyle
> - if pci_set_dma_mask() fails, the driver shouldn't go on as if nothing 
>   happened. See what other drivers do (net/acenic.c for example)
> - the interesting part of DMA mapping conversion is more a matter of
>   memory descriptor handling (and phys_to_virt/friends removal)
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-06-24  6:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-24  3:46 [PATCH] 2.5.24 : drivers/scsi/inia100.c Frank Davis
2002-06-24  6:30 ` Francois Romieu
2002-06-24  6:48   ` Frank Davis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox