mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Merge branch 'master' into upstream-fixes
This commit is contained in:
commit
803db244b9
77 changed files with 1382 additions and 689 deletions
|
|
@ -48,14 +48,14 @@
|
|||
#include <linux/completion.h>
|
||||
|
||||
#define CCISS_DRIVER_VERSION(maj,min,submin) ((maj<<16)|(min<<8)|(submin))
|
||||
#define DRIVER_NAME "HP CISS Driver (v 2.6.10)"
|
||||
#define DRIVER_VERSION CCISS_DRIVER_VERSION(2,6,10)
|
||||
#define DRIVER_NAME "HP CISS Driver (v 3.6.10)"
|
||||
#define DRIVER_VERSION CCISS_DRIVER_VERSION(3,6,10)
|
||||
|
||||
/* Embedded module documentation macros - see modules.h */
|
||||
MODULE_AUTHOR("Hewlett-Packard Company");
|
||||
MODULE_DESCRIPTION("Driver for HP Controller SA5xxx SA6xxx version 2.6.10");
|
||||
MODULE_DESCRIPTION("Driver for HP Controller SA5xxx SA6xxx version 3.6.10");
|
||||
MODULE_SUPPORTED_DEVICE("HP SA5i SA5i+ SA532 SA5300 SA5312 SA641 SA642 SA6400"
|
||||
" SA6i P600 P800 P400 P400i E200 E200i");
|
||||
" SA6i P600 P800 P400 P400i E200 E200i E500");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
#include "cciss_cmd.h"
|
||||
|
|
@ -82,6 +82,7 @@ static const struct pci_device_id cciss_pci_device_id[] = {
|
|||
{PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSD, 0x103C, 0x3213},
|
||||
{PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSD, 0x103C, 0x3214},
|
||||
{PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSD, 0x103C, 0x3215},
|
||||
{PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSC, 0x103C, 0x3233},
|
||||
{0,}
|
||||
};
|
||||
|
||||
|
|
@ -110,6 +111,7 @@ static struct board_type products[] = {
|
|||
{0x3213103C, "Smart Array E200i", &SA5_access},
|
||||
{0x3214103C, "Smart Array E200i", &SA5_access},
|
||||
{0x3215103C, "Smart Array E200i", &SA5_access},
|
||||
{0x3233103C, "Smart Array E500", &SA5_access},
|
||||
};
|
||||
|
||||
/* How long to wait (in milliseconds) for board to go into simple mode */
|
||||
|
|
|
|||
|
|
@ -668,6 +668,7 @@ int khvcd(void *unused)
|
|||
do {
|
||||
poll_mask = 0;
|
||||
hvc_kicked = 0;
|
||||
try_to_freeze();
|
||||
wmb();
|
||||
if (cpus_empty(cpus_in_xmon)) {
|
||||
spin_lock(&hvc_structs_lock);
|
||||
|
|
|
|||
|
|
@ -402,10 +402,10 @@ static void handle_flags(struct smi_info *smi_info)
|
|||
smi_info->curr_msg->data,
|
||||
smi_info->curr_msg->data_size);
|
||||
smi_info->si_state = SI_GETTING_EVENTS;
|
||||
} else if (smi_info->msg_flags & OEM_DATA_AVAIL) {
|
||||
if (smi_info->oem_data_avail_handler)
|
||||
if (smi_info->oem_data_avail_handler(smi_info))
|
||||
goto retry;
|
||||
} else if (smi_info->msg_flags & OEM_DATA_AVAIL &&
|
||||
smi_info->oem_data_avail_handler) {
|
||||
if (smi_info->oem_data_avail_handler(smi_info))
|
||||
goto retry;
|
||||
} else {
|
||||
smi_info->si_state = SI_NORMAL;
|
||||
}
|
||||
|
|
@ -2481,6 +2481,7 @@ static __devinit int init_ipmi_si(void)
|
|||
#ifdef CONFIG_PCI
|
||||
pci_unregister_driver(&ipmi_pci_driver);
|
||||
#endif
|
||||
driver_unregister(&ipmi_driver);
|
||||
printk("ipmi_si: Unable to find any System Interface(s)\n");
|
||||
return -ENODEV;
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -730,7 +730,7 @@ static unsigned int __devinit ata66_ali15x3 (ide_hwif_t *hwif)
|
|||
|
||||
if(m5229_revision <= 0x20)
|
||||
tmpbyte = (tmpbyte & (~0x02)) | 0x01;
|
||||
else if (m5229_revision == 0xc7)
|
||||
else if (m5229_revision == 0xc7 || m5229_revision == 0xc8)
|
||||
tmpbyte |= 0x03;
|
||||
else
|
||||
tmpbyte |= 0x01;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ MODULE_DESCRIPTION("Generic RDMA CM Agent");
|
|||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
|
||||
#define CMA_CM_RESPONSE_TIMEOUT 20
|
||||
#define CMA_MAX_CM_RETRIES 3
|
||||
#define CMA_MAX_CM_RETRIES 15
|
||||
|
||||
static void cma_add_one(struct ib_device *device);
|
||||
static void cma_remove_one(struct ib_device *device);
|
||||
|
|
|
|||
|
|
@ -326,6 +326,7 @@ ipoib_mcast_sendonly_join_complete(int status,
|
|||
|
||||
/* Clear the busy flag so we try again */
|
||||
clear_bit(IPOIB_MCAST_FLAG_BUSY, &mcast->flags);
|
||||
mcast->query = NULL;
|
||||
}
|
||||
|
||||
complete(&mcast->done);
|
||||
|
|
|
|||
|
|
@ -799,13 +799,6 @@ static void srp_process_rsp(struct srp_target_port *target, struct srp_rsp *rsp)
|
|||
spin_unlock_irqrestore(target->scsi_host->host_lock, flags);
|
||||
}
|
||||
|
||||
static void srp_reconnect_work(void *target_ptr)
|
||||
{
|
||||
struct srp_target_port *target = target_ptr;
|
||||
|
||||
srp_reconnect_target(target);
|
||||
}
|
||||
|
||||
static void srp_handle_recv(struct srp_target_port *target, struct ib_wc *wc)
|
||||
{
|
||||
struct srp_iu *iu;
|
||||
|
|
@ -858,7 +851,6 @@ static void srp_completion(struct ib_cq *cq, void *target_ptr)
|
|||
{
|
||||
struct srp_target_port *target = target_ptr;
|
||||
struct ib_wc wc;
|
||||
unsigned long flags;
|
||||
|
||||
ib_req_notify_cq(cq, IB_CQ_NEXT_COMP);
|
||||
while (ib_poll_cq(cq, 1, &wc) > 0) {
|
||||
|
|
@ -866,10 +858,6 @@ static void srp_completion(struct ib_cq *cq, void *target_ptr)
|
|||
printk(KERN_ERR PFX "failed %s status %d\n",
|
||||
wc.wr_id & SRP_OP_RECV ? "receive" : "send",
|
||||
wc.status);
|
||||
spin_lock_irqsave(target->scsi_host->host_lock, flags);
|
||||
if (target->state == SRP_TARGET_LIVE)
|
||||
schedule_work(&target->work);
|
||||
spin_unlock_irqrestore(target->scsi_host->host_lock, flags);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -1705,8 +1693,6 @@ static ssize_t srp_create_target(struct class_device *class_dev,
|
|||
target->scsi_host = target_host;
|
||||
target->srp_host = host;
|
||||
|
||||
INIT_WORK(&target->work, srp_reconnect_work, target);
|
||||
|
||||
INIT_LIST_HEAD(&target->free_reqs);
|
||||
INIT_LIST_HEAD(&target->req_queue);
|
||||
for (i = 0; i < SRP_SQ_SIZE; ++i) {
|
||||
|
|
|
|||
|
|
@ -1204,7 +1204,7 @@ static int nand_write_oob_syndrome(struct mtd_info *mtd,
|
|||
pos = steps * (eccsize + chunk);
|
||||
steps = 0;
|
||||
} else
|
||||
pos = eccsize + chunk;
|
||||
pos = eccsize;
|
||||
|
||||
chip->cmdfunc(mtd, NAND_CMD_SEQIN, pos, page);
|
||||
for (i = 0; i < steps; i++) {
|
||||
|
|
@ -1567,7 +1567,7 @@ static uint8_t *nand_fill_oob(struct nand_chip *chip, uint8_t *oob,
|
|||
bytes = min_t(size_t, len, free->length);
|
||||
boffs = free->offset;
|
||||
}
|
||||
memcpy(chip->oob_poi + woffs, oob, bytes);
|
||||
memcpy(chip->oob_poi + boffs, oob, bytes);
|
||||
oob += bytes;
|
||||
}
|
||||
return oob;
|
||||
|
|
|
|||
|
|
@ -1256,10 +1256,15 @@ int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class,
|
|||
swap_buf_le16(id, ATA_ID_WORDS);
|
||||
|
||||
/* sanity check */
|
||||
if ((class == ATA_DEV_ATA) != (ata_id_is_ata(id) | ata_id_is_cfa(id))) {
|
||||
rc = -EINVAL;
|
||||
reason = "device reports illegal type";
|
||||
goto err_out;
|
||||
rc = -EINVAL;
|
||||
reason = "device reports illegal type";
|
||||
|
||||
if (class == ATA_DEV_ATA) {
|
||||
if (!ata_id_is_ata(id) && !ata_id_is_cfa(id))
|
||||
goto err_out;
|
||||
} else {
|
||||
if (ata_id_is_ata(id))
|
||||
goto err_out;
|
||||
}
|
||||
|
||||
if (post_reset && class == ATA_DEV_ATA) {
|
||||
|
|
|
|||
|
|
@ -466,7 +466,7 @@ static int scsi_send_eh_cmnd(struct scsi_cmnd *scmd, unsigned char *cmnd,
|
|||
struct scsi_device *sdev = scmd->device;
|
||||
struct Scsi_Host *shost = sdev->host;
|
||||
int old_result = scmd->result;
|
||||
DECLARE_COMPLETION(done);
|
||||
DECLARE_COMPLETION_ONSTACK(done);
|
||||
unsigned long timeleft;
|
||||
unsigned long flags;
|
||||
unsigned char old_cmnd[MAX_COMMAND_SIZE];
|
||||
|
|
|
|||
Loading…
Reference in a new issue