1. 03 2月, 2009 1 次提交
    • B
      ide: add CS5536 host driver (v3) · a77dcc43
      Bartlomiej Zolnierkiewicz 提交于
      This is a port of libata's pata_cs5536.c (written by Martin K. Petersen)
      to IDE subsystem.
      
      Changes done while at it:
      
      * Reprogram PIO/MWDMA timings if needed before and after DMA transfer
        (chipset uses shared PIO/MWDMA timings).
      
      * Fix cable detection to report 80-wires cable if BIOS set it for any
        device on a port (IDE core will do drive-side cable detection later).
      
      * Don't disable UDMA while programming PIO timings.
      
      * Simplify PCI/MSR support.
      
      Pros of having IDE host driver in addition to libata's one:
      
      * IDE is much lighter than SCSI+libata, the host driver itself is also
        a bit smaller:
      
         text    data     bss     dec     hex filename
         1261     496       4    1761     6e1 drivers/ata/pata_cs5536.o
         1242     128       4    1374     55e drivers/ide/cs5536.o
      
      * This allows use of IDE features which are unavailable under libata.
      
      v2:
      * Fixes per review from Sergei:
        - simplify dependency check in Kconfig
        - use IDE_DRV_MASK also for ->drive_data
        - disable UDMA when programming MWDMA
        - program new DTC timings only when necessary
        - fix printk() level in cs5536_init_one()
      
      * Fix patch description according to comments from Alan and Sergei.
      
      v3:
      * Smarter masking of UDMA bits per Sergei's suggestion.
      
      Cc: Martin K. Petersen <mkp@mkp.net>
      Cc: Karl Auerbach <karl@iwl.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Acked-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      a77dcc43
  2. 15 1月, 2009 1 次提交
  3. 07 1月, 2009 1 次提交
    • S
      Resurrect IT8172 IDE controller driver · 391ad190
      Shane McDonald 提交于
      Support for the IT8172 IDE controller was removed from the kernel
      sometime after 2.6.18.  Support for the only boards that used the IT8172
      was removed from the kernel after 2.6.18, as they had never compiled
      since 2.6.0.  However, there are a couple of platforms that use this
      chip: the PMC-Sierra Xiao Hu thin-client computer, which is no longer
      in production, and the Linksys NSS4000 Network Attached Storage box,
      which is based on the Xiao Hu board.  I am attempting to add support
      for the Xiao Hu to the kernel, and this IT8172 IDE controller is the
      first bit of code in this effort.
      
      This patch resurrects the IT8172 IDE controller code.  I began with
      the 2.6.18 version of the it8172.c file, and have moved it forward so
      that it works with the latest version of the kernel.  I have run this
      driver on a PMC-Sierra Xiao Hu board with the 2.6.28 kernel, and
      I have had no problems with it in my configuration.  The attached patch
      applies cleanly against 2.6.28.
      Signed-off-by: NShane McDonald <mcdonald.shane@gmail.com>
      Acked-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Cc: alan@lxorguk.ukuu.org.uk
      [bart: s/HWIF(drive)/drive->hwif/]
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      391ad190
  4. 02 1月, 2009 2 次提交
  5. 30 12月, 2008 1 次提交
  6. 09 12月, 2008 1 次提交
    • B
      ide: build-fix for CONFIG_BLK_DEV_IDEDMA_PMAC=n · 53846574
      Bartlomiej Zolnierkiewicz 提交于
      IDE pmac host driver build fails with CONFIG_BLK_DEV_IDEDMA_PMAC=n
      as reported by Kamalesh:
      
      > drivers/ide/pmac.c: In function 'pmac_ide_set_pio_mode':
      > drivers/ide/pmac.c:527: error: implicit declaration of function 'kauai_lookup_timing'
      > drivers/ide/pmac.c:527: error: 'shasta_pio_timings' undeclared (first use in this function)
      > drivers/ide/pmac.c:527: error: (Each undeclared identifier is reported only once
      > drivers/ide/pmac.c:527: error: for each function it appears in.)
      > drivers/ide/pmac.c:534: error: 'kauai_pio_timings' undeclared (first use in this function)
      > drivers/ide/pmac.c: In function 'pmac_ide_do_resume':
      > drivers/ide/pmac.c:914: error: 'IDE_WAKEUP_DELAY' undeclared (first use in this function)
      > drivers/ide/pmac.c: At top level:
      > drivers/ide/pmac.c:1007: error: 'pmac_ide_init_dma' undeclared here (not in a function)
      > drivers/ide/pmac.c: In function 'pmac_ide_setup_device':
      > drivers/ide/pmac.c:1107: error: 'IDE_WAKEUP_DELAY' undeclared (first use in this function)
      > drivers/ide/pmac.c: In function 'pmac_ide_macio_attach':
      > drivers/ide/pmac.c:1209: error: 'pmac_ide_hwif_t' has no member named 'dma_regs'
      > drivers/ide/pmac.c:1210: error: 'pmac_ide_hwif_t' has no member named 'dma_regs'
      > make[2]: *** [drivers/ide/pmac.o] Error 1
      
      Fix it by removing the superfluous config option.
      Reported-and-tested-by: NKamalesh Babulal <kamalesh@linux.vnet.ibm.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      53846574
  7. 27 11月, 2008 1 次提交
  8. 24 10月, 2008 2 次提交
  9. 18 10月, 2008 2 次提交
  10. 17 10月, 2008 1 次提交
  11. 14 10月, 2008 1 次提交
  12. 11 10月, 2008 1 次提交
  13. 06 10月, 2008 1 次提交
  14. 28 9月, 2008 1 次提交
  15. 03 9月, 2008 1 次提交
  16. 06 8月, 2008 1 次提交
  17. 25 7月, 2008 1 次提交
  18. 24 7月, 2008 2 次提交
  19. 17 7月, 2008 13 次提交
  20. 16 7月, 2008 1 次提交
  21. 01 7月, 2008 1 次提交
  22. 21 6月, 2008 1 次提交
  23. 11 6月, 2008 1 次提交
    • A
      fix BLK_DEV_HD_ONLY on ARM dependencies · efc0fc1c
      Adrian Bunk 提交于
      This patch limits BLK_DEV_HD_ONLY to the ARM platforms offering 
      IRQ_HARDDISK, fixing the following compile error on others:
      
      <--  snip  -->
      
      ...
        CC      drivers/ide/legacy/hd.o
      ...
      /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ide/legacy/hd.c: In function 'hd_times_out':
      /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ide/legacy/hd.c:542: error: 'IRQ_HARDDISK' undeclared (first use in this function)
      /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ide/legacy/hd.c:542: error: (Each undeclared identifier is reported only once
      /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ide/legacy/hd.c:542: error: for each function it appears in.)
      /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ide/legacy/hd.c: In function 'do_hd_request':
      /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ide/legacy/hd.c:661: error: 'IRQ_HARDDISK' undeclared (first use in this function)
      /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ide/legacy/hd.c: In function 'hd_init':
      /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ide/legacy/hd.c:765: error: 'IRQ_HARDDISK' undeclared (first use in this function)
      make[3]: *** [drivers/ide/legacy/hd.o] Error 1
      
      <--  snip  -->
      Reported-by: NAdrian Bunk <bunk@kernel.org>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      efc0fc1c
  24. 15 5月, 2008 1 次提交
    • B
      ide/Kconfig: couple of fixes · 64afc31f
      Bartlomiej Zolnierkiewicz 提交于
      * Don't ask to enable no longer existing config options
        ("Use DMA by default when available" and "Special UDMA Feature").
      
      * PIIX host driver doesn't support Victory66 chipset.
      
      * "ide0=cmd640_vlb" -> "cmd640.probe_vlb"
      
      * "ide=doubler" -> "gayle.doubler"
      
      * Amiga IDE doubler support is a feature for gayle host driver
        not a separate host driver.
      
      * Remove Andre's mail.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      64afc31f