* [PATCH RFC] spi: spi-davinci: Fix DMA API usage in davinci @ 2012-03-20 10:40 Shubhrajyoti D [not found] ` <1332240009-2011-1-git-send-email-shubhrajyoti-l0cyMroinI0@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Shubhrajyoti D @ 2012-03-20 10:40 UTC (permalink / raw) To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f; +Cc: Shubhrajyoti D The driver uses NULL for dma_unmap_single instead of the struct device that the API expects. Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org> --- I do not have the board ,untested. drivers/spi/spi-davinci.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-davinci.c b/drivers/spi/spi-davinci.c index 31bfba8..9b2901f 100644 --- a/drivers/spi/spi-davinci.c +++ b/drivers/spi/spi-davinci.c @@ -653,7 +653,7 @@ static int davinci_spi_bufs(struct spi_device *spi, struct spi_transfer *t) dev_dbg(sdev, "Couldn't DMA map a %d bytes RX buffer\n", rx_buf_count); if (t->tx_buf) - dma_unmap_single(NULL, t->tx_dma, t->len, + dma_unmap_single(&spi->dev, t->tx_dma, t->len, DMA_TO_DEVICE); return -ENOMEM; } @@ -692,10 +692,10 @@ static int davinci_spi_bufs(struct spi_device *spi, struct spi_transfer *t) if (spicfg->io_type == SPI_IO_TYPE_DMA) { if (t->tx_buf) - dma_unmap_single(NULL, t->tx_dma, t->len, + dma_unmap_single(&spi->dev, t->tx_dma, t->len, DMA_TO_DEVICE); - dma_unmap_single(NULL, t->rx_dma, rx_buf_count, + dma_unmap_single(&spi->dev, t->rx_dma, rx_buf_count, DMA_FROM_DEVICE); clear_io_bits(dspi->base + SPIINT, SPIINT_DMA_REQ_EN); -- 1.7.1 ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ^ permalink raw reply related [flat|nested] 5+ messages in thread
[parent not found: <1332240009-2011-1-git-send-email-shubhrajyoti-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH RFC] spi: spi-davinci: Fix DMA API usage in davinci [not found] ` <1332240009-2011-1-git-send-email-shubhrajyoti-l0cyMroinI0@public.gmane.org> @ 2012-03-20 16:23 ` Grant Likely 2012-03-22 14:38 ` Nori, Sekhar 0 siblings, 1 reply; 5+ messages in thread From: Grant Likely @ 2012-03-20 16:23 UTC (permalink / raw) To: Shubhrajyoti D, spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Cc: Michael Williamson, Sekhar Nori, Shubhrajyoti D On Tue, 20 Mar 2012 16:10:09 +0530, Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org> wrote: > The driver uses NULL for dma_unmap_single instead of > the struct device that the API expects. > > Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org> > --- > I do not have the board ,untested. Can someone with this hardware please test? g. > > drivers/spi/spi-davinci.c | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/spi/spi-davinci.c b/drivers/spi/spi-davinci.c > index 31bfba8..9b2901f 100644 > --- a/drivers/spi/spi-davinci.c > +++ b/drivers/spi/spi-davinci.c > @@ -653,7 +653,7 @@ static int davinci_spi_bufs(struct spi_device *spi, struct spi_transfer *t) > dev_dbg(sdev, "Couldn't DMA map a %d bytes RX buffer\n", > rx_buf_count); > if (t->tx_buf) > - dma_unmap_single(NULL, t->tx_dma, t->len, > + dma_unmap_single(&spi->dev, t->tx_dma, t->len, > DMA_TO_DEVICE); > return -ENOMEM; > } > @@ -692,10 +692,10 @@ static int davinci_spi_bufs(struct spi_device *spi, struct spi_transfer *t) > if (spicfg->io_type == SPI_IO_TYPE_DMA) { > > if (t->tx_buf) > - dma_unmap_single(NULL, t->tx_dma, t->len, > + dma_unmap_single(&spi->dev, t->tx_dma, t->len, > DMA_TO_DEVICE); > > - dma_unmap_single(NULL, t->rx_dma, rx_buf_count, > + dma_unmap_single(&spi->dev, t->rx_dma, rx_buf_count, > DMA_FROM_DEVICE); > > clear_io_bits(dspi->base + SPIINT, SPIINT_DMA_REQ_EN); > -- > 1.7.1 > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > spi-devel-general mailing list > spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/spi-devel-general -- Grant Likely, B.Sc, P.Eng. Secret Lab Technologies,Ltd. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH RFC] spi: spi-davinci: Fix DMA API usage in davinci 2012-03-20 16:23 ` Grant Likely @ 2012-03-22 14:38 ` Nori, Sekhar [not found] ` <DF0F476B391FA8409C78302C7BA518B631802D1C-Er742YJ7I/eIQmiDNMet8wC/G2K4zDHf@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Nori, Sekhar @ 2012-03-22 14:38 UTC (permalink / raw) To: Grant Likely, Datta, Shubhrajyoti, spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Cc: davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org, Michael Williamson, Datta, Shubhrajyoti, Shankarmurthy, Akshay Hi Grant, On Tue, Mar 20, 2012 at 21:53:34, Grant Likely wrote: > On Tue, 20 Mar 2012 16:10:09 +0530, Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org> wrote: > > The driver uses NULL for dma_unmap_single instead of > > the struct device that the API expects. > > > > Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org> > > --- > > I do not have the board ,untested. > > Can someone with this hardware please test? Akshay from TI tested this on DA850 EVM. He doesn't have this e-mail so posting the tested-by on his behalf: Tested-by: Shankarmurthy, Akshay < akshay.s-l0cyMroinI0@public.gmane.org> Thanks, Sekhar ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <DF0F476B391FA8409C78302C7BA518B631802D1C-Er742YJ7I/eIQmiDNMet8wC/G2K4zDHf@public.gmane.org>]
* Re: [PATCH RFC] spi: spi-davinci: Fix DMA API usage in davinci [not found] ` <DF0F476B391FA8409C78302C7BA518B631802D1C-Er742YJ7I/eIQmiDNMet8wC/G2K4zDHf@public.gmane.org> @ 2012-03-22 16:01 ` Shubhrajyoti Datta [not found] ` <CAM=Q2cvfDe8U+iReAG0N3Rv3k99BMzUoMAJWJ+8PzstZY0hZYA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Shubhrajyoti Datta @ 2012-03-22 16:01 UTC (permalink / raw) To: Nori, Sekhar Cc: davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org, Shankarmurthy, Akshay, Michael Williamson, spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Datta, Shubhrajyoti Hi Sekhar, On Thu, Mar 22, 2012 at 8:08 PM, Nori, Sekhar <nsekhar-l0cyMroinI0@public.gmane.org> wrote: > Hi Grant, > > On Tue, Mar 20, 2012 at 21:53:34, Grant Likely wrote: >> On Tue, 20 Mar 2012 16:10:09 +0530, Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org> wrote: >> > The driver uses NULL for dma_unmap_single instead of >> > the struct device that the API expects. >> > >> > Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org> >> > --- >> > I do not have the board ,untested. >> >> Can someone with this hardware please test? > > Akshay from TI tested this on DA850 EVM. He doesn't have > this e-mail so posting the tested-by on his behalf: > > Tested-by: Shankarmurthy, Akshay < akshay.s-l0cyMroinI0@public.gmane.org> Thanks Akshay, > > Thanks, > Sekhar > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > spi-devel-general mailing list > spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/spi-devel-general ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CAM=Q2cvfDe8U+iReAG0N3Rv3k99BMzUoMAJWJ+8PzstZY0hZYA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH RFC] spi: spi-davinci: Fix DMA API usage in davinci [not found] ` <CAM=Q2cvfDe8U+iReAG0N3Rv3k99BMzUoMAJWJ+8PzstZY0hZYA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2012-03-24 16:59 ` Grant Likely 0 siblings, 0 replies; 5+ messages in thread From: Grant Likely @ 2012-03-24 16:59 UTC (permalink / raw) To: Shubhrajyoti Datta, Nori, Sekhar Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org, Datta, Shubhrajyoti On Thu, 22 Mar 2012 21:31:03 +0530, Shubhrajyoti Datta <omaplinuxkernel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Hi Sekhar, > > On Thu, Mar 22, 2012 at 8:08 PM, Nori, Sekhar <nsekhar-l0cyMroinI0@public.gmane.org> wrote: > > Hi Grant, > > > > On Tue, Mar 20, 2012 at 21:53:34, Grant Likely wrote: > >> On Tue, 20 Mar 2012 16:10:09 +0530, Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org> wrote: > >> > The driver uses NULL for dma_unmap_single instead of > >> > the struct device that the API expects. > >> > > >> > Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org> > >> > --- > >> > I do not have the board ,untested. > >> > >> Can someone with this hardware please test? > > > > Akshay from TI tested this on DA850 EVM. He doesn't have > > this e-mail so posting the tested-by on his behalf: > > > > Tested-by: Shankarmurthy, Akshay < akshay.s-l0cyMroinI0@public.gmane.org> > > Thanks Akshay, Applied, thanks. g. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-03-24 16:59 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-03-20 10:40 [PATCH RFC] spi: spi-davinci: Fix DMA API usage in davinci Shubhrajyoti D [not found] ` <1332240009-2011-1-git-send-email-shubhrajyoti-l0cyMroinI0@public.gmane.org> 2012-03-20 16:23 ` Grant Likely 2012-03-22 14:38 ` Nori, Sekhar [not found] ` <DF0F476B391FA8409C78302C7BA518B631802D1C-Er742YJ7I/eIQmiDNMet8wC/G2K4zDHf@public.gmane.org> 2012-03-22 16:01 ` Shubhrajyoti Datta [not found] ` <CAM=Q2cvfDe8U+iReAG0N3Rv3k99BMzUoMAJWJ+8PzstZY0hZYA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2012-03-24 16:59 ` Grant Likely
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).