]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
Merge branch 'master' into upstream
authorJeff Garzik <jeff@garzik.org>
Fri, 23 Jun 2006 02:11:56 +0000 (22:11 -0400)
committerJeff Garzik <jeff@garzik.org>
Fri, 23 Jun 2006 02:11:56 +0000 (22:11 -0400)
Conflicts:

drivers/scsi/libata-core.c
drivers/scsi/libata-scsi.c
include/linux/pci_ids.h

1  2 
drivers/scsi/Makefile
drivers/scsi/libata-core.c
drivers/scsi/libata-scsi.c
drivers/scsi/sata_vsc.c
drivers/scsi/scsi.c
drivers/scsi/scsi_error.c
drivers/scsi/scsi_lib.c
include/linux/pci_ids.h
include/scsi/scsi_cmnd.h

Simple merge
index 89c3fbe6e67c0fde52580124e64032f6501b6686,de9ba7890b5adceeea4c909062de63e9afeb6f71..df483adc3f75506ee498c5e8fc58e6abc42cb59d
@@@ -4983,23 -4294,18 +4983,24 @@@ static int ata_start_drive(struct ata_d
   *    and host.
   *
   */
 -int ata_device_resume(struct ata_port *ap, struct ata_device *dev)
 +int ata_device_resume(struct ata_device *dev)
  {
 +      struct ata_port *ap = dev->ap;
 +
        if (ap->flags & ATA_FLAG_SUSPENDED) {
 +              struct ata_device *failed_dev;
 +
+               ata_busy_sleep(ap, ATA_TMOUT_BOOT_QUICK, ATA_TMOUT_BOOT);
                ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 200000);
 +
                ap->flags &= ~ATA_FLAG_SUSPENDED;
 -              ata_set_mode(ap);
 +              while (ata_set_mode(ap, &failed_dev))
 +                      ata_dev_disable(failed_dev);
        }
 -      if (!ata_dev_present(dev))
 +      if (!ata_dev_enabled(dev))
                return 0;
        if (dev->class == ATA_DEV_ATA)
 -              ata_start_drive(ap, dev);
 +              ata_start_drive(dev);
  
        return 0;
  }
index 32c1df69091b8f5e774b34afe9d299f80a8bac26,f1e129b7c9721373b2e65b5f3d0b1dc12278fc1d..9698949fa52a58a742da8cbde1b6a3ebe2fe1b1d
  #include <linux/spinlock.h>
  #include <scsi/scsi.h>
  #include <scsi/scsi_host.h>
+ #include <scsi/scsi_cmnd.h>
  #include <scsi/scsi_eh.h>
  #include <scsi/scsi_device.h>
- #include <scsi/scsi_request.h>
 +#include <scsi/scsi_tcq.h>
  #include <scsi/scsi_transport.h>
  #include <linux/libata.h>
  #include <linux/hdreg.h>
@@@ -2346,12 -2303,14 +2346,12 @@@ static unsigned int atapi_xlat(struct a
                qc->tf.protocol = ATA_PROT_ATAPI_DMA;
                qc->tf.feature |= ATAPI_PKT_DMA;
  
 -#ifdef ATAPI_ENABLE_DMADIR
 -              /* some SATA bridges need us to indicate data xfer direction */
 -              if (cmd->sc_data_direction != DMA_TO_DEVICE)
 +              if (atapi_dmadir && (cmd->sc_data_direction != DMA_TO_DEVICE))
 +                      /* some SATA bridges need us to indicate data xfer direction */
                        qc->tf.feature |= ATAPI_DMADIR;
 -#endif
        }
  
-       qc->nbytes = cmd->bufflen;
+       qc->nbytes = cmd->request_bufflen;
  
        return 0;
  }
@@@ -2553,11 -2500,8 +2553,11 @@@ ata_scsi_pass_thru(struct ata_queued_cm
         * TODO: find out if we need to do more here to
         *       cover scatter/gather case.
         */
-       qc->nsect = cmd->bufflen / ATA_SECT_SIZE;
+       qc->nsect = cmd->request_bufflen / ATA_SECT_SIZE;
  
 +      /* request result TF */
 +      qc->flags |= ATA_QCFLAG_RESULT_TF;
 +
        return 0;
  
   invalid_fld:
Simple merge
Simple merge
Simple merge
Simple merge
index 55dc8ac3f02035530c5336801d64213cf4a6dca6,cde701c13c771721719bbeadab4130ab294e2eea..c2fd2d19938b94931303ed9e538b235a69494687
  #define PCI_DEVICE_ID_NVIDIA_QUADRO_FX_1100         0x034E
  #define PCI_DEVICE_ID_NVIDIA_NVENET_14              0x0372
  #define PCI_DEVICE_ID_NVIDIA_NVENET_15              0x0373
+ #define PCI_DEVICE_ID_NVIDIA_NVENET_16              0x03E5
+ #define PCI_DEVICE_ID_NVIDIA_NVENET_17              0x03E6
 +#define PCI_DEVICE_ID_NVIDIA_NFORCE_MCP61_SATA      0x03E7
 +#define PCI_DEVICE_ID_NVIDIA_NFORCE_MCP61_IDE       0x03EC
+ #define PCI_DEVICE_ID_NVIDIA_NVENET_18              0x03EE
+ #define PCI_DEVICE_ID_NVIDIA_NVENET_19              0x03EF
 +#define PCI_DEVICE_ID_NVIDIA_NFORCE_MCP61_SATA2     0x03F6
 +#define PCI_DEVICE_ID_NVIDIA_NFORCE_MCP61_SATA3     0x03F7
+ #define PCI_DEVICE_ID_NVIDIA_NVENET_20              0x0450
+ #define PCI_DEVICE_ID_NVIDIA_NVENET_21              0x0451
+ #define PCI_DEVICE_ID_NVIDIA_NVENET_22              0x0452
+ #define PCI_DEVICE_ID_NVIDIA_NVENET_23              0x0453
  
  #define PCI_VENDOR_ID_IMS             0x10e0
  #define PCI_DEVICE_ID_IMS_TT128               0x9128
index 88c6c4da6c054d0d7b5b1a9dedff6a540e7a3be9,b0caabec1bd13e8997bee6a47fe77a0808410bb0..e46cd404bd7d2bdeffcbaba5e4147d53251d6efd
@@@ -151,6 -145,9 +145,10 @@@ extern struct scsi_cmnd *scsi_get_comma
  extern void scsi_put_command(struct scsi_cmnd *);
  extern void scsi_io_completion(struct scsi_cmnd *, unsigned int, unsigned int);
  extern void scsi_finish_command(struct scsi_cmnd *cmd);
 +extern void scsi_req_abort_cmd(struct scsi_cmnd *cmd);
  
+ extern void *scsi_kmap_atomic_sg(struct scatterlist *sg, int sg_count,
+                                size_t *offset, size_t *len);
+ extern void scsi_kunmap_atomic_sg(void *virt);
  #endif /* _SCSI_SCSI_CMND_H */