14 Mar, 2009

1 commit


07 Jan, 2009

1 commit

  • * Merge ide_hwgroup_t with ide_hwif_t.

    * Cleanup init_irq() accordingly, then remove no longer needed
    ide_remove_port_from_hwgroup() and ide_ports[].

    * Remove now unused HWGROUP() macro.

    While at it:

    * ide_dump_ata_error() fixups

    v2:
    * Fix ->quirk_list check in do_ide_request()
    (s/hwif->cur_dev/prev_port->cur_dev).

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     

02 Jan, 2009

3 commits

  • There should be no functionality change resulting from this patch.

    Signed-off-by: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Borislav Petkov
     
  • - cdrom_timer_expiry -> ide_cd_expiry
    - remove expiry-arg to ide_issue_pc as it is redundant now
    - ide_debug_log -> debug_log

    Signed-off-by: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Borislav Petkov
     
  • This makes the top-level function just allocate a single pc entry, and then
    pass it down as a pointer to all the helper functions that also need one
    of those "struct ide_atapi_pc" things. As far as I can tell, the use of
    these things never overlaps each other, BUT I DID NOT CHECK VERY CLOSELY!

    So I'm not guaranteeing this is correct, and I don't have the hardware. It
    would be good for somebody who knows the code more, and has the hardware,
    could please test this?

    With this, ide-floppy still has fairly big stack usage, but instead of

    idefloppy_ioctl [vmlinux]: 1208
    ide_floppy_get_capacity [vmlinux]: 872
    idefloppy_release [vmlinux]: 408
    idefloppy_open [vmlinux]: 408

    where those two first ones are at the very top of the list of stack users
    for me, it's now

    ide_floppy_get_capacity [vmlinux]: 404
    ide_floppy_ioctl [vmlinux]: 364

    ie they are still high, but they are no longer at the top.

    Borislav: Since ide_floppy_get_capacity is passed as a function pointer to other
    parts of the kernel (e.g., block layer) we need that ide_atapi_pc to be created
    on stack. Also, redid stack users numbers above. The two functions missing from
    Linus' original 'make stackusage' output are due to ide being
    rewritten/reorganized atm.

    Signed-off-by: Linus Torvalds
    Signed-off-by: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Linus Torvalds
     

18 Oct, 2008

11 commits


14 Oct, 2008

16 commits


11 Oct, 2008

8 commits

  • Use a special request for serialisation purposes and get rid of the
    awkward ide_spin_wait_hwgroup(). This also involves converting the
    ide_devset structure so it can be shared by the /proc and the ioctl code.

    Signed-off-by: Elias Oltmanns
    [bart: use rq->cmd[] directly]
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Elias Oltmanns
     
  • While at it:

    * IDE{FLOPPY,TAPE}_WAIT_CMD -> WAIT_{FLOPPY,TAPE}_CMD

    * Use enum for WAIT_* defines.

    There should be no functional changes caused by this patch.

    Acked-by: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Add ide_do_test_unit_ready() helper and convert ide-{floppy,tape}.c
    to use it.

    * Remove no longer used idetape_create_test_unit_ready_cmd().

    There should be no functional changes caused by this patch.

    Acked-by: Borislav Petkov
    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Add ide_do_start_stop() helper and convert ide-{floppy,tape}.c
    to use it.

    * Remove no longer used idefloppy_create_start_stop_cmd()
    and idetape_create_load_unload_cmd().

    There should be no functional changes caused by this patch.

    Acked-by: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Set IDE_AFLAG_NO_DOORLOCK in idetape_get_mode_sense_result(), check it
    in ide_tape_set_media_lock() and cleanup idetape_create_prevent_cmd().

    * Set IDE_AFLAG_NO_DOORLOCK in ide_floppy_create_read_capacity_cmd() and
    check it instead of IDE_AFLAG_CLIK_DRIVE in ide_floppy_set_media_lock().

    * Add ide_set_media_lock() helper and convert ide-{floppy,tape}.c to use it.

    * Remove no longer used ide*_create_prevent_cmd()/ide*_set_media_lock().

    * Update comment in accordingly.

    Acked-by: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • While at it:

    - idefloppy_create_read_capacity_cmd() -> ide_floppy_create_read_capacity_cmd()
    - idefloppy_create_mode_sense_cmd() -> ide_floppy_create_mode_sense_cmd()
    - idefloppy_create_request_sense_cmd() -> ide_floppy_create_request_sense_cmd()
    - idefloppy_create_format_unit_cmd() -> ide_floppy_create_format_unit_cmd()
    - idefloppy_get_sfrp_bit() -> ide_floppy_get_sfrp_bit()

    Acked-by: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Add IDE_AFLAG_{SRFP,WP} drive->atapi_flags and use them
    instead of ->{srfp,wp} struct ide_floppy_obj fields.

    There should be no functional changes caused by this patch.

    Acked-by: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Add ide_queue_pc_tail() and convert ide-{floppy,tape}.c to use it
    instead of ide*_queue_pc_tail().

    * Remove no longer used ide*_queue_pc_tail().

    There should be no functional changes caused by this patch.

    Acked-by: Borislav Petkov
    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz