Skip to content
  • Bartlomiej Zolnierkiewicz's avatar
    ide-cd: use scatterlists for PIO transfers (fs requests) · a08915ba
    Bartlomiej Zolnierkiewicz authored
    
    
    * Export ide_pio_bytes().
    
    * Add ->last_xfer_len field to struct ide_cmd.
    
    * Add ide_cd_error_cmd() helper to ide-cd.
    
    * Convert ide-cd to use scatterlists also for PIO transfers (fs requests
      only for now) and get rid of partial completions (except when the error
      happens -- which is still subject to change later because looking at
      ATAPI spec it seems that the device is free to error the whole transfer
      with setting the Error bit only on the last transfer chunk).
    
    * Update ide_cd_{prepare_rw,restore_request,do_request}() accordingly.
    
    * Inline ide_cd_restore_request() into cdrom_start_rw().
    
    Cc: Borislav Petkov <petkovbb@gmail.com>
    Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    a08915ba