From: Alexander Popov <alex.popov@linux.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Paul Mackerras <paulus@samba.org>,
Michael Ellerman <mpe@ellerman.id.au>,
Anatolij Gustschin <agust@denx.de>, Rob Herring <robh@kernel.org>,
Timur Tabi <timur@tabi.org>,
Grant Likely <grant.likely@linaro.org>,
Dan Williams <dan.j.williams@intel.com>,
Vinod Koul <vinod.koul@intel.com>,
Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>,
Alexander Popov <alex.popov@linux.com>,
linuxppc-dev@lists.ozlabs.org, dmaengine@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v4 0/2] powerpc/512x: add LocalPlus Bus FIFO device driver
Date: Mon, 12 Oct 2015 00:08:00 +0300 [thread overview]
Message-ID: <1444597682-22181-1-git-send-email-alex.popov@linux.com> (raw)
This driver for Freescale MPC512x LocalPlus Bus FIFO (called SCLPC
in the Reference Manual) allows Direct Memory Access transfers
between RAM and peripheral devices on LocalPlus Bus.
Changes in v3:
- resource usage in probe() is fixed;
- driver methods are made safe against remove();
- dma_request_slave_channel() is used to get DMA channel number from
the device tree;
- chip select number concerned with the DMA transaction is determined
from 'localbus' device tree node information;
- register set is described as a structure;
- symbolic names are given to shift counts to keep magic numbers
out of the code;
- choosing values for LPBFIFO BPT (bytes per transfer) and DMA maxburst
is improved, so DMA transfer size has increased for some cases;
- device tree binding for LPBFIFO is documented;
- Kconfig and Makefile are improved;
- email address "a13xp0p0v88@gmail.com" is changed to a more pleasant
alias "alex.popov@linux.com".
Changes in v4:
- the race condition is fixed;
- plenty of style fixes are made;
- devm_* functions and EPROBE_DEFER are used in probe().
Alexander Popov (2):
powerpc/512x: add LocalPlus Bus FIFO device driver
powerpc/512x: add a device tree binding for LocalPlus Bus FIFO
.../bindings/powerpc/fsl/mpc512x_lpbfifo.txt | 21 +
arch/powerpc/boot/dts/mpc5121.dtsi | 11 +-
arch/powerpc/boot/dts/mpc5125twr.dts | 11 +-
arch/powerpc/configs/mpc512x_defconfig | 1 +
arch/powerpc/include/asm/mpc5121.h | 59 +++
arch/powerpc/platforms/512x/Kconfig | 6 +
arch/powerpc/platforms/512x/Makefile | 1 +
arch/powerpc/platforms/512x/mpc512x_lpbfifo.c | 539 +++++++++++++++++++++
8 files changed, 646 insertions(+), 3 deletions(-)
create mode 100644 Documentation/devicetree/bindings/powerpc/fsl/mpc512x_lpbfifo.txt
create mode 100644 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c
--
1.9.1
next reply other threads:[~2015-10-11 21:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-11 21:08 Alexander Popov [this message]
2015-10-11 21:08 ` [PATCH v4 1/2] powerpc/512x: add LocalPlus Bus FIFO device driver Alexander Popov
2015-10-22 13:46 ` Anatolij Gustschin
2015-10-11 21:08 ` [PATCH v4 2/2] powerpc/512x: add a device tree binding for LocalPlus Bus FIFO Alexander Popov
2015-10-22 13:46 ` Anatolij Gustschin
2015-10-21 22:15 ` [PATCH v4 0/2] powerpc/512x: add LocalPlus Bus FIFO device driver Alexander Popov
2015-10-27 2:22 ` Vinod Koul
2015-10-27 20:42 ` Alexander Popov
2015-10-28 6:20 ` Vinod Koul
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=1444597682-22181-1-git-send-email-alex.popov@linux.com \
--to=alex.popov@linux.com \
--cc=agust@denx.de \
--cc=benh@kernel.crashing.org \
--cc=dan.j.williams@intel.com \
--cc=devicetree@vger.kernel.org \
--cc=dmaengine@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=grant.likely@linaro.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mark.rutland@arm.com \
--cc=mpe@ellerman.id.au \
--cc=paulus@samba.org \
--cc=pawel.moll@arm.com \
--cc=robh@kernel.org \
--cc=timur@tabi.org \
--cc=vinod.koul@intel.com \
/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).