Message ID | 1478276094-19135-4-git-send-email-s.nawrocki@samsung.com (mailing list archive) |
---|---|
State | Rejected |
Headers | show |
On Fri, Nov 04, 2016 at 05:14:49PM +0100, Sylwester Nawrocki wrote: > This patch adds DMA slave map tables to the pl080 devices's > platform_data in order to support the new channel request API. > A few devices for which there was no DMA support with current > code are omitted from the tables. > > Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> > --- > arch/arm/mach-s3c64xx/pl080.c | 32 ++++++++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > > diff --git a/arch/arm/mach-s3c64xx/pl080.c b/arch/arm/mach-s3c64xx/pl080.c > index 89c5a62..8c88680 100644 > --- a/arch/arm/mach-s3c64xx/pl080.c > +++ b/arch/arm/mach-s3c64xx/pl080.c <snip> > @@ -134,6 +153,8 @@ struct pl08x_platform_data s3c64xx_dma0_plat_data = { > .put_xfer_signal = pl08x_put_xfer_signal, > .slave_channels = s3c64xx_dma0_info, > .num_slave_channels = ARRAY_SIZE(s3c64xx_dma0_info), > + .slave_map = s3c64xx_dma0_slave_map, > + .slavecnt = ARRAY_SIZE(s3c64xx_dma0_slave_map), > }; Here we add a .slavecnt but the pl08x_platform_data structure doesn't contain that field. I can't see it on the branch you linked in the cover letter either, is it added by a patch on another branch I am missing? > @@ -224,6 +254,8 @@ struct pl08x_platform_data s3c64xx_dma1_plat_data = { > .put_xfer_signal = pl08x_put_xfer_signal, > .slave_channels = s3c64xx_dma1_info, > .num_slave_channels = ARRAY_SIZE(s3c64xx_dma1_info), > + .slave_map = s3c64xx_dma1_slave_map, > + .slavecnt = ARRAY_SIZE(s3c64xx_dma1_slave_map), > }; ditto. Thanks, Charles -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, Nov 08, 2016 at 02:44:45PM +0000, Charles Keepax wrote: > On Fri, Nov 04, 2016 at 05:14:49PM +0100, Sylwester Nawrocki wrote: > > This patch adds DMA slave map tables to the pl080 devices's > > platform_data in order to support the new channel request API. > > A few devices for which there was no DMA support with current > > code are omitted from the tables. > > > > Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> > > --- > > arch/arm/mach-s3c64xx/pl080.c | 32 ++++++++++++++++++++++++++++++++ > > 1 file changed, 32 insertions(+) > > > > diff --git a/arch/arm/mach-s3c64xx/pl080.c b/arch/arm/mach-s3c64xx/pl080.c > > index 89c5a62..8c88680 100644 > > --- a/arch/arm/mach-s3c64xx/pl080.c > > +++ b/arch/arm/mach-s3c64xx/pl080.c > <snip> > > @@ -134,6 +153,8 @@ struct pl08x_platform_data s3c64xx_dma0_plat_data = { > > .put_xfer_signal = pl08x_put_xfer_signal, > > .slave_channels = s3c64xx_dma0_info, > > .num_slave_channels = ARRAY_SIZE(s3c64xx_dma0_info), > > + .slave_map = s3c64xx_dma0_slave_map, > > + .slavecnt = ARRAY_SIZE(s3c64xx_dma0_slave_map), > > }; > > Here we add a .slavecnt but the pl08x_platform_data structure doesn't > contain that field. I can't see it on the branch you linked in > the cover letter either, is it added by a patch on another branch > I am missing? > Ah I think I see it should be .slave_map_len here. Thanks, Charles -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/mach-s3c64xx/pl080.c b/arch/arm/mach-s3c64xx/pl080.c index 89c5a62..8c88680 100644 --- a/arch/arm/mach-s3c64xx/pl080.c +++ b/arch/arm/mach-s3c64xx/pl080.c @@ -117,6 +117,25 @@ static void pl08x_put_xfer_signal(const struct pl08x_channel_data *cd, int ch) } }; +static const struct dma_slave_map s3c64xx_dma0_slave_map[] = { + { "s3c6400-uart.0", "tx", (void *)"uart0_tx" }, + { "s3c6400-uart.0", "rx", (void *)"uart0_rx" }, + { "s3c6400-uart.1", "tx", (void *)"uart1_tx" }, + { "s3c6400-uart.1", "rx", (void *)"uart1_rx" }, + { "s3c6400-uart.2", "tx", (void *)"uart2_tx" }, + { "s3c6400-uart.2", "rx", (void *)"uart2_rx" }, + { "s3c6400-uart.3", "tx", (void *)"uart3_tx" }, + { "s3c6400-uart.3", "rx", (void *)"uart3_rx" }, + { "samsung-pcm.0", "tx", (void *)"pcm0_tx" }, + { "samsung-pcm.0", "rx", (void *)"pcm0_rx" }, + { "samsung-i2s.0", "tx", (void *)"i2s0_tx" }, + { "samsung-i2s.0", "rx", (void *)"i2s0_rx" }, + { "s3c6410-spi.0", "tx", (void *)"spi0_tx" }, + { "s3c6410-spi.0", "rx", (void *)"spi0_rx" }, + { "samsung-i2s.2", "tx", (void *)"i2s2_tx" }, + { "samsung-i2s.2", "rx", (void *)"i2s2_rx" }, +}; + struct pl08x_platform_data s3c64xx_dma0_plat_data = { .memcpy_channel = { .bus_id = "memcpy", @@ -134,6 +153,8 @@ struct pl08x_platform_data s3c64xx_dma0_plat_data = { .put_xfer_signal = pl08x_put_xfer_signal, .slave_channels = s3c64xx_dma0_info, .num_slave_channels = ARRAY_SIZE(s3c64xx_dma0_info), + .slave_map = s3c64xx_dma0_slave_map, + .slavecnt = ARRAY_SIZE(s3c64xx_dma0_slave_map), }; static AMBA_AHB_DEVICE(s3c64xx_dma0, "dma-pl080s.0", 0, @@ -207,6 +228,15 @@ static AMBA_AHB_DEVICE(s3c64xx_dma0, "dma-pl080s.0", 0, }, }; +static const struct dma_slave_map s3c64xx_dma1_slave_map[] = { + { "samsung-pcm.1", "tx", (void *)"pcm1_tx" }, + { "samsung-pcm.1", "rx", (void *)"pcm1_rx" }, + { "samsung-i2s.1", "tx", (void *)"i2s1_tx" }, + { "samsung-i2s.1", "rx", (void *)"i2s1_rx" }, + { "s3c6410-spi.1", "tx", (void *)"spi1_tx" }, + { "s3c6410-spi.1", "rx", (void *)"spi1_rx" }, +}; + struct pl08x_platform_data s3c64xx_dma1_plat_data = { .memcpy_channel = { .bus_id = "memcpy", @@ -224,6 +254,8 @@ struct pl08x_platform_data s3c64xx_dma1_plat_data = { .put_xfer_signal = pl08x_put_xfer_signal, .slave_channels = s3c64xx_dma1_info, .num_slave_channels = ARRAY_SIZE(s3c64xx_dma1_info), + .slave_map = s3c64xx_dma1_slave_map, + .slavecnt = ARRAY_SIZE(s3c64xx_dma1_slave_map), }; static AMBA_AHB_DEVICE(s3c64xx_dma1, "dma-pl080s.1", 0,
This patch adds DMA slave map tables to the pl080 devices's platform_data in order to support the new channel request API. A few devices for which there was no DMA support with current code are omitted from the tables. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> --- arch/arm/mach-s3c64xx/pl080.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)