diff options
Diffstat (limited to 'drivers/dma/ioat/init.c')
-rw-r--r-- | drivers/dma/ioat/init.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/drivers/dma/ioat/init.c b/drivers/dma/ioat/init.c index 6b8fd49cf718..e6969809d723 100644 --- a/drivers/dma/ioat/init.c +++ b/drivers/dma/ioat/init.c | |||
@@ -735,13 +735,6 @@ ioat_init_channel(struct ioatdma_device *ioat_dma, | |||
735 | tasklet_init(&ioat_chan->cleanup_task, ioat_dma->cleanup_fn, data); | 735 | tasklet_init(&ioat_chan->cleanup_task, ioat_dma->cleanup_fn, data); |
736 | } | 736 | } |
737 | 737 | ||
738 | static void ioat3_dma_test_callback(void *dma_async_param) | ||
739 | { | ||
740 | struct completion *cmp = dma_async_param; | ||
741 | |||
742 | complete(cmp); | ||
743 | } | ||
744 | |||
745 | #define IOAT_NUM_SRC_TEST 6 /* must be <= 8 */ | 738 | #define IOAT_NUM_SRC_TEST 6 /* must be <= 8 */ |
746 | static int ioat_xor_val_self_test(struct ioatdma_device *ioat_dma) | 739 | static int ioat_xor_val_self_test(struct ioatdma_device *ioat_dma) |
747 | { | 740 | { |
@@ -835,7 +828,7 @@ static int ioat_xor_val_self_test(struct ioatdma_device *ioat_dma) | |||
835 | 828 | ||
836 | async_tx_ack(tx); | 829 | async_tx_ack(tx); |
837 | init_completion(&cmp); | 830 | init_completion(&cmp); |
838 | tx->callback = ioat3_dma_test_callback; | 831 | tx->callback = ioat_dma_test_callback; |
839 | tx->callback_param = &cmp; | 832 | tx->callback_param = &cmp; |
840 | cookie = tx->tx_submit(tx); | 833 | cookie = tx->tx_submit(tx); |
841 | if (cookie < 0) { | 834 | if (cookie < 0) { |
@@ -903,7 +896,7 @@ static int ioat_xor_val_self_test(struct ioatdma_device *ioat_dma) | |||
903 | 896 | ||
904 | async_tx_ack(tx); | 897 | async_tx_ack(tx); |
905 | init_completion(&cmp); | 898 | init_completion(&cmp); |
906 | tx->callback = ioat3_dma_test_callback; | 899 | tx->callback = ioat_dma_test_callback; |
907 | tx->callback_param = &cmp; | 900 | tx->callback_param = &cmp; |
908 | cookie = tx->tx_submit(tx); | 901 | cookie = tx->tx_submit(tx); |
909 | if (cookie < 0) { | 902 | if (cookie < 0) { |
@@ -956,7 +949,7 @@ static int ioat_xor_val_self_test(struct ioatdma_device *ioat_dma) | |||
956 | 949 | ||
957 | async_tx_ack(tx); | 950 | async_tx_ack(tx); |
958 | init_completion(&cmp); | 951 | init_completion(&cmp); |
959 | tx->callback = ioat3_dma_test_callback; | 952 | tx->callback = ioat_dma_test_callback; |
960 | tx->callback_param = &cmp; | 953 | tx->callback_param = &cmp; |
961 | cookie = tx->tx_submit(tx); | 954 | cookie = tx->tx_submit(tx); |
962 | if (cookie < 0) { | 955 | if (cookie < 0) { |
@@ -1024,7 +1017,7 @@ static int ioat3_dma_self_test(struct ioatdma_device *ioat_dma) | |||
1024 | return 0; | 1017 | return 0; |
1025 | } | 1018 | } |
1026 | 1019 | ||
1027 | static void ioat3_intr_quirk(struct ioatdma_device *ioat_dma) | 1020 | static void ioat_intr_quirk(struct ioatdma_device *ioat_dma) |
1028 | { | 1021 | { |
1029 | struct dma_device *dma; | 1022 | struct dma_device *dma; |
1030 | struct dma_chan *c; | 1023 | struct dma_chan *c; |
@@ -1063,7 +1056,7 @@ static int ioat3_dma_probe(struct ioatdma_device *ioat_dma, int dca) | |||
1063 | ioat_dma->enumerate_channels = ioat_enumerate_channels; | 1056 | ioat_dma->enumerate_channels = ioat_enumerate_channels; |
1064 | ioat_dma->reset_hw = ioat_reset_hw; | 1057 | ioat_dma->reset_hw = ioat_reset_hw; |
1065 | ioat_dma->self_test = ioat3_dma_self_test; | 1058 | ioat_dma->self_test = ioat3_dma_self_test; |
1066 | ioat_dma->intr_quirk = ioat3_intr_quirk; | 1059 | ioat_dma->intr_quirk = ioat_intr_quirk; |
1067 | dma = &ioat_dma->dma_dev; | 1060 | dma = &ioat_dma->dma_dev; |
1068 | dma->device_prep_dma_memcpy = ioat_dma_prep_memcpy_lock; | 1061 | dma->device_prep_dma_memcpy = ioat_dma_prep_memcpy_lock; |
1069 | dma->device_issue_pending = ioat_issue_pending; | 1062 | dma->device_issue_pending = ioat_issue_pending; |
@@ -1162,7 +1155,7 @@ static int ioat3_dma_probe(struct ioatdma_device *ioat_dma, int dca) | |||
1162 | ioat_kobject_add(ioat_dma, &ioat_ktype); | 1155 | ioat_kobject_add(ioat_dma, &ioat_ktype); |
1163 | 1156 | ||
1164 | if (dca) | 1157 | if (dca) |
1165 | ioat_dma->dca = ioat3_dca_init(pdev, ioat_dma->reg_base); | 1158 | ioat_dma->dca = ioat_dca_init(pdev, ioat_dma->reg_base); |
1166 | 1159 | ||
1167 | return 0; | 1160 | return 0; |
1168 | } | 1161 | } |