1. 14 10月, 2008 1 次提交
  2. 11 10月, 2008 3 次提交
    • B
      ide: add proper PCI PM support (v2) · feb22b7f
      Bartlomiej Zolnierkiewicz 提交于
      * Keep pointer to ->init_chipset method also in
        struct ide_host and set it in ide_host_alloc_all().
      
      * Add ide_pci_suspend() and ide_pci_resume() helpers
        (default ->suspend and ->resume implementations).
      
      * ->init_chipset can no longer be marked __devinit.
      
      * Add proper PCI PM support to IDE PCI host drivers
        (rz1000.c and tc86c001.c are skipped for now since
        they need to be converted from using ->init_hwif
        to use ->init_chipset instead).
      
      v2:
      * Cleanup CONFIG_PM #ifdef-s per akpm's suggestion.
      
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      feb22b7f
    • B
      ide: include <linux/hdreg.h> only when needed · 3ceca727
      Bartlomiej Zolnierkiewicz 提交于
      * Include <linux/ata.h> directly in <linux/ide.h>
        instead of through <linux/hdreg.h>.
      
      * Include <linux/hdreg.h> only when needed.
      
      Cc: Christoph Hellwig <hch@infradead.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      3ceca727
    • B
      ide: make drive->id an union (take 2) · 4dde4492
      Bartlomiej Zolnierkiewicz 提交于
      Make drive->id an unnamed union so id can be accessed either by using
      'u16 *id' or 'struct hd_driveid *driveid'.  Then convert all existing
      drive->id users accordingly (using 'u16 *id' when possible).
      
      This is an intermediate step to make ide 'struct hd_driveid'-free.
      
      While at it:
      
      - Add missing KERN_CONTs in it821x.c.
      
      - Use ATA_ID_WORDS and ATA_ID_*_LEN defines.
      
      - Remove unnecessary checks for drive->id.
      
      - s/drive_table/table/ in ide_in_drive_list().
      
      - Cleanup ide_config_drive_speed() a bit.
      
      - s/drive1/dev1/ & s/drive0/dev0/ in ide_undecoded_slave().
      
      v2:
      Fix typo in drivers/ide/ppc/pmac.c. (From Stephen Rothwell)
      
      There should be no functional changes caused by this patch.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      4dde4492
  3. 06 8月, 2008 1 次提交
  4. 25 7月, 2008 4 次提交
  5. 24 7月, 2008 2 次提交
  6. 17 7月, 2008 1 次提交
  7. 16 7月, 2008 1 次提交
  8. 15 5月, 2008 4 次提交
  9. 30 4月, 2008 1 次提交
    • A
      alim15x3: disable init_hwif_ali15x3 for PowerPC · 6d1cee44
      Anton Vorontsov 提交于
      We don't need init_hwif_ali15x3() on the PowerPC systems either.
      
      Before:
      
      ALI15X3: IDE controller (0x10b9:0x5229 rev 0xc8) at  PCI slot 0001:03:1f.0
      ALI15X3: 100% native mode on irq 19
          ide0: BM-DMA at 0x1120-0x1127
          ide1: BM-DMA at 0x1128-0x112f
      hda: SONY DVD RW AW-Q170A, ATAPI CD/DVD-ROM drive
      hda: UDMA/66 mode selected
      ide0: Disabled unable to get IRQ 14.
      ide0: failed to initialize IDE interface
      ide1: Disabled unable to get IRQ 15.
      ide1: failed to initialize IDE interface
      
      After:
      
      ALI15X3: IDE controller (0x10b9:0x5229 rev 0xc8) at  PCI slot 0001:03:1f.0
      ALI15X3: 100% native mode on irq 19
          ide0: BM-DMA at 0x1120-0x1127
          ide1: BM-DMA at 0x1128-0x112f
      hda: SONY DVD RW AW-Q170A, ATAPI CD/DVD-ROM drive
      hda: UDMA/66 mode selected
      ide0 at 0x1100-0x1107,0x110a on irq 19
      ide1 at 0x1110-0x1117,0x111a on irq 19
      hda: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache
      
      ide0 works well, though I can't test ide1, it isn't traced out on
      the board.
      Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      6d1cee44
  10. 27 4月, 2008 8 次提交
  11. 26 4月, 2008 1 次提交
  12. 03 2月, 2008 2 次提交
  13. 02 2月, 2008 4 次提交
  14. 26 1月, 2008 1 次提交
    • B
      ide: add IDE_HFLAG_ABUSE_SET_DMA_MODE host flag · 4db90a14
      Bartlomiej Zolnierkiewicz 提交于
      * Add IDE_HFLAG_ABUSE_SET_DMA_MODE host flag and use it to decide
        what to do with transfer modes < XFER_PIO_0 in ide_set_xfer_rate().
      
      * Set IDE_HFLAG_ABUSE_SET_DMA_MODE in host drivers that need it
        (aec62xx, amd74xx, cs5520, cs5535, hpt34x, hpt366, pdc202xx_old,
        serverworks, tc86c001 and via82cxxx) and cleanup ->set_dma_mode
        methods in host drivers that don't (IDE core code guarantees that
        ->set_dma_mode will be called only for modes which are present
        in SWDMA/MWDMA/UDMA masks).
      
      While at it:
      
      * Add IDE_HFLAGS_HPT34X/HPT3XX/PDC202XX/SVWKS define in
        hpt34x/hpt366/pdc202xx_old/serverworks host driver.
      
      There should be no functionality changes caused by this patch.
      Acked-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      4db90a14
  15. 28 11月, 2007 1 次提交
  16. 20 10月, 2007 4 次提交
  17. 19 10月, 2007 1 次提交
    • B
      ide: set drive->autotune in ide_pci_setup_ports() · 85ad93ad
      Bartlomiej Zolnierkiewicz 提交于
      Majority of host drivers using IDE PCI layer set drive->autotune, the only
      exceptions are:
      
      generic.c
      ns87415.c
      rz1000.c
      trm290.c
      * no ->set_pio_mode method
      
      it821x.c:
      * if memory allocation fails drive->autotune won't be set
        (but there also won't be ->set_pio_mode method in such case)
      
      piix.c:
      * MPIIX controller (no ->init_hwif method so also no ->set_pio_mode method)
      
      However if there is no ->set_pio_mode method there are no changes in behavior
      w.r.t. PIO tuning so always set drive->autotune in ide_pci_setup_ports().
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      85ad93ad