Re: [linux-usb-devel] [PATCH 2/3] USB: utilize dma_supported() API

2006-08-17 Thread Alan Stern
On Thu, 17 Aug 2006, Franck Bui-Huu wrote: > Hi Alan, > > char *bus_name; /* stable id (PCI slot_name etc) */ > > + u8 uses_dma;/* Does the host controller use DMA? */ > > Why using 'u8' (which is likely expanded to an int) ? Can we use a bit field > ins

Re: [linux-usb-devel] [PATCH 2/3] USB: utilize dma_supported() API

2006-08-17 Thread Alan Stern
On Wed, 16 Aug 2006, David Brownell wrote: > On Wednesday 16 August 2006 1:57 pm, Alan Stern wrote: > > + hcd->self.uses_dma = (dev->dma_mask && > > + dma_supported(dev, *dev->dma_mask)); > > That does look bizarre, given the variety of often-buggy implementations > of dma_sup

Re: [linux-usb-devel] [PATCH 2/3] USB: utilize dma_supported() API

2006-08-17 Thread Franck Bui-Huu
Hi Alan, Alan Stern wrote: > Greg: > > Rather than using a home-brewed test (dev->dma_mask != NULL) to > indicate which host controller devices use DMA, this patch (as770) > invokes the standard dma_supported() API and caches the result. > [snip] > Index: usb-2.6/include/linux/usb.h >

Re: [linux-usb-devel] [PATCH 2/3] USB: utilize dma_supported() API

2006-08-16 Thread David Brownell
On Wednesday 16 August 2006 1:57 pm, Alan Stern wrote: > + hcd->self.uses_dma = (dev->dma_mask && > + dma_supported(dev, *dev->dma_mask)); That does look bizarre, given the variety of often-buggy implementations of dma_supported() ... the ones looking at dev->dma_mask often

[linux-usb-devel] [PATCH 2/3] USB: utilize dma_supported() API

2006-08-16 Thread Alan Stern
Greg: Rather than using a home-brewed test (dev->dma_mask != NULL) to indicate which host controller devices use DMA, this patch (as770) invokes the standard dma_supported() API and caches the result. Alan Stern Signed-off-by: Alan Stern <[EMAIL PROTECTED]> --- This may be redundant; I don't