public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Stuart Yoder <stuart.yoder@nxp.com>
To: <gregkh@linuxfoundation.org>
Cc: <devel@driverdev.osuosl.org>, <linux-kernel@vger.kernel.org>,
	<agraf@suse.de>, <arnd@arndb.de>, <leoyang.li@nxp.com>,
	<ioana.ciornei@nxp.com>, <catalin.horghidan@nxp.com>,
	<laurentiu.tudor@nxp.com>, <ruxandra.radulescu@nxp.com>,
	<roy.pledge@nxp.com>, Stuart Yoder <stuart.yoder@nxp.com>
Subject: [PATCH v4 0/8] staging: fsl-mc: add dpio driver
Date: Thu, 15 Dec 2016 17:56:18 -0600	[thread overview]
Message-ID: <1481846186-7783-1-git-send-email-stuart.yoder@nxp.com> (raw)

This patch series adds the driver for the DPIO object which is a 
step to addressing the final item in the staging TODO list-- adding
a functional driver on top of the bus driver.  The DPIO driver is a
dependency for other functional drivers such as Ethernet.

An overview of the DPIO object and driver components are in patch 1.
Patches 2-6 are internal components of the DPIO driver-- bit twiddling
of hardware registers, DPAA2 data structures, and the queuing APIs exposed
to other drivers.

Patch 7 adds the fsl-mc driver for the DPIO object.  It provides
the probe/remove functions, demonstrating a working example of
how fsl-mc drivers initialize, interact with the management
complex hardware, map their mappable MMIO regions, initialize
interrupts, register an ISR, etc.  All other DPAA2 drivers will
follow a similar initialization pattern.

version 4 changes
   -removed the patch moving the bus driver out of staging, updated
    all paths referenced in dpio (e.g. includes) to be drivers/staging
   -defined macros for constants where needed
   -copyright updates
   -cleanup: fixed whitespace, alignment issues, typos, removed unneeded
    comments
   -fixed bug in SDQCR #define
   -adding missing free in an error path

version 3 changes
   -zero memory allocated for a dpio store
   -replace hardcoded dequeue token with a #define and look for
    that token when checking for a new result

version 2 changes (mostly feedback from Ioana Radulescu)
   -removed unused structs and defines in dpio command definitions
   -added setter/getter for the FD ctrl field
   -corrected comment for SG format_offset field description
   -added support for short length field in FD
   -fix bug in buffer release command, by setting bpid field
   -handle error (NULL) return value from qbman_swp_mc_complete()
   -fix bug in sending management commands where the verb was
    properly initialized
   -use service_select_by_cpu() for re-arming DPIO interrupts
   -replace use of NR_CPUS with num_possible_cpus()
   -handle error case where number of DPIOs exceeds number of possible
    CPUs
   -error message cleanup
   -updated MAINTAINERS file with proper location for both fsl-mc bus
    driver and dpio driver


Ioana Radulescu (1):
  bus: fsl-mc: dpio: add APIs for DPIO objects

Roy Pledge (6):
  bus: fsl-mc: dpio: add frame descriptor and scatter/gather APIs
  bus: fsl-mc: dpio: add global dpaa2 definitions
  bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2
  bus: fsl-mc: dpio: add the DPAA2 DPIO service interface
  bus: fsl-mc: dpio: add the DPAA2 DPIO object driver
  bus: fsl-mc: dpio: add maintainer for DPIO

Stuart Yoder (1):
  bus: fsl-mc: dpio: add DPIO driver overview document

 MAINTAINERS                                     |    6 +
 drivers/staging/fsl-mc/bus/Kconfig              |   10 +
 drivers/staging/fsl-mc/bus/Makefile             |    3 +
 drivers/staging/fsl-mc/bus/dpio/Makefile        |    9 +
 drivers/staging/fsl-mc/bus/dpio/dpio-cmd.h      |   76 ++
 drivers/staging/fsl-mc/bus/dpio/dpio-driver.c   |  296 +++++++
 drivers/staging/fsl-mc/bus/dpio/dpio-driver.txt |  135 +++
 drivers/staging/fsl-mc/bus/dpio/dpio-service.c  |  616 ++++++++++++++
 drivers/staging/fsl-mc/bus/dpio/dpio.c          |  224 +++++
 drivers/staging/fsl-mc/bus/dpio/dpio.h          |  109 +++
 drivers/staging/fsl-mc/bus/dpio/qbman-portal.c  | 1033 +++++++++++++++++++++++
 drivers/staging/fsl-mc/bus/dpio/qbman-portal.h  |  469 ++++++++++
 drivers/staging/fsl-mc/include/dpaa2-fd.h       |  448 ++++++++++
 drivers/staging/fsl-mc/include/dpaa2-global.h   |  202 +++++
 drivers/staging/fsl-mc/include/dpaa2-io.h       |  139 +++
 15 files changed, 3775 insertions(+)
 create mode 100644 drivers/staging/fsl-mc/bus/dpio/Makefile
 create mode 100644 drivers/staging/fsl-mc/bus/dpio/dpio-cmd.h
 create mode 100644 drivers/staging/fsl-mc/bus/dpio/dpio-driver.c
 create mode 100644 drivers/staging/fsl-mc/bus/dpio/dpio-driver.txt
 create mode 100644 drivers/staging/fsl-mc/bus/dpio/dpio-service.c
 create mode 100644 drivers/staging/fsl-mc/bus/dpio/dpio.c
 create mode 100644 drivers/staging/fsl-mc/bus/dpio/dpio.h
 create mode 100644 drivers/staging/fsl-mc/bus/dpio/qbman-portal.c
 create mode 100644 drivers/staging/fsl-mc/bus/dpio/qbman-portal.h
 create mode 100644 drivers/staging/fsl-mc/include/dpaa2-fd.h
 create mode 100644 drivers/staging/fsl-mc/include/dpaa2-global.h
 create mode 100644 drivers/staging/fsl-mc/include/dpaa2-io.h

-- 
1.9.0

             reply	other threads:[~2016-12-16  0:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-15 23:56 Stuart Yoder [this message]
2016-12-15 23:56 ` [PATCH v4 1/8] bus: fsl-mc: dpio: add DPIO driver overview document Stuart Yoder
2016-12-15 23:56 ` [PATCH v4 2/8] bus: fsl-mc: dpio: add APIs for DPIO objects Stuart Yoder
2016-12-15 23:56 ` [PATCH v4 3/8] bus: fsl-mc: dpio: add frame descriptor and scatter/gather APIs Stuart Yoder
2016-12-15 23:56 ` [PATCH v4 4/8] bus: fsl-mc: dpio: add global dpaa2 definitions Stuart Yoder
2016-12-15 23:56 ` [PATCH v4 5/8] bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2 Stuart Yoder
2016-12-16  7:57   ` kbuild test robot
2016-12-16 16:29     ` Stuart Yoder
2016-12-15 23:56 ` [PATCH v4 6/8] bus: fsl-mc: dpio: add the DPAA2 DPIO service interface Stuart Yoder
2016-12-15 23:56 ` [PATCH v4 7/8] bus: fsl-mc: dpio: add the DPAA2 DPIO object driver Stuart Yoder
2016-12-15 23:56 ` [PATCH v4 8/8] bus: fsl-mc: dpio: add maintainer for DPIO Stuart Yoder

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=1481846186-7783-1-git-send-email-stuart.yoder@nxp.com \
    --to=stuart.yoder@nxp.com \
    --cc=agraf@suse.de \
    --cc=arnd@arndb.de \
    --cc=catalin.horghidan@nxp.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=ioana.ciornei@nxp.com \
    --cc=laurentiu.tudor@nxp.com \
    --cc=leoyang.li@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roy.pledge@nxp.com \
    --cc=ruxandra.radulescu@nxp.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