~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/scsi/esp_scsi.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
708
708
        tp = &esp->target[tgt];
709
709
        lp = dev->hostdata;
710
710
 
711
 
        list_del(&ent->list);
712
 
        list_add(&ent->list, &esp->active_cmds);
 
711
        list_move(&ent->list, &esp->active_cmds);
713
712
 
714
713
        esp->active_cmd = ent;
715
714
 
1059
1058
        esp->ops->send_dma_cmd(esp, esp->command_block_dma,
1060
1059
                               2, 2, 1, ESP_CMD_DMA | ESP_CMD_TI);
1061
1060
 
1062
 
        /* ACK the msssage.  */
 
1061
        /* ACK the message.  */
1063
1062
        scsi_esp_cmd(esp, ESP_CMD_MOK);
1064
1063
 
1065
1064
        for (i = 0; i < ESP_RESELECT_TAG_LIMIT; i++) {
1244
1243
                /* Now that the state is unwound properly, put back onto
1245
1244
                 * the issue queue.  This command is no longer active.
1246
1245
                 */
1247
 
                list_del(&ent->list);
1248
 
                list_add(&ent->list, &esp->queued_cmds);
 
1246
                list_move(&ent->list, &esp->queued_cmds);
1249
1247
                esp->active_cmd = NULL;
1250
1248
 
1251
1249
                /* Return value ignored by caller, it directly invokes