diff options
| author | Tejun Heo <tj@kernel.org> | 2017-01-09 07:38:25 -0500 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2017-01-09 07:38:25 -0500 |
| commit | 0fe4618d3b22d0ae44a4e650526466cf570ff8a5 (patch) | |
| tree | 0c692cacd3431642945df7f4163aefca63ede012 | |
| parent | 88af4bbd8f6983378c3098ca3e26c4e48434fe69 (diff) | |
| parent | 064c3db9c564cc5be514ac21fb4aa26cc33db746 (diff) | |
Merge branch 'for-4.10-fixes' into for-4.11
| -rw-r--r-- | drivers/ata/libata-core.c | 6 | ||||
| -rw-r--r-- | drivers/ata/sata_mv.c | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index dc70b5f997f1..ca75823697dd 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
| @@ -1702,6 +1702,8 @@ unsigned ata_exec_internal_sg(struct ata_device *dev, | |||
| 1702 | 1702 | ||
| 1703 | if (qc->err_mask & ~AC_ERR_OTHER) | 1703 | if (qc->err_mask & ~AC_ERR_OTHER) |
| 1704 | qc->err_mask &= ~AC_ERR_OTHER; | 1704 | qc->err_mask &= ~AC_ERR_OTHER; |
| 1705 | } else if (qc->tf.command == ATA_CMD_REQ_SENSE_DATA) { | ||
| 1706 | qc->result_tf.command |= ATA_SENSE; | ||
| 1705 | } | 1707 | } |
| 1706 | 1708 | ||
| 1707 | /* finish up */ | 1709 | /* finish up */ |
| @@ -4356,10 +4358,10 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = { | |||
| 4356 | { "ST380013AS", "3.20", ATA_HORKAGE_MAX_SEC_1024 }, | 4358 | { "ST380013AS", "3.20", ATA_HORKAGE_MAX_SEC_1024 }, |
| 4357 | 4359 | ||
| 4358 | /* | 4360 | /* |
| 4359 | * Device times out with higher max sects. | 4361 | * These devices time out with higher max sects. |
| 4360 | * https://bugzilla.kernel.org/show_bug.cgi?id=121671 | 4362 | * https://bugzilla.kernel.org/show_bug.cgi?id=121671 |
| 4361 | */ | 4363 | */ |
| 4362 | { "LITEON CX1-JB256-HP", NULL, ATA_HORKAGE_MAX_SEC_1024 }, | 4364 | { "LITEON CX1-JB*-HP", NULL, ATA_HORKAGE_MAX_SEC_1024 }, |
| 4363 | 4365 | ||
| 4364 | /* Devices we expect to fail diagnostics */ | 4366 | /* Devices we expect to fail diagnostics */ |
| 4365 | 4367 | ||
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index bcbfe23a45f6..6eed4a72d328 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c | |||
| @@ -4132,6 +4132,9 @@ static int mv_platform_probe(struct platform_device *pdev) | |||
| 4132 | host->iomap = NULL; | 4132 | host->iomap = NULL; |
| 4133 | hpriv->base = devm_ioremap(&pdev->dev, res->start, | 4133 | hpriv->base = devm_ioremap(&pdev->dev, res->start, |
| 4134 | resource_size(res)); | 4134 | resource_size(res)); |
| 4135 | if (!hpriv->base) | ||
| 4136 | return -ENOMEM; | ||
| 4137 | |||
| 4135 | hpriv->base -= SATAHC0_REG_BASE; | 4138 | hpriv->base -= SATAHC0_REG_BASE; |
| 4136 | 4139 | ||
| 4137 | hpriv->clk = clk_get(&pdev->dev, NULL); | 4140 | hpriv->clk = clk_get(&pdev->dev, NULL); |
