diff options
Diffstat (limited to 'drivers/dma/iop-adma.c')
-rw-r--r-- | drivers/dma/iop-adma.c | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/drivers/dma/iop-adma.c b/drivers/dma/iop-adma.c index eacb8be99812..7dafb9f3785f 100644 --- a/drivers/dma/iop-adma.c +++ b/drivers/dma/iop-adma.c | |||
@@ -936,7 +936,7 @@ static irqreturn_t iop_adma_err_handler(int irq, void *data) | |||
936 | struct iop_adma_chan *chan = data; | 936 | struct iop_adma_chan *chan = data; |
937 | unsigned long status = iop_chan_get_status(chan); | 937 | unsigned long status = iop_chan_get_status(chan); |
938 | 938 | ||
939 | dev_printk(KERN_ERR, chan->device->common.dev, | 939 | dev_err(chan->device->common.dev, |
940 | "error ( %s%s%s%s%s%s%s)\n", | 940 | "error ( %s%s%s%s%s%s%s)\n", |
941 | iop_is_err_int_parity(status, chan) ? "int_parity " : "", | 941 | iop_is_err_int_parity(status, chan) ? "int_parity " : "", |
942 | iop_is_err_mcu_abort(status, chan) ? "mcu_abort " : "", | 942 | iop_is_err_mcu_abort(status, chan) ? "mcu_abort " : "", |
@@ -1017,7 +1017,7 @@ static int iop_adma_memcpy_self_test(struct iop_adma_device *device) | |||
1017 | 1017 | ||
1018 | if (iop_adma_status(dma_chan, cookie, NULL) != | 1018 | if (iop_adma_status(dma_chan, cookie, NULL) != |
1019 | DMA_SUCCESS) { | 1019 | DMA_SUCCESS) { |
1020 | dev_printk(KERN_ERR, dma_chan->device->dev, | 1020 | dev_err(dma_chan->device->dev, |
1021 | "Self-test copy timed out, disabling\n"); | 1021 | "Self-test copy timed out, disabling\n"); |
1022 | err = -ENODEV; | 1022 | err = -ENODEV; |
1023 | goto free_resources; | 1023 | goto free_resources; |
@@ -1027,7 +1027,7 @@ static int iop_adma_memcpy_self_test(struct iop_adma_device *device) | |||
1027 | dma_sync_single_for_cpu(&iop_chan->device->pdev->dev, dest_dma, | 1027 | dma_sync_single_for_cpu(&iop_chan->device->pdev->dev, dest_dma, |
1028 | IOP_ADMA_TEST_SIZE, DMA_FROM_DEVICE); | 1028 | IOP_ADMA_TEST_SIZE, DMA_FROM_DEVICE); |
1029 | if (memcmp(src, dest, IOP_ADMA_TEST_SIZE)) { | 1029 | if (memcmp(src, dest, IOP_ADMA_TEST_SIZE)) { |
1030 | dev_printk(KERN_ERR, dma_chan->device->dev, | 1030 | dev_err(dma_chan->device->dev, |
1031 | "Self-test copy failed compare, disabling\n"); | 1031 | "Self-test copy failed compare, disabling\n"); |
1032 | err = -ENODEV; | 1032 | err = -ENODEV; |
1033 | goto free_resources; | 1033 | goto free_resources; |
@@ -1117,7 +1117,7 @@ iop_adma_xor_val_self_test(struct iop_adma_device *device) | |||
1117 | 1117 | ||
1118 | if (iop_adma_status(dma_chan, cookie, NULL) != | 1118 | if (iop_adma_status(dma_chan, cookie, NULL) != |
1119 | DMA_SUCCESS) { | 1119 | DMA_SUCCESS) { |
1120 | dev_printk(KERN_ERR, dma_chan->device->dev, | 1120 | dev_err(dma_chan->device->dev, |
1121 | "Self-test xor timed out, disabling\n"); | 1121 | "Self-test xor timed out, disabling\n"); |
1122 | err = -ENODEV; | 1122 | err = -ENODEV; |
1123 | goto free_resources; | 1123 | goto free_resources; |
@@ -1129,7 +1129,7 @@ iop_adma_xor_val_self_test(struct iop_adma_device *device) | |||
1129 | for (i = 0; i < (PAGE_SIZE / sizeof(u32)); i++) { | 1129 | for (i = 0; i < (PAGE_SIZE / sizeof(u32)); i++) { |
1130 | u32 *ptr = page_address(dest); | 1130 | u32 *ptr = page_address(dest); |
1131 | if (ptr[i] != cmp_word) { | 1131 | if (ptr[i] != cmp_word) { |
1132 | dev_printk(KERN_ERR, dma_chan->device->dev, | 1132 | dev_err(dma_chan->device->dev, |
1133 | "Self-test xor failed compare, disabling\n"); | 1133 | "Self-test xor failed compare, disabling\n"); |
1134 | err = -ENODEV; | 1134 | err = -ENODEV; |
1135 | goto free_resources; | 1135 | goto free_resources; |
@@ -1163,14 +1163,14 @@ iop_adma_xor_val_self_test(struct iop_adma_device *device) | |||
1163 | msleep(8); | 1163 | msleep(8); |
1164 | 1164 | ||
1165 | if (iop_adma_status(dma_chan, cookie, NULL) != DMA_SUCCESS) { | 1165 | if (iop_adma_status(dma_chan, cookie, NULL) != DMA_SUCCESS) { |
1166 | dev_printk(KERN_ERR, dma_chan->device->dev, | 1166 | dev_err(dma_chan->device->dev, |
1167 | "Self-test zero sum timed out, disabling\n"); | 1167 | "Self-test zero sum timed out, disabling\n"); |
1168 | err = -ENODEV; | 1168 | err = -ENODEV; |
1169 | goto free_resources; | 1169 | goto free_resources; |
1170 | } | 1170 | } |
1171 | 1171 | ||
1172 | if (zero_sum_result != 0) { | 1172 | if (zero_sum_result != 0) { |
1173 | dev_printk(KERN_ERR, dma_chan->device->dev, | 1173 | dev_err(dma_chan->device->dev, |
1174 | "Self-test zero sum failed compare, disabling\n"); | 1174 | "Self-test zero sum failed compare, disabling\n"); |
1175 | err = -ENODEV; | 1175 | err = -ENODEV; |
1176 | goto free_resources; | 1176 | goto free_resources; |
@@ -1187,7 +1187,7 @@ iop_adma_xor_val_self_test(struct iop_adma_device *device) | |||
1187 | msleep(8); | 1187 | msleep(8); |
1188 | 1188 | ||
1189 | if (iop_adma_status(dma_chan, cookie, NULL) != DMA_SUCCESS) { | 1189 | if (iop_adma_status(dma_chan, cookie, NULL) != DMA_SUCCESS) { |
1190 | dev_printk(KERN_ERR, dma_chan->device->dev, | 1190 | dev_err(dma_chan->device->dev, |
1191 | "Self-test memset timed out, disabling\n"); | 1191 | "Self-test memset timed out, disabling\n"); |
1192 | err = -ENODEV; | 1192 | err = -ENODEV; |
1193 | goto free_resources; | 1193 | goto free_resources; |
@@ -1196,7 +1196,7 @@ iop_adma_xor_val_self_test(struct iop_adma_device *device) | |||
1196 | for (i = 0; i < PAGE_SIZE/sizeof(u32); i++) { | 1196 | for (i = 0; i < PAGE_SIZE/sizeof(u32); i++) { |
1197 | u32 *ptr = page_address(dest); | 1197 | u32 *ptr = page_address(dest); |
1198 | if (ptr[i]) { | 1198 | if (ptr[i]) { |
1199 | dev_printk(KERN_ERR, dma_chan->device->dev, | 1199 | dev_err(dma_chan->device->dev, |
1200 | "Self-test memset failed compare, disabling\n"); | 1200 | "Self-test memset failed compare, disabling\n"); |
1201 | err = -ENODEV; | 1201 | err = -ENODEV; |
1202 | goto free_resources; | 1202 | goto free_resources; |
@@ -1219,14 +1219,14 @@ iop_adma_xor_val_self_test(struct iop_adma_device *device) | |||
1219 | msleep(8); | 1219 | msleep(8); |
1220 | 1220 | ||
1221 | if (iop_adma_status(dma_chan, cookie, NULL) != DMA_SUCCESS) { | 1221 | if (iop_adma_status(dma_chan, cookie, NULL) != DMA_SUCCESS) { |
1222 | dev_printk(KERN_ERR, dma_chan->device->dev, | 1222 | dev_err(dma_chan->device->dev, |
1223 | "Self-test non-zero sum timed out, disabling\n"); | 1223 | "Self-test non-zero sum timed out, disabling\n"); |
1224 | err = -ENODEV; | 1224 | err = -ENODEV; |
1225 | goto free_resources; | 1225 | goto free_resources; |
1226 | } | 1226 | } |
1227 | 1227 | ||
1228 | if (zero_sum_result != 1) { | 1228 | if (zero_sum_result != 1) { |
1229 | dev_printk(KERN_ERR, dma_chan->device->dev, | 1229 | dev_err(dma_chan->device->dev, |
1230 | "Self-test non-zero sum failed compare, disabling\n"); | 1230 | "Self-test non-zero sum failed compare, disabling\n"); |
1231 | err = -ENODEV; | 1231 | err = -ENODEV; |
1232 | goto free_resources; | 1232 | goto free_resources; |
@@ -1579,15 +1579,14 @@ static int iop_adma_probe(struct platform_device *pdev) | |||
1579 | goto err_free_iop_chan; | 1579 | goto err_free_iop_chan; |
1580 | } | 1580 | } |
1581 | 1581 | ||
1582 | dev_printk(KERN_INFO, &pdev->dev, "Intel(R) IOP: " | 1582 | dev_info(&pdev->dev, "Intel(R) IOP: ( %s%s%s%s%s%s%s)\n", |
1583 | "( %s%s%s%s%s%s%s)\n", | 1583 | dma_has_cap(DMA_PQ, dma_dev->cap_mask) ? "pq " : "", |
1584 | dma_has_cap(DMA_PQ, dma_dev->cap_mask) ? "pq " : "", | 1584 | dma_has_cap(DMA_PQ_VAL, dma_dev->cap_mask) ? "pq_val " : "", |
1585 | dma_has_cap(DMA_PQ_VAL, dma_dev->cap_mask) ? "pq_val " : "", | 1585 | dma_has_cap(DMA_XOR, dma_dev->cap_mask) ? "xor " : "", |
1586 | dma_has_cap(DMA_XOR, dma_dev->cap_mask) ? "xor " : "", | 1586 | dma_has_cap(DMA_XOR_VAL, dma_dev->cap_mask) ? "xor_val " : "", |
1587 | dma_has_cap(DMA_XOR_VAL, dma_dev->cap_mask) ? "xor_val " : "", | 1587 | dma_has_cap(DMA_MEMSET, dma_dev->cap_mask) ? "fill " : "", |
1588 | dma_has_cap(DMA_MEMSET, dma_dev->cap_mask) ? "fill " : "", | 1588 | dma_has_cap(DMA_MEMCPY, dma_dev->cap_mask) ? "cpy " : "", |
1589 | dma_has_cap(DMA_MEMCPY, dma_dev->cap_mask) ? "cpy " : "", | 1589 | dma_has_cap(DMA_INTERRUPT, dma_dev->cap_mask) ? "intr " : ""); |
1590 | dma_has_cap(DMA_INTERRUPT, dma_dev->cap_mask) ? "intr " : ""); | ||
1591 | 1590 | ||
1592 | dma_async_device_register(dma_dev); | 1591 | dma_async_device_register(dma_dev); |
1593 | goto out; | 1592 | goto out; |
@@ -1651,8 +1650,8 @@ static void iop_chan_start_null_memcpy(struct iop_adma_chan *iop_chan) | |||
1651 | /* run the descriptor */ | 1650 | /* run the descriptor */ |
1652 | iop_chan_enable(iop_chan); | 1651 | iop_chan_enable(iop_chan); |
1653 | } else | 1652 | } else |
1654 | dev_printk(KERN_ERR, iop_chan->device->common.dev, | 1653 | dev_err(iop_chan->device->common.dev, |
1655 | "failed to allocate null descriptor\n"); | 1654 | "failed to allocate null descriptor\n"); |
1656 | spin_unlock_bh(&iop_chan->lock); | 1655 | spin_unlock_bh(&iop_chan->lock); |
1657 | } | 1656 | } |
1658 | 1657 | ||
@@ -1704,7 +1703,7 @@ static void iop_chan_start_null_xor(struct iop_adma_chan *iop_chan) | |||
1704 | /* run the descriptor */ | 1703 | /* run the descriptor */ |
1705 | iop_chan_enable(iop_chan); | 1704 | iop_chan_enable(iop_chan); |
1706 | } else | 1705 | } else |
1707 | dev_printk(KERN_ERR, iop_chan->device->common.dev, | 1706 | dev_err(iop_chan->device->common.dev, |
1708 | "failed to allocate null descriptor\n"); | 1707 | "failed to allocate null descriptor\n"); |
1709 | spin_unlock_bh(&iop_chan->lock); | 1708 | spin_unlock_bh(&iop_chan->lock); |
1710 | } | 1709 | } |