1. 27 1月, 2007 4 次提交
    • D
      Fix Maple PATA IRQ assignment. · 8cdf92a9
      David Woodhouse 提交于
      On the Maple board, the AMD8111 IDE is in legacy mode... except that it
      appears on IRQ 20 instead of IRQ 15. For drivers/ide this was handled by
      the architecture's "pci_get_legacy_ide_irq()" function, but in libata we
      just hard-code the numbers 14 and 15.
      
      This patch provides asm-powerpc/libata-portmap.h which maps the IRQ as
      appropriate, having added a pci_dev argument to the
      ATA_{PRIM,SECOND}ARY_IRQ macros.
      
      There's probably a better way to do this -- especially if we observe
      that the _only_ case in which this seemingly-generic
      "pci_get_legacy_ide_irq()" function returns anything other than 14 and
      15 for primary and secondary respectively is the case of the AMD8111 on
      the Maple board -- couldn't we handle that with a special case in the
      pata_amd driver, or perhaps with a PCI quirk for Maple to switch it into
      native mode during early boot and assign resources properly?
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      8cdf92a9
    • T
      ahci: use 0x80 as wait stat value instead of 0xff · dfd7a3db
      Tejun Heo 提交于
      Before hardreset, ahci initialized stat part of received FIS area to
      0xff to wait for the first D2H Reg FIS which would change the value to
      device ready state.  This used to work but now libata considers status
      value of 0xff as device not present making this wait prone to failure.
      
      This patch makes ahci use 0x80 for the wait stat value instead of
      0xff to fix the above problem.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      
       drivers/ata/ahci.c |    2 +-
       1 file changed, 1 insertion(+), 1 deletion(-)
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      dfd7a3db
    • T
      sata_via: style clean up, no indirect method call in LLD · d0259872
      Tejun Heo 提交于
      Call ata_bmdma_irq_clear() directly instead of through
      ap->ops->irq_clear() according to libata style guideline.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      d0259872
    • T
      ahci: fix endianness in spurious interrupt message · 6096b63e
      Tejun Heo 提交于
      Fix endianness in spurious interrupt message.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      6096b63e
  2. 26 1月, 2007 4 次提交
  3. 25 1月, 2007 15 次提交
  4. 24 1月, 2007 17 次提交