lkml.org 
[lkml]   [2012]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 6/6] ahci: support the STA2X11 I/O Hub
On Fri, 6 Jan 2012 13:33:39 +0100
Alessandro Rubini <rubini@gnudd.com> wrote:

> The AHCI controller found in the STA2X11 chip uses BAR number 0
> instead of 5. Also, the chip's fixup code sets a special DMA mask
> for all of its PCI functions, and the mask must be preserved here.

The more I look at this aspect of it the more convinced I grow that you
should handle this in the DMA ops.

dma_supported will call ops->dma_supported which can in turn make its
own decisions and avoid driver hackery.

Alan


\
 
 \ /
  Last update: 2012-01-11 23:47    [from the cache]
©2003-2011 Jasper Spaans