1. 22 5月, 2009 1 次提交
  2. 25 3月, 2009 2 次提交
  3. 03 2月, 2009 1 次提交
  4. 15 1月, 2009 1 次提交
  5. 07 1月, 2009 1 次提交
  6. 22 10月, 2008 1 次提交
  7. 14 10月, 2008 1 次提交
  8. 11 10月, 2008 2 次提交
  9. 19 8月, 2008 1 次提交
  10. 06 8月, 2008 1 次提交
  11. 25 7月, 2008 7 次提交
  12. 24 7月, 2008 1 次提交
    • B
      ide: filter out "default" transfer mode values in set_xfer_rate() · 3b2a5c71
      Bartlomiej Zolnierkiewicz 提交于
      * Filter out "default" transfer mode values (0x00 - default PIO mode,
        0x01 - default PIO mode w/ IORDY disabled) in write handler for obsoleted
        /proc/ide/hd?/settings:current_speed setting.
      
        Allowing "default" transfer mode values is a dangerous thing to do as
        we don't support programming controller to the "default" transfer mode
        and devices often use different values for the default and maximum PIO
        mode (i.e. PIO2 default and PIO4 maximum) so the controller will stay
        programmed for higher PIO mode while device will use the lower PIO mode.
      
        There is no functionality loss as by using special IOCTLs device can
        still be programmed to "default" transfer modes (it is only useful for
        debugging/testing purposes anyway).
      
      * Remove no longer needed IDE_HFLAG_ABUSE_SET_DMA_MODE host flag, it was
        previously used by few host drivers to program the controller to PIO0
        timings for "default" transfer mode == 0x01 (although some host drivers
        would program invalid PIO timings instead).
      
      * Cleanup ide_set_xfer_rate() and add BUG_ON().
      Suggested-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      3b2a5c71
  13. 17 7月, 2008 1 次提交
    • B
      ide: convert ide-timing.h to ide-timings.c library (take 2) · f06ab340
      Bartlomiej Zolnierkiewicz 提交于
      * Don't include ide-timing.h in cs5535 and sis5513 host drivers
        (they don't need it currently).
      
      * Convert ide-timing.h to ide-timings.c library and add CONFIG_IDE_TIMINGS
        config option to be selected by host drivers using the library.
      
      While at it:
      
      - fix ide_timing_find_mode() placement
      
      v2:
      * Add missing EXPORT_SYMBOLs. (Stephen Rothwell <sfr@canb.auug.org.au>)
      
      There should be no functional changes caused by this patch.
      
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      f06ab340
  14. 16 7月, 2008 2 次提交
  15. 27 4月, 2008 2 次提交
  16. 26 4月, 2008 2 次提交
  17. 19 2月, 2008 1 次提交
  18. 03 2月, 2008 2 次提交
  19. 02 2月, 2008 2 次提交
  20. 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
  21. 20 10月, 2007 5 次提交
  22. 19 10月, 2007 2 次提交
    • 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
    • B
      ide: add ->mwdma_mask and ->swdma_mask to ide_pci_device_t (take 2) · 5f8b6c34
      Bartlomiej Zolnierkiewicz 提交于
      * Add ->mwdma_mask and ->swdma_mask to ide_pci_device_t.
      
      * Set ide_hwif_t DMA masks using DMA masks from ide_pci_device_t in
        setup-pci.c::ide_pci_setup_ports() (iff DMA base is valid and ->init_hwif
        method may still override them).
      
      * Convert IDE PCI host drivers to use ide_pci_device_t DMA masks.
      
      While at it:
      
      * Use ATA_{UDMA,MWDMA,SWDMA}* defines.
      
      * hpt34x.c: add separate ide_pci_device_t instances for HPT343 and HPT345.
      
      * serverworks.c: fix DMA masks being set before checking DMA base.
      
      v2:
      * Add missing masks to DECLARE_GENERIC_PCI_DEV() macro.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      5f8b6c34