17 Oct, 2007

3 commits

  • * hpt34x.c: disable DMA masks for HPT345
    (hwif->autodma is zero so DMA won't be enabled anyway).

    * trm290.c: disable IDE_HFLAG_TRUST_BIOS_FOR_DMA flag
    (hwif->autodma is zero so DMA won't be enabled anyway).

    * Check noautodma global variable instead of drive->autodma in ide_tune_dma().

    This fixes handling of "ide=nodma" kernel parameter for icside, ide-cris,
    au1xxx-ide, pmac, it821x, jmicron, sgiioc4 and siimage host drivers.

    * Remove hwif->autodma (it was not checked by IDE core code anyway) and
    drive->autodma (was set by all host drivers - except HPT345/TRM290 special
    cases - unless "ide=nodma" was used).

    While at it:
    - remove needless printk() from icside.c
    - remove stale FIXME/comment from ide-probe.c
    - don't force DMA off if PCI bus-mastering had to be enabled in setup-pci.c
    (this setting was always later over-ridden by host drivers anyway)

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • While at it:
    - make struct pci_device_id tables const
    - use PCI_DEVICE_ID_ITE_8213 define in it8213.c
    - fix comment in generic.c

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Add IDE_HFLAG_TRUST_BIOS_FOR_DMA host flag for host drivers that depend
    on BIOS for programming device/controller for DMA. Set it in cy82c693,
    generic, ns87415, opti621 and trm290 host drivers.

    * Add IDE_HFLAG_VDMA host flag for host drivers using VDMA. Set it in cs5520
    host driver.

    * Teach ide_tune_dma() about IDE_HFLAG_TRUST_BIOS_FOR_DMA flag.

    * Add generic ide_dma_check() helper and remove all open coded ->ide_dma_check
    implementations. Fix all places checking for presence of ->ide_dma_check
    hook to check for ->ide_dma_on instead.

    * Remove no longer needed code from config_drive_for_dma().

    * Make ide_tune_dma() static.

    v2:
    * Fix config_drive_for_dma() return values.

    * Fix ide-dma.c build for CONFIG_BLK_DEV_IDEDMA_PCI=n by adding
    dummy config_drive_for_dma() inline.

    * Fix IDE_HFLAG_TRUST_BIOS_FOR_DMA handling in ide_dma_check().

    * Fix init_hwif_it8213() comment.

    There should be no functionality changes caused by this patch.

    Cc: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     

12 Oct, 2007

1 commit

  • * Add IDE_HFLAG_ABUSE_{PREFETCH,FAST_DEVSEL,DMA_MODES} flags
    and set them in ht6560, cmd640, cmd64x and sc1200 host drivers.

    * Add set_pio_mode_abuse() for checking if host driver has a non-standard
    ->tuneproc() implementation and use it in do_special().

    * Add ide_set_pio() for setting PIO mode (it uses hwif->pio_mask to find
    the maximum PIO mode supported by the host), also add ide_set_max_pio()
    wrapper for ide_set_pio() to use for auto-tuning. Convert users of
    ->tuneproc to use ide_set{_max}_pio() where possible. This leaves only
    do_special(), set_using_pio(), ide_hwif_restore() and ide_set_pio() as
    a direct users of ->tuneproc.

    * Remove no longer needed ide_get_best_pio_mode() calls and printk-s
    reporting PIO mode selected from ->tuneproc implementations.

    * Rename ->tuneproc hook to ->set_pio_mode and make 'pio' argument const.

    * Remove stale comment from ide_config_drive_speed().

    v2:
    * Fix "ata_" prefix (Noticed by Jeff).

    v3:
    * Minor cleanups/fixups per Sergei's suggestions.

    v4:
    * Fix compile problem in drivers/ide/pci/cmd640.c
    (Noticed by Andrew Morton).

    * Improve some ->set_pio_mode comments.

    Reviewed-by: Sergei Shtylyov
    Cc: Jeff Garzik
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     

20 Jul, 2007

3 commits

  • * Add ATA_PIO[0-6] defines to .

    * Add ->pio_mask field to ide_pci_device_t and ide_hwif_t.

    * Add PIO masks to host drivers.

    change ACK-ed by Jeff Garzik .

    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Drop no longer needed "PIO data" argument from ide_get_best_pio_mode()
    and convert all users accordingly.

    * Remove no longer needed ide_pio_data_t.

    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Rename ide_pci_device_t.flags to ide_pci_device_t.host_flags
    and IDEPCI_FLAG_ISA_PORTS flag to IDE_HFLAG_ISA_PORTS.

    * Add IDE_HFLAG_SINGLE flag for single channel devices.

    * Convert core code and all IDE PCI drivers to use IDE_HFLAG_SINGLE
    and remove no longer needed ide_pci_device_t.channels field.

    v2:
    * Fix issues noticed by Sergei:
    - correct code alignment in scc_pata.c
    - s/IDE_HFLAG_SINGLE/~IDE_HFLAG_SINGLE/ in serverworks.c

    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     

17 Feb, 2007

2 commits


27 Jan, 2007

1 commit


03 Oct, 2006

1 commit


01 Jul, 2006

1 commit


10 Nov, 2005

1 commit

  • This patch contains the following possible cleanups:
    - pci/cy82c693.c: make a needlessly global function static
    - remove the following unneeded EXPORT_SYMBOL's:
    - ide-taskfile.c: do_rw_taskfile
    - ide-iops.c: default_hwif_iops
    - ide-iops.c: default_hwif_transport
    - ide-iops.c: wait_for_ready

    Signed-off-by: Adrian Bunk
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Adrian Bunk
     

03 Jul, 2005

1 commit


17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds