1. 01 Feb, 2008 1 commit
  2. 26 Jan, 2008 1 commit
  3. 25 Jan, 2008 3 commits
    • Bartlomiej Zolnierkiewicz's avatar
      ide: remove unnecessary writes to HOB taskfile registers · a3bbb9d8
      Bartlomiej Zolnierkiewicz authored
      * Set taskfile flags for REQ_TYPE_ATA_TASKFILE requests before
        adding the request to the queue.
      * Cleanup execute_drive_cmd().
      * Remove unnecessary writes to HOB taskfile registers when using
        LBA48 disk for the following cases:
        - Power Management requests
        - special commands (WIN_SPECIFY, WIN_RESTORE, WIN_SETMULT)
        - Host Protected Area support (WIN_READ_NATIVE_MAX, WIN_SET_MAX)
        - /proc/ide/ SMART support (WIN_SMART with SMART_ENABLE,
        - write cache enabling/disabling in ide-disk
        - write cache flushing in ide-disk (WIN_FLUSH_CACHE[_EXT])
        - acoustic management in ide-disk
        - door (un)locking in ide-disk (WIN_DOORLOCK, WIN_DOORUNLOCK)
        - /proc/ide/hd?/identify support (WIN_IDENTIFY)
        - ACPI _GTF taskfiles
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    • Bartlomiej Zolnierkiewicz's avatar
      ide: add ide_no_data_taskfile() helper · 9a3c49be
      Bartlomiej Zolnierkiewicz authored
      * Add ide_no_data_taskfile() helper and convert ide_raw_taskfile() w/ NO DATA
        protocol users to use it instead.
      * Set ->data_phase explicitly in ide_no_data_taskfile()
        (TASKFILE_NO_DATA is defined as 0x0000).
      * Unexport task_no_data_intr().
      Acked-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    • Bartlomiej Zolnierkiewicz's avatar
      ide: add struct ide_taskfile (take 2) · 650d841d
      Bartlomiej Zolnierkiewicz authored
      * Don't set write-only ide_task_t.hobRegister[6] and ide_task_t.hobRegister[7]
        in idedisk_set_max_address_ext().
      * Add struct ide_taskfile and use it in ide_task_t instead of tfRegister[]
        and hobRegister[].
      * Remove no longer needed IDE_CONTROL_OFFSET_HOB define.
      * Add #ifndef/#endif __KERNEL__ around definitions of {task,hob}_struct_t.
      While at it:
      * Use ATA_LBA define for LBA bit (0x40) as suggested by Tejun Heo.
      * Add missing newlines. (Noticed by Sergei)
      * Use ~ATA_LBA instead of 0xBF. (Noticed by Sergei)
      * Use unnamed unions for error/feature and status/command.
        (Suggested by Sergei).
      There should be no functionality changes caused by this patch.
      Acked-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
      Cc: Tejun Heo <htejun@gmail.com>
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  4. 11 Jan, 2008 1 commit
  5. 10 Jan, 2008 1 commit
  6. 19 Oct, 2007 1 commit
  7. 13 Oct, 2007 1 commit
  8. 11 Oct, 2007 1 commit
  9. 07 Feb, 2007 2 commits
    • Andrew Morton's avatar
      ide-acpi support warning fix · 1e8f34f7
      Andrew Morton authored
      drivers/ide/ide-acpi.c: In function 'ide_acpi_get_timing':
      drivers/ide/ide-acpi.c:537: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'long unsigned int'
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    • Hannes Reinecke's avatar
      ACPI support for IDE devices · e3a59b4d
      Hannes Reinecke authored
      This patch implements ACPI integration for generic IDE devices.
      The ACPI spec mandates that some methods are called during suspend and
      resume. And consequently there most modern Laptops cannot resume
      properly without it.
      According to the spec, we should call '_GTM' (Get Timing) upon suspend
      to store the current IDE adapter settings.
      Upon resume we should call '_STM' (Set Timing) to initialize the
      adapter with the stored settings; afterwards '_GTF' (Get Taskfile)
      should be called which returns a buffer with some IDE initialisation
      commands. Those commands should be passed to the drive.
      There are two module params which control the behaviour of this patch:
      	Do not call any ACPI methods (Disables any ACPI method calls)
      	Enable execution of _GTF methods upon resume.
      	Has no effect if 'ide=noacpi' is set.
      	Enable execution of ACPI methods during boot.
      	This might be required on some machines if 'ide=acpigtf' is
      	selected as some machines modify the _GTF information
      	depending on the drive identification passed down with _STM.
      Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>