Skip to content

Commit a6dc772

Browse files
committed
Merge branch 'dmaengine' of git://git.linaro.org/people/rmk/linux-arm
Pull ARM DMA engine updates from Russell King: "This looks scary at first glance, but what it is is: - a rework of the sa11x0 DMA engine driver merged during the previous cycle, to extract a common set of helper functions for DMA engine implementations. - conversion of amba-pl08x.c to use these helper functions. - addition of OMAP DMA engine driver (using these helper functions), and conversion of some of the OMAP DMA users to use DMA engine. Nothing in the helper functions is ARM specific, so I hope that other implementations can consolidate some of their code by making use of these helpers. This has been sitting in linux-next most of the merge cycle, and has been tested by several OMAP folk. I've tested it on sa11x0 platforms, and given it my best shot on my broken platforms which have the amba-pl08x controller. The last point is the addition to feature-removal-schedule.txt, which will have a merge conflict. Between myself and TI, we're planning to remove the old TI DMA implementation next year." Fix up trivial add/add conflicts in Documentation/feature-removal-schedule.txt and drivers/dma/{Kconfig,Makefile} * 'dmaengine' of git://git.linaro.org/people/rmk/linux-arm: (53 commits) ARM: 7481/1: OMAP2+: omap2plus_defconfig: enable OMAP DMA engine ARM: 7464/1: mmc: omap_hsmmc: ensure probe returns error if DMA channel request fails Add feature removal of old OMAP private DMA implementation mtd: omap2: remove private DMA API implementation mtd: omap2: add DMA engine support spi: omap2-mcspi: remove private DMA API implementation spi: omap2-mcspi: add DMA engine support ARM: omap: remove mmc platform data dma_mask and initialization mmc: omap: remove private DMA API implementation mmc: omap: add DMA engine support mmc: omap_hsmmc: remove private DMA API implementation mmc: omap_hsmmc: add DMA engine support dmaengine: omap: add support for cyclic DMA dmaengine: omap: add support for setting fi dmaengine: omap: add support for returning residue in tx_state method dmaengine: add OMAP DMA engine driver dmaengine: sa11x0-dma: add cyclic DMA support dmaengine: sa11x0-dma: fix DMA residue support dmaengine: PL08x: ensure all descriptors are freed when channel is released dmaengine: PL08x: get rid of write only pool_ctr and free_txd locking ...
2 parents 02a6ec6 + 0e52d98 commit a6dc772

28 files changed

Lines changed: 2124 additions & 1415 deletions

File tree

‎Documentation/feature-removal-schedule.txt‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,3 +626,14 @@ Why: New drivers should use new V4L2_CAP_VIDEO_M2M capability flag
626626
Who: Sylwester Nawrocki <s.nawrocki@samsung.com>
627627

628628
----------------------------
629+
630+
What: OMAP private DMA implementation
631+
When: 2013
632+
Why: We have a DMA engine implementation; all users should be updated
633+
to use this rather than persisting with the old APIs. The old APIs
634+
block merging the old DMA engine implementation into the DMA
635+
engine driver.
636+
Who: Russell King <linux@arm.linux.org.uk>,
637+
Santosh Shilimkar <santosh.shilimkar@ti.com>
638+
639+
----------------------------

‎arch/arm/configs/omap2plus_defconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ CONFIG_MMC_OMAP_HS=y
193193
CONFIG_RTC_CLASS=y
194194
CONFIG_RTC_DRV_TWL92330=y
195195
CONFIG_RTC_DRV_TWL4030=y
196+
CONFIG_DMADEVICES=y
197+
CONFIG_DMA_OMAP=y
196198
CONFIG_EXT2_FS=y
197199
CONFIG_EXT3_FS=y
198200
# CONFIG_EXT3_FS_XATTR is not set

‎arch/arm/mach-omap1/board-h2-mmc.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ static struct omap_mmc_platform_data mmc1_data = {
5454
.nr_slots = 1,
5555
.init = mmc_late_init,
5656
.cleanup = mmc_cleanup,
57-
.dma_mask = 0xffffffff,
5857
.slots[0] = {
5958
.set_power = mmc_set_power,
6059
.ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34,

‎arch/arm/mach-omap1/board-h3-mmc.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ static int mmc_set_power(struct device *dev, int slot, int power_on,
3636
*/
3737
static struct omap_mmc_platform_data mmc1_data = {
3838
.nr_slots = 1,
39-
.dma_mask = 0xffffffff,
4039
.slots[0] = {
4140
.set_power = mmc_set_power,
4241
.ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34,

‎arch/arm/mach-omap1/board-nokia770.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ static int nokia770_mmc_get_cover_state(struct device *dev, int slot)
185185

186186
static struct omap_mmc_platform_data nokia770_mmc2_data = {
187187
.nr_slots = 1,
188-
.dma_mask = 0xffffffff,
189188
.max_freq = 12000000,
190189
.slots[0] = {
191190
.set_power = nokia770_mmc_set_power,

‎arch/arm/mach-omap2/board-n8x0.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,6 @@ static struct omap_mmc_platform_data mmc1_data = {
468468
.cleanup = n8x0_mmc_cleanup,
469469
.shutdown = n8x0_mmc_shutdown,
470470
.max_freq = 24000000,
471-
.dma_mask = 0xffffffff,
472471
.slots[0] = {
473472
.wires = 4,
474473
.set_power = n8x0_mmc_set_power,

‎arch/arm/mach-omap2/hsmmc.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ static int __init omap_hsmmc_pdata_init(struct omap2_hsmmc_info *c,
315315
mmc->slots[0].caps = c->caps;
316316
mmc->slots[0].pm_caps = c->pm_caps;
317317
mmc->slots[0].internal_clock = !c->ext_clock;
318-
mmc->dma_mask = 0xffffffff;
319318
mmc->max_freq = c->max_freq;
320319
if (cpu_is_omap44xx())
321320
mmc->reg_offset = OMAP4_MMC_REG_OFFSET;

‎arch/arm/mach-spear3xx/spear300.c‎

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -120,182 +120,156 @@ struct pl08x_channel_data spear300_dma_info[] = {
120120
.min_signal = 2,
121121
.max_signal = 2,
122122
.muxval = 0,
123-
.cctl = 0,
124123
.periph_buses = PL08X_AHB1,
125124
}, {
126125
.bus_id = "uart0_tx",
127126
.min_signal = 3,
128127
.max_signal = 3,
129128
.muxval = 0,
130-
.cctl = 0,
131129
.periph_buses = PL08X_AHB1,
132130
}, {
133131
.bus_id = "ssp0_rx",
134132
.min_signal = 8,
135133
.max_signal = 8,
136134
.muxval = 0,
137-
.cctl = 0,
138135
.periph_buses = PL08X_AHB1,
139136
}, {
140137
.bus_id = "ssp0_tx",
141138
.min_signal = 9,
142139
.max_signal = 9,
143140
.muxval = 0,
144-
.cctl = 0,
145141
.periph_buses = PL08X_AHB1,
146142
}, {
147143
.bus_id = "i2c_rx",
148144
.min_signal = 10,
149145
.max_signal = 10,
150146
.muxval = 0,
151-
.cctl = 0,
152147
.periph_buses = PL08X_AHB1,
153148
}, {
154149
.bus_id = "i2c_tx",
155150
.min_signal = 11,
156151
.max_signal = 11,
157152
.muxval = 0,
158-
.cctl = 0,
159153
.periph_buses = PL08X_AHB1,
160154
}, {
161155
.bus_id = "irda",
162156
.min_signal = 12,
163157
.max_signal = 12,
164158
.muxval = 0,
165-
.cctl = 0,
166159
.periph_buses = PL08X_AHB1,
167160
}, {
168161
.bus_id = "adc",
169162
.min_signal = 13,
170163
.max_signal = 13,
171164
.muxval = 0,
172-
.cctl = 0,
173165
.periph_buses = PL08X_AHB1,
174166
}, {
175167
.bus_id = "to_jpeg",
176168
.min_signal = 14,
177169
.max_signal = 14,
178170
.muxval = 0,
179-
.cctl = 0,
180171
.periph_buses = PL08X_AHB1,
181172
}, {
182173
.bus_id = "from_jpeg",
183174
.min_signal = 15,
184175
.max_signal = 15,
185176
.muxval = 0,
186-
.cctl = 0,
187177
.periph_buses = PL08X_AHB1,
188178
}, {
189179
.bus_id = "ras0_rx",
190180
.min_signal = 0,
191181
.max_signal = 0,
192182
.muxval = 1,
193-
.cctl = 0,
194183
.periph_buses = PL08X_AHB1,
195184
}, {
196185
.bus_id = "ras0_tx",
197186
.min_signal = 1,
198187
.max_signal = 1,
199188
.muxval = 1,
200-
.cctl = 0,
201189
.periph_buses = PL08X_AHB1,
202190
}, {
203191
.bus_id = "ras1_rx",
204192
.min_signal = 2,
205193
.max_signal = 2,
206194
.muxval = 1,
207-
.cctl = 0,
208195
.periph_buses = PL08X_AHB1,
209196
}, {
210197
.bus_id = "ras1_tx",
211198
.min_signal = 3,
212199
.max_signal = 3,
213200
.muxval = 1,
214-
.cctl = 0,
215201
.periph_buses = PL08X_AHB1,
216202
}, {
217203
.bus_id = "ras2_rx",
218204
.min_signal = 4,
219205
.max_signal = 4,
220206
.muxval = 1,
221-
.cctl = 0,
222207
.periph_buses = PL08X_AHB1,
223208
}, {
224209
.bus_id = "ras2_tx",
225210
.min_signal = 5,
226211
.max_signal = 5,
227212
.muxval = 1,
228-
.cctl = 0,
229213
.periph_buses = PL08X_AHB1,
230214
}, {
231215
.bus_id = "ras3_rx",
232216
.min_signal = 6,
233217
.max_signal = 6,
234218
.muxval = 1,
235-
.cctl = 0,
236219
.periph_buses = PL08X_AHB1,
237220
}, {
238221
.bus_id = "ras3_tx",
239222
.min_signal = 7,
240223
.max_signal = 7,
241224
.muxval = 1,
242-
.cctl = 0,
243225
.periph_buses = PL08X_AHB1,
244226
}, {
245227
.bus_id = "ras4_rx",
246228
.min_signal = 8,
247229
.max_signal = 8,
248230
.muxval = 1,
249-
.cctl = 0,
250231
.periph_buses = PL08X_AHB1,
251232
}, {
252233
.bus_id = "ras4_tx",
253234
.min_signal = 9,
254235
.max_signal = 9,
255236
.muxval = 1,
256-
.cctl = 0,
257237
.periph_buses = PL08X_AHB1,
258238
}, {
259239
.bus_id = "ras5_rx",
260240
.min_signal = 10,
261241
.max_signal = 10,
262242
.muxval = 1,
263-
.cctl = 0,
264243
.periph_buses = PL08X_AHB1,
265244
}, {
266245
.bus_id = "ras5_tx",
267246
.min_signal = 11,
268247
.max_signal = 11,
269248
.muxval = 1,
270-
.cctl = 0,
271249
.periph_buses = PL08X_AHB1,
272250
}, {
273251
.bus_id = "ras6_rx",
274252
.min_signal = 12,
275253
.max_signal = 12,
276254
.muxval = 1,
277-
.cctl = 0,
278255
.periph_buses = PL08X_AHB1,
279256
}, {
280257
.bus_id = "ras6_tx",
281258
.min_signal = 13,
282259
.max_signal = 13,
283260
.muxval = 1,
284-
.cctl = 0,
285261
.periph_buses = PL08X_AHB1,
286262
}, {
287263
.bus_id = "ras7_rx",
288264
.min_signal = 14,
289265
.max_signal = 14,
290266
.muxval = 1,
291-
.cctl = 0,
292267
.periph_buses = PL08X_AHB1,
293268
}, {
294269
.bus_id = "ras7_tx",
295270
.min_signal = 15,
296271
.max_signal = 15,
297272
.muxval = 1,
298-
.cctl = 0,
299273
.periph_buses = PL08X_AHB1,
300274
},
301275
};

0 commit comments

Comments
 (0)