From: Michael Williamson <michael.williamson-wZX4cNJlHJ2sVWG7oymsAA@public.gmane.org>
To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org
Cc: khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org,
grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org
Subject: [PATCH 0/3] spi: davinci: move eventq parameter to platform data
Date: Thu, 3 Feb 2011 19:34:47 -0500 [thread overview]
Message-ID: <1296779690-9723-1-git-send-email-michael.williamson@criticallink.com> (raw)
For DMA operation, the davinci spi driver needs an eventq number.
Currently, this number is passed as a IORESOURCE_DMA. This is not
correct, as the eventq is not a DMA channel. Pass the eventq
via the platform data structure instead as is done with davinci
devices such as the McASP.
Two platforms (dm355 and dm365) are using the davinci spi driver
with DMA's enabled, move the eventq parameter out of the resources
and into the platform data.
I have tested this patch with an OMAP-L138 (patch submission for this
platform is in progress). I do not have a dm355 or dm365, so these
platforms have not been tested.
Michael Williamson (3):
davinci: spi: move event_q parameter to platform data
davinci: dm355: move spi0 eventq assignment from resources to
platform data
davinci: dm365: move spi0 eventq assignment from resources to
platform data
arch/arm/mach-davinci/dm355.c | 5 +----
arch/arm/mach-davinci/dm365.c | 5 +----
arch/arm/mach-davinci/include/mach/spi.h | 15 ++++++++++-----
drivers/spi/davinci_spi.c | 11 +++--------
4 files changed, 15 insertions(+), 21 deletions(-)
next reply other threads:[~2011-02-04 0:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-04 0:34 Michael Williamson [this message]
2011-02-04 0:34 ` [PATCH 1/3] davinci: spi: move event_q parameter to platform data Michael Williamson
[not found] ` <1296779690-9723-2-git-send-email-michael.williamson-wZX4cNJlHJ2sVWG7oymsAA@public.gmane.org>
2011-02-04 12:03 ` Sergei Shtylyov
[not found] ` <4D4BEB1F.6060200-Igf4POYTYCDQT0dZR+AlfA@public.gmane.org>
2011-02-04 12:27 ` Michael Williamson
2011-02-04 0:34 ` [PATCH 2/3] davinci: dm355: move spi0 eventq assignment from resources " Michael Williamson
2011-02-04 0:34 ` [PATCH 3/3] davinci: dm365: " Michael Williamson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1296779690-9723-1-git-send-email-michael.williamson@criticallink.com \
--to=michael.williamson-wzx4cnjlhj2svwg7oymsaa@public.gmane.org \
--cc=davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org \
--cc=grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org \
--cc=khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).