1. 26 Jan, 2007 4 commits
    • David Woodhouse's avatar
      Fix Maple PATA IRQ assignment. · 8cdf92a9
      David Woodhouse authored
      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: default avatarDavid Woodhouse <dwmw2@infradead.org>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      8cdf92a9
    • Tejun Heo's avatar
      ahci: use 0x80 as wait stat value instead of 0xff · dfd7a3db
      Tejun Heo authored
      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: default avatarTejun Heo <htejun@gmail.com>
      
       drivers/ata/ahci.c |    2 +-
       1 file changed, 1 insertion(+), 1 deletion(-)
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      dfd7a3db
    • Tejun Heo's avatar
      sata_via: style clean up, no indirect method call in LLD · d0259872
      Tejun Heo authored
      Call ata_bmdma_irq_clear() directly instead of through
      ap->ops->irq_clear() according to libata style guideline.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      d0259872
    • Tejun Heo's avatar
      ahci: fix endianness in spurious interrupt message · 6096b63e
      Tejun Heo authored
      Fix endianness in spurious interrupt message.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      6096b63e
  2. 25 Jan, 2007 7 commits
  3. 24 Jan, 2007 29 commits