1. 16 6月, 2009 2 次提交
  2. 18 5月, 2009 1 次提交
  3. 01 4月, 2009 1 次提交
  4. 27 3月, 2009 1 次提交
    • B
      ide: add ->dma_timer_expiry method and remove ->dma_exec_cmd one (v2) · 22117d6e
      Bartlomiej Zolnierkiewicz 提交于
      * Rename dma_timer_expiry() to ide_dma_sff_timer_expiry() and export it.
      
      * Add ->dma_timer_expiry method and use it to set hwif->expiry for
        ATA_PROT_DMA protocol in do_rw_taskfile().
      
      * Initialize ->dma_timer_expiry to ide_dma_sff_timer_expiry() for SFF hosts.
      
      * Move setting hwif->expiry from ide_execute_command() to its users and drop
        'expiry' argument.
      
      * Use ide_execute_command() instead of ->dma_exec_cmd in do_rw_taskfile().
      
      * Remove ->dma_exec_cmd method and its implementations.
      
      * Unexport ide_execute_command() and ide_dma_intr().
      
      v2:
      * Fix CONFIG_BLK_DEV_IDEDMA=n build (noticed by Randy Dunlap).
      
      * Fix *dma_expiry naming (suggested by Sergei Shtylyov).
      
      There should be no functional changes caused by this patch.
      
      Cc: Randy Dunlap <randy.dunlap@oracle.com>
      Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      22117d6e
  5. 25 3月, 2009 1 次提交
  6. 07 1月, 2009 2 次提交
  7. 03 11月, 2008 1 次提交
  8. 24 10月, 2008 1 次提交
  9. 22 10月, 2008 1 次提交
  10. 14 10月, 2008 3 次提交
  11. 11 10月, 2008 4 次提交
    • 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: check drive->present in ide_get_paired_drive() · 7e59ea21
      Bartlomiej Zolnierkiewicz 提交于
      * Change ide_get_paired_drive() to return NULL if peer device
        is not present and update all users accordingly.
      
      While at it:
      
      * ide_get_paired_drive() -> ide_get_pair_dev()
      
      * Use ide_get_pair_dev() in cs5530.c, sc1200.c and via82cxxx.c.
      
      There should be no functional changes caused by this patch.
      Acked-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      7e59ea21
    • 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
  12. 19 8月, 2008 1 次提交
  13. 06 8月, 2008 2 次提交
  14. 25 7月, 2008 6 次提交
  15. 24 7月, 2008 2 次提交
  16. 17 7月, 2008 1 次提交
  17. 16 7月, 2008 1 次提交
  18. 30 4月, 2008 1 次提交
  19. 29 4月, 2008 5 次提交
    • S
      siimage: coding style cleanup (take 2) · 7b255436
      Sergei Shtylyov 提交于
      Fix 18 errors and several warnings given by checkpatch.pl:
      
      - use of C99 // comments;
      
      - trailing whitespace;
      
      - 'switch' and 'case' not at the same indentation level;
      
      - no space before the open parenthesis of the 'if' and 'switch' statements;
      
      - space between function name and open parenthesis (though I have introduced
        such warnins in some places since the code looks prettier with the spaces);
      
      - including <asm/io.h> instead of <linux/io.h>;
      
      - line over 80 characters.
      
      In addition to these changes, also do the following:
      
      - make the arrays in sil_set_pio_mode() 'static', and make the arrays in
        sil_set_dma_mode() 'static const';
      
      - change the string of the 'if' statements into the 'switch' statement in
        sil_pata_udma_filter();
      
      - drop the needless '==' operators from the 'if' statements where a condition
        is a mere bit test;
      
      - remove needless initializer for the 'tmp' variable in init_chipset_siimage();
      
      - beautify groups of the variable initializers and assignment operators;
      
      - add new line after variable definitions;
      
      - remove new line between the comment and the statements it refers to;
      
      - remove needless curly braces and parentheses;
      
      - fix typos, capitalize acronyms, etc. in the comments...
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      7b255436
    • B
      siimage: remove proc_reports_siimage() · 24cc434a
      Bartlomiej Zolnierkiewicz 提交于
      * proc_reports_siimage() is now only called by init_chipset_siimage()
        so inline it there.
      
      * Use array instead of switch statement for reporting clock modes.
      
      There should be no functional changes caused by this patch.
      Acked-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      24cc434a
    • B
      siimage: add sil_* I/O ops · 165701d9
      Bartlomiej Zolnierkiewicz 提交于
      Add sil_iowrite{8,16,32}() and sil_ioread{8,16}() helpers, then use them to
      merge code accessing configuration registers through PCI and MMIO together.
      
      [ because of this SATA initialization bits from setup_mmio_siimage() are
        moved to init_chipset_siimage() ]
      
      This also cuts code size a bit:
      
         text    data     bss     dec     hex filename
         4437     164       0    4601    11f9 drivers/ide/pci/siimage.o.before
         3979     164       0    4143    102f drivers/ide/pci/siimage.o.after
      
      While at it:
      
      * Use I/O ops directly instead of using ->IN{B,W} and ->OUT{B,W}.
      
      * Fixup CodingStyle in setup_mmio_siimage().
      
      * Rename 'tmpbyte' variable to 'tmp' in init_chipset_siimage().
      
      There should be no functional changes caused by this patch.
      Acked-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      165701d9
    • B
      siimage: do clocking register posting earlier in setup_mmio_siimage() · 24a96ae0
      Bartlomiej Zolnierkiewicz 提交于
      Do clocking register posting earlier in setup_mmio_siimage()
      to match code in init_chipset_siimage().
      
      This is a preparation for the next patch which merges PCI and MMIO
      code paths together.
      Acked-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      24a96ae0
    • B
      ide: add IDE_HFLAG_MMIO host flag (take 2) · c5dd43ec
      Bartlomiej Zolnierkiewicz 提交于
      * Add IDE_HFLAG_MMIO host flag and set it for hosts which use
        default_hwif_mmiops().
      
      v2:
      * Fix kernel panic in pmac host driver (',' should be '|').
      
        Thanks to Kamalesh for reporting it + testing the fix
        and to Andrew for hinting me about the source of the issue.
      
      Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Cc: Andy Whitcroft <apw@shadowen.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      c5dd43ec
  20. 27 4月, 2008 3 次提交
    • B
      ide: add struct ide_io_ports (take 3) · 4c3032d8
      Bartlomiej Zolnierkiewicz 提交于
      * Add struct ide_io_ports and use it instead of `unsigned long io_ports[]`
        in ide_hwif_t.
      
      * Rename io_ports[] in hw_regs_t to io_ports_array[].
      
      * Use un-named union for 'unsigned long io_ports_array[]' and 'struct
        ide_io_ports io_ports' in hw_regs_t.
      
      * Remove IDE_*_OFFSET defines.
      
      v2:
      * scc_pata.c build fix from Stephen Rothwell.
      
      v3:
      * Fix ctl_adrr typo in Sparc-specific part of ns87415.c.
        (Noticed by Andrew Morton)
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      4c3032d8
    • B
      ide: add struct ide_dma_ops (take 3) · 5e37bdc0
      Bartlomiej Zolnierkiewicz 提交于
      Add struct ide_dma_ops and convert core code + drivers to use it.
      
      While at it:
      
      * Drop "ide_" prefix from ->ide_dma_end and ->ide_dma_test_irq methods.
      
      * Drop "ide_" "infixes" from DMA methods.
      
      * au1xxx-ide.c:
        - use auide_dma_{test_irq,end}() directly in auide_dma_timeout()
      
      * pdc202xx_old.c:
        - drop "old_" "infixes" from DMA methods
      
      * siimage.c:
        - add siimage_dma_test_irq() helper
        - print SATA warning in siimage_init_one()
      
      * Remove no longer needed ->init_hwif implementations.
      
      v2:
      * Changes based on review from Sergei:
        - s/siimage_ide_dma_test_irq/siimage_dma_test_irq/
        - s/drive->hwif/hwif/ in idefloppy_pc_intr().
        - fix patch description w.r.t. au1xxx-ide changes
        - fix au1xxx-ide build
        - fix naming for cmd64*_dma_ops
        - drop "ide_" and "old_" infixes
        - s/hpt3xxx_dma_ops/hpt37x_dma_ops/
        - s/hpt370x_dma_ops/hpt370_dma_ops/
        - use correct DMA ops for HPT302/N, HPT371/N and HPT374
        - s/it821x_smart_dma_ops/it821x_pass_through_dma_ops/
      
      v3:
      * Two bugs slipped in v2 (noticed by Sergei):
        - use correct DMA ops for HPT374 (for real this time)
        - handle HPT370/HPT370A properly
      Acked-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      5e37bdc0
    • H
      ide: replace remaining __FUNCTION__ occurrences · eb63963a
      Harvey Harrison 提交于
      __FUNCTION__ is gcc-specific, use __func__
      
      [bart: fix checkpatch.pl errors in ide-lib.c and ppc/mpc8xx.c while at it]
      Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      eb63963a