History

dmaengine: pl08x: allocate OF slave channel data at probe time

The current OF translation of channels can never work with any DMA client using the DMA channels directly: the only way to get the channels initialized properly is in the dma_async_device_register() call, where chan->dev etc is allocated and initialized. Allocate and initialize all possible DMA channels and only augment a target channel with the periph_buses at of_xlate(). Remove some const settings to make things work.

Linus Walleij committed 10 years ago

Commit f9cd4761 parent f55532a2 files · +59 −29Browse files

Showing the changes to include/linux/amba (1 of 2 files). Show all

Unified · Split

include/linux/amba/pl08x.h+1−1
@@ -86,7 +86,7 @@ struct pl08x_channel_data { · 85 unmodified lines
8686 * @mem_buses: buses which memory can be accessed from: PL08X_AHB1 | PL08X_AHB2
8787 */
8888 struct pl08x_platform_data {
89− const struct pl08x_channel_data *slave_channels;
89+ struct pl08x_channel_data *slave_channels;
9090 unsigned int num_slave_channels;
9191 struct pl08x_channel_data memcpy_channel;
9292 int (*get_xfer_signal)(const struct pl08x_channel_data *);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t