1. 14 10月, 2008 2 次提交
    • S
      sgiioc4: fix messages · 9b5a18e1
      Sergei Shtylylov 提交于
      Fix several issues with the log messages printed by ide_dma_sgiioc4() and
      sgiioc4_ide_setup_pci_device():
      
      - IOC4 registers are memory-mapped but the "BM-DMA at" format corresponds to
        I/O  mapped registers;
      
      - "%p" format specifiers and type casts used to print non-pointer values;
      
      - using KERN_INFO log level for the error message;
      
      - 'hwif->name' printed as drive's name.
      
      While at it, also:
      
      - return more fitting -EBUSY if request_mem_region() fails;
      
      - make the error message style consistent;
      
      - fix indentation, put the printk() facility and message on the same line;
      
      - use comparisions with NULL instead of ! operator..
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Cc: jeremy@sgi.com
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      9b5a18e1
    • S
      sgiioc4: sgiioc4_read_status drive busy check fix · aa95f0e7
      Sergei Shtylylov 提交于
      Fix the drive non-busy criterion used by sgiioc4_read_status(): neither of the
      bits it expects to be set guarantees that the drive is not busy (and might be
      interrupting), only the BSY bit itself being zero gurantees that.
      While at it, use ATA_BUSY instead of hardcoded value everywhere...
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Cc: jeremy@sgi.com
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      aa95f0e7
  2. 11 10月, 2008 38 次提交