1. 15 4月, 2015 1 次提交
  2. 17 9月, 2013 1 次提交
  3. 14 2月, 2012 1 次提交
  4. 17 3月, 2011 1 次提交
  5. 01 4月, 2009 1 次提交
  6. 25 3月, 2009 4 次提交
  7. 05 3月, 2009 1 次提交
  8. 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
  9. 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
  10. 02 1月, 2009 1 次提交
  11. 30 12月, 2008 2 次提交
  12. 24 10月, 2008 3 次提交
  13. 22 10月, 2008 1 次提交
  14. 18 10月, 2008 3 次提交
  15. 14 10月, 2008 6 次提交
    • E
      ide: Implement disk shock protection support (v4) · 4abdc6ee
      Elias Oltmanns 提交于
      On user request (through sysfs), the IDLE IMMEDIATE command with UNLOAD
      FEATURE as specified in ATA-7 is issued to the device and processing of
      the request queue is stopped thereafter until the specified timeout
      expires or user space asks to resume normal operation. This is supposed
      to prevent the heads of a hard drive from accidentally crashing onto the
      platter when a heavy shock is anticipated (like a falling laptop expected
      to hit the floor). Port resets are deferred whenever a device on that
      port is in the parked state.
      
      v3:
      Elias Oltmanns <eo@nebensachen.de> wrote:
      [...]
      > >> 1. Make sure that no negative value is being passed to
      > >>    jiffies_to_msecs() in ide_park_show().
      > >> 2. Drop the superfluous variable hwif in ide_special_rq().
      > >> 3. Skip initialisation of task and tf in ide_special_rq() if we are not
      > >>    handling a (un)park request.
      > >
      > > Well, #3 should have been done differently because we donn't want to
      > > check for REQ_(UN)?PARK_HEADS more often than is necessary.
      > 
      > While preparing the backport to 2.6.27, it has just occurred to me that
      > we need to clear the IDE_DFLAG_PARKED flag in ide_disk_pre_reset()
      > because this flag must not be set after *any* sort of access to the
      > device.
      
      v4:
      Fix a memory leak due to a missing blk_put_request() in
      issue_park_cmd(). Additionally, we should plug the queue when enqueueing
      the unpark request because there is no guarantee that the park timeout
      has not expired by then. Even though the chance for that to happen is
      very slim, the request might end up hanging in the queue until the next
      I/O operation is queued up. While at it, clean up the code a little:
      - make issue_park_cmd() a function of type void since nobody cares for
        the return value anyway;
      - use blk_start_queueing() instead of __blk_run_queue() since we don't
        have to worry about recursion;
      - remove a superfluous pointer deference in task_no_data_intr().
      Signed-off-by: NElias Oltmanns <eo@nebensachen.de>
      Cc: Jeff Garzik <jeff@garzik.org>,
      Cc: Randy Dunlap <randy.dunlap@oracle.com>
      Cc: Tejun Heo <htejun@gmail.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      4abdc6ee
    • B
      2dbe7e91
    • B
      ide-disk: move /proc handling to ide-disk_proc.c (take 3) · 06b89518
      Bartlomiej Zolnierkiewicz 提交于
      While at it:
      - idedisk_capacity() -> ide_disk_capacity()
      - idedisk_proc[] -> ide_disk_proc[]
      - idedisk_settings[] -> ide_disk_settings[]
      
      v2/3:
      Build fix for CONFIG_IDE_PROC_FS=n from Elias Oltmanns.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      06b89518
    • B
      ide-disk: move all ioctl handling to ide-disk_ioctl.c · f8790489
      Bartlomiej Zolnierkiewicz 提交于
      While at it:
      - idedisk_ioctl() -> ide_disk_ioctl()
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      f8790489
    • B
      ide-floppy: move /proc handling to ide-floppy_proc.c (take 2) · b9103da4
      Bartlomiej Zolnierkiewicz 提交于
      While at it:
      - idefloppy_capacity() -> ide_floppy_capacity()
      - idefloppy_proc[] -> ide_floppy_proc[]
      - idefloppy_settings[] -> ide_floppy_settings[]
      
      v2:
      Build fix for CONFIG_IDE_PROC_FS=n from Elias Oltmanns.
      
      Cc: Borislav Petkov <petkovbb@gmail.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      b9103da4
    • B
      ide: remove CONFIG_BLK_DEV_IDE config option (take 2) · 452a8ed8
      Bartlomiej Zolnierkiewicz 提交于
      Because hd.c was moved to drivers/block/ this config option
      is superfluous now and may be removed.
      
      v2:
      Fix drivers/ide/Makefile (noticed by Adrian Bunk).
      
      Cc: Adrian Bunk <bunk@kernel.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      452a8ed8
  16. 11 10月, 2008 2 次提交
  17. 25 7月, 2008 1 次提交
  18. 17 7月, 2008 4 次提交
  19. 16 7月, 2008 1 次提交
  20. 29 4月, 2008 1 次提交
    • A
      remove the broken ETRAX_IDE driver · 3f31b874
      Adrian Bunk 提交于
      ETRAX_IDE was marked as broken last year with the comment
      "it doesn't even compile currently".
      
      Remove it since it won't get fixed in the near future.
      
      On Mon, Apr 14, 2008 at 02:50:19PM +0200, Mikael Starvik wrote:
      > You can remove it for now and we will resubmit a new if/when we get around
      > to fix it.
      
      [bart: ported it over IDE tree]
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Cc: Mikael Starvik <mikael.starvik@axis.com>
      Cc: Jesper Nilsson <Jesper.Nilsson@axis.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      3f31b874
  21. 18 4月, 2008 1 次提交
  22. 02 2月, 2008 2 次提交
    • B
      ide-cd: move code handling cdrom.c IOCTLs to ide-cd_ioctl.c · 17802998
      Bartlomiej Zolnierkiewicz 提交于
      There should be no functionality changes caused by this patch.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      17802998
    • B
      ide-cd: move VERBOSE_IDE_CD_ERRORS code to ide-cd_verbose.c · 972560fb
      Bartlomiej Zolnierkiewicz 提交于
      * Rename ide-cd kernel module to ide-cd_mod in preparation to moving code out
        from ide-cd.[c,h].   Add MODULE_ALIAS("ide-cd") to preserve compatibility.
      
      * Move VERBOSE_IDE_CD_ERRORS code from ide-cd.[c,h] to ide-cd_verbose.c.
      
        ide-cd_verbose.c is IDE subsystem independent and may be easily converted
        into generic library usable by other drivers (i.e. libata) if needed.
      
      * Add CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS config option to drivers/ide/Kconfig
        replacing VERBOSE_IDE_CD_ERRORS define.  Make this config option enabled by
        default and visible only if CONFIG_EMBEDDED is defined.
      
      before the patch:
         text    data     bss     dec     hex filename
        22841     360    1056   24257    5ec1 drivers/ide/ide-cd.o
      
      after the patch w/ CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS=y:
         text    data     bss     dec     hex filename
        22857     360    1056   24273    5ed1 drivers/ide/ide-cd_mod.o
      
      after the patch w/ CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS=n:
         text    data     bss     dec     hex filename
        15091     360    1056   16507    407b drivers/ide/ide-cd_mod.o
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      972560fb