Re: [v6 0/8] staging: fsl-mc: add dpio driver

2017-03-13 Thread Stuart Yoder
> > 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 ob

Re: [PATCH v2 8/9] staging: fsl-dpaa2/eth: Add TODO file

2017-04-18 Thread Stuart Yoder
On Wed, Apr 12, 2017 at 11:25 AM, Ioana Radulescu wrote: > Add a list of TODO items for the Ethernet driver > > Signed-off-by: Ioana Radulescu > --- > v2: Add note > > drivers/staging/fsl-dpaa2/ethernet/TODO | 14 ++ > 1 file changed, 14 insertions(+) > create mode 100644 drivers/st

Re: [PATCH] bus: fsl-mc: dpio: fix alter FQ state command

2017-04-21 Thread Stuart Yoder
On Fri, Apr 21, 2017 at 7:00 AM, Horia Geantă wrote: > > When checking the response verb, the valid bit should be masked out, > since its value flips depending on what Response Register > (RR0 /RR1) it's been read from. > > Fixes: 321eecb06bfb ("bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2")

Re: [PATCH] staging: fsl-mc/dpio: add cpu <--> LE conversion for dpaa2_fd

2017-04-29 Thread Stuart Yoder
On Fri, Apr 28, 2017 at 9:38 AM, Horia Geantă wrote: > > While dpaa2_fd.simple structure fields are marked __leXX, > corresponding cpu_to_leXX / leXX_to_cpu conversions are missing. > > While here, fix dpaa2_fd_{get,set}_bpid such that BMT, IVP bits > sharing the 16-bit field with BPID are not aff

Re: [PATCH 3/3][v4] staging: fsl-mc: move bus driver out of staging

2017-05-19 Thread Stuart Yoder
On Fri, May 19, 2017 at 8:41 AM, Matthias Brugger wrote: > > > On 19/05/17 15:13, laurentiu.tu...@nxp.com wrote: >> >> From: Stuart Yoder >> >> Move the source files out of staging into their final locations: >>-include files in drivers/staging/fs

[PATCH 12/14] staging: fsl-mc: add dpmcp version check

2016-04-11 Thread Stuart Yoder
From: Itai Katz The dpmcp driver supports dpmcp version 3.0 and above. This patch adds the code to check the version. Signed-off-by: Itai Katz Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dpmcp-cmd.h|6 +++--- drivers/staging/fsl-mc/bus/mc-allocator.c | 11

[PATCH 13/14] staging: fsl-mc: return -EINVAL for all fsl_mc_portal_allocate() failures

2016-04-11 Thread Stuart Yoder
From: Horia Geantă There are some error paths that allow for a NULL new_mc_io and err = 0 return code. Return -EINVAL instead. Signed-off-by: Horia Geantă Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/mc-allocator.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers

[PATCH 06/14] staging: fsl-mc: don't use object versions to make binding decisions

2016-04-11 Thread Stuart Yoder
d-off-by: Itai Katz (Stuart: reworded commit log) Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dprc-driver.c |4 +-- drivers/staging/fsl-mc/bus/mc-allocator.c |6 - drivers/staging/fsl-mc/bus/mc-bus.c | 38 + 3 files changed, 2 inser

[PATCH 09/14] staging: fsl-mc: get version of root dprc from MC hardware

2016-04-11 Thread Stuart Yoder
the hardware. Signed-off-by: Itai Katz (Stuart: resolved merge conflict, updated commit subject/log) Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/mc-bus.c | 45 --- 1 file changed, 37 insertions(+), 8 deletions(-) diff --git a/drivers/staging/fsl

[PATCH 10/14] staging: fsl-mc: add dprc version check

2016-04-11 Thread Stuart Yoder
From: Itai Katz The dprc driver supports dprc version 5.0 and above. This patch adds the code to check the version. Signed-off-by: Itai Katz (Stuart: resolved merge conflicts, split dpseci quirk into separate patch) Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dprc-cmd.h

[PATCH 08/14] staging: fsl-mc: set cacheable flag for added devices if applicable

2016-04-11 Thread Stuart Yoder
From: Itai Katz Some DPAA2 devices have mmio regions that should be mapped as cacheable by drivers. Set IORESOURCE_CACHEABLE in the region's flags if applicable. Signed-off-by: Itai Katz [Stuart: update subject and commit message] Signed-off-by: Stuart Yoder --- drivers/staging/fsl-m

[PATCH 02/14] staging: fsl-mc: DPAA2 overview readme update

2016-04-11 Thread Stuart Yoder
From: Stuart Yoder incorporated feedback from review comments, other misc cleanup/tweaks Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/README.txt | 138 + 1 file changed, 80 insertions(+), 58 deletions(-) diff --git a/drivers/staging/fsl-mc

[PATCH 04/14] staging: fsl-mc: update dpbp binary interface to v2.2

2016-04-11 Thread Stuart Yoder
From: Stuart Yoder Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dpbp.c | 77 - drivers/staging/fsl-mc/include/dpbp-cmd.h |4 +- drivers/staging/fsl-mc/include/dpbp.h | 51 ++- 3 files changed, 127 insertions(+), 5

[PATCH 03/14] staging: fsl-mc: update dpmcp binary interface to v3.0

2016-04-11 Thread Stuart Yoder
From: Stuart Yoder Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dpmcp-cmd.h |5 ++--- drivers/staging/fsl-mc/bus/dpmcp.c | 35 ++-- drivers/staging/fsl-mc/bus/dpmcp.h | 10 ++--- 3 files changed, 6 insertions(+), 44 deletions

[PATCH 07/14] staging: fsl-mc: set up coherent dma ops for added devices

2016-04-11 Thread Stuart Yoder
From: Stuart Yoder Unless discovered devices have the no shareability flag set, set up coherent dma ops for them. Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/mc-bus.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/staging/fsl-mc/bus/mc-bus.c b/drivers

[PATCH 00/14] staging: fsl-mc: misc updates

2016-04-11 Thread Stuart Yoder
From: Stuart Yoder This patch series makes further progress towards completing the fsl-mc TODO list. -patch 1 removes three items from the TODO file that were previously completed-- multiple root dprc support, MSI support, and command serialization -patch 2 makes some way overdue updates to

[PATCH 05/14] staging: fsl-mc: update dprc binary interface to v5.1

2016-04-11 Thread Stuart Yoder
From: Stuart Yoder The meaning of the "status" parameter in dprc_get_irq_status has changed, and this patch updates the flib and caller of the API. Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dprc-cmd.h|4 ++-- drivers/staging/fsl-mc/bus/dprc-driver.c |1

[PATCH 01/14] staging: fsl-mc: TODO updates

2016-04-11 Thread Stuart Yoder
From: Stuart Yoder remove 3 of the remaining TODO items: -multiple root fsl-mc buses-- done in patch series starting with commit 14f928054a05 ("staging: fsl-mc: abstract test for existence of fsl-mc bus") -interrupt support-- done in patch series starting with

[PATCH 14/14] MAINTAINERS: fsl-mc: Add second maintainer

2016-04-11 Thread Stuart Yoder
From: Stuart Yoder Add Stuart Yoder as additional maintainer of fsl-mc bus driver. Signed-off-by: Stuart Yoder --- MAINTAINERS |1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 03e00c7..62db04e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4670,6 +4670,7

[PATCH 11/14] staging: fsl-mc: add quirk handling for dpseci objects < 4.0

2016-04-11 Thread Stuart Yoder
pdated comment in patch) Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dprc-driver.c |9 + 1 file changed, 9 insertions(+) diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers/staging/fsl-mc/bus/dprc-driver.c index 53c6e98..7fc4717 100644 --- a/drivers/staging/fsl-

[PATCH 13/14] staging: fsl-mc: return -EINVAL for all fsl_mc_portal_allocate() failures

2016-04-11 Thread Stuart Yoder
From: Horia Geantă There are some error paths that allow for a NULL new_mc_io and err = 0 return code. Return -EINVAL instead. Signed-off-by: Horia Geantă Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/mc-allocator.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers

RE: [PATCH 13/14] staging: fsl-mc: return -EINVAL for all fsl_mc_portal_allocate() failures

2016-04-11 Thread Stuart Yoder
> -Original Message- > From: Stuart Yoder > Date: Mon, Apr 11, 2016 at 11:56 AM > Subject: [PATCH 13/14] staging: fsl-mc: return -EINVAL for all > fsl_mc_portal_allocate() failures > To: gre...@linuxfoundation.org, german.riv...@nxp.com > Cc: de...@driverdev.

RE: [PATCH 4/6] staging: fsl-mc: Use platform_msi_* infrastructure

2016-04-13 Thread Stuart Yoder
scale.com; > jiang@linux.intel.com; t...@linutronix.de > Cc: tred...@nvidia.com; Stuart Yoder ; jroe...@suse.de; > ag...@suse.de; > b...@suse.de; matthias@gmail.com; bhaktipriy...@gmail.com; > linux-ker...@vger.kernel.org; > devicet...@vger.kernel.org; de...@driverdev.osuosl.org; &g

RE: [PATCH] staging: fsl-mc: bus: Drop warning

2016-04-14 Thread Stuart Yoder
> -Original Message- > From: Matthias Brugger [mailto:mbrug...@suse.com] > Sent: Thursday, April 14, 2016 4:24 PM > To: german.riv...@freescale.com; gre...@linuxfoundation.org > Cc: Stuart Yoder ; Scott Wood ; > ag...@suse.de; linux- > ker...@vger.kernel.org; de...

RE: [PATCH 11/14] staging: fsl-mc: add quirk handling for dpseci objects < 4.0

2016-04-20 Thread Stuart Yoder
> -Original Message- > From: Horia Ioan Geanta Neag > Sent: Wednesday, April 20, 2016 6:42 AM > To: Stuart Yoder ; Jose Rivera > Cc: gre...@linuxfoundation.org; de...@driverdev.osuosl.org; > linux-ker...@vger.kernel.org; > ag...@suse.de; a...@arndb.de; Yang-

[PATCH 14/14 RESEND] MAINTAINERS: fsl-mc: Add second maintainer

2016-05-02 Thread Stuart Yoder
Add Stuart Yoder as additional maintainer of fsl-mc bus driver. Signed-off-by: Stuart Yoder --- MAINTAINERS |1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 03e00c7..62db04e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4670,6 +4670,7 @@ F:sound

RE: [PATCH 00/14] staging: fsl-mc: misc updates

2016-05-02 Thread Stuart Yoder
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Friday, April 29, 2016 8:01 PM > To: Stuart Yoder > Cc: Jose Rivera ; de...@driverdev.osuosl.org; > ag...@suse.de; a...@arndb.de; > linux-ker...@vger.kernel.org; Yang-Leo Li > S

RE: [PATCH v3 7/8] staging: fsl-mc: update TODO and README for restool driver

2016-02-09 Thread Stuart Yoder
> -Original Message- > From: Lijun Pan [mailto:lijun@freescale.com] > Sent: Monday, February 08, 2016 5:40 PM > To: gre...@linuxfoundation.org; a...@arndb.de; de...@driverdev.osuosl.org; > linux- > ker...@vger.kernel.org > Cc: stuart.yo...@freescale.com; itai.k...@freescale.com; > g

[PATCH] staging: fsl-mc: update TODO list

2015-07-16 Thread Stuart Yoder
update TODO list to provide more detail on remaining work Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/TODO | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/drivers/staging/fsl-mc/TODO b/drivers/staging/fsl-mc/TODO index d78288b..c29516b

[PATCH] staging: fsl-mc: add DPAA2 overview readme

2015-08-06 Thread Stuart Yoder
Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/README.txt | 364 ++ drivers/staging/fsl-mc/TODO | 4 - 2 files changed, 364 insertions(+), 4 deletions(-) create mode 100644 drivers/staging/fsl-mc/README.txt diff --git a/drivers/staging/fsl-mc

[PATCH v2] staging: fsl-mc: add DPAA2 overview readme

2015-08-06 Thread Stuart Yoder
add README file providing an overview of the DPAA2 architecture and how it is integrated in Linux Signed-off-by: Stuart Yoder --- -v2: added changelog text drivers/staging/fsl-mc/README.txt | 364 ++ drivers/staging/fsl-mc/TODO | 4 - 2 files changed

[PATCH v3 0/9] staging: fsl-mc: move bus driver out of staging, add dpio

2016-12-01 Thread Stuart Yoder
driver bus: fsl-mc: dpio: add maintainer for DPIO Stuart Yoder (2): staging: fsl-mc: move bus driver out of staging bus: fsl-mc: dpio: add DPIO driver overview document Documentation/dpaa2/dpio-driver.txt| 135 +++ .../README.txt => Documentation/dpaa2/overview.txt |

[PATCH v3 5/9] bus: fsl-mc: dpio: add global dpaa2 definitions

2016-12-01 Thread Stuart Yoder
From: Roy Pledge Create header for global dpaa2 definitions. Add definitions for dequeue results. Signed-off-by: Roy Pledge Signed-off-by: Stuart Yoder --- include/linux/fsl/dpaa2-global.h | 203 +++ 1 file changed, 203 insertions(+) create mode 100644

[PATCH v3 4/9] bus: fsl-mc: dpio: add frame descriptor and scatter/gather APIs

2016-12-01 Thread Stuart Yoder
From: Roy Pledge Add global definitions for DPAA2 frame descriptors and scatter gather entries. Signed-off-by: Roy Pledge Signed-off-by: Stuart Yoder --- Notes: -v3 -no changes -v2 -added setter/getter for the FD ctrl field -corrected comment for SG format_offset

[PATCH v3 8/9] bus: fsl-mc: dpio: add the DPAA2 DPIO object driver

2016-12-01 Thread Stuart Yoder
Wang Signed-off-by: Stuart Yoder --- Notes: -v3 -no changes -v2 -handle error case where number of DPIOs > NR_CPUs drivers/bus/fsl-mc/dpio/Makefile | 2 +- drivers/bus/fsl-mc/dpio/dpio-driver.c | 295 ++ 2 files changed, 296 inserti

[PATCH v3 9/9] bus: fsl-mc: dpio: add maintainer for DPIO

2016-12-01 Thread Stuart Yoder
From: Roy Pledge add Roy Pledge as maintainer of DPIO Signed-off-by: Roy Pledge Signed-off-by: Stuart Yoder --- Notes: -v3 -no changes -v2 -corrected location of maintainer entry MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b

[PATCH v3 7/9] bus: fsl-mc: dpio: add the DPAA2 DPIO service interface

2016-12-01 Thread Stuart Yoder
. Signed-off-by: Roy Pledge Signed-off-by: Haiying Wang Signed-off-by: Stuart Yoder --- Notes: -v3 -zero memory allocated for a dpio store (bug fix suggested by Ioana Radulescu) -v2 -use service_select_by_cpu() for re-arming DPIO interrupts -replace use of NR_CPUS

[PATCH v3 6/9] bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2

2016-12-01 Thread Stuart Yoder
From: Roy Pledge Add QBman APIs for frame queue and buffer pool operations. Signed-off-by: Roy Pledge Signed-off-by: Haiying Wang Signed-off-by: Stuart Yoder --- Notes: -v3 -replace hardcoded dequeue token with a #define and check that token when checking for a new result

[PATCH v3 3/9] bus: fsl-mc: dpio: add APIs for DPIO objects

2016-12-01 Thread Stuart Yoder
From: Ioana Radulescu Add the command build/parse APIs for operating on DPIO objects through the DPAA2 Management Complex. Signed-off-by: Ioana Radulescu Signed-off-by: Roy Pledge Signed-off-by: Stuart Yoder --- Notes: -v3 -no changes -v2 -removed unused structs and

[PATCH v3 2/9] bus: fsl-mc: dpio: add DPIO driver overview document

2016-12-01 Thread Stuart Yoder
add document describing the dpio driver and it's role, components and major interfaces Signed-off-by: Stuart Yoder --- Documentation/dpaa2/dpio-driver.txt | 135 1 file changed, 135 insertions(+) create mode 100644 Documentation/dpaa2/dpio-driver.txt

[PATCH v3 1/9] staging: fsl-mc: move bus driver out of staging

2016-12-01 Thread Stuart Yoder
overview of DPAA goes to Documentation/dpaa2/overview.txt -update MAINTAINERS with new location Delete other remaining staging files-- Makefile, Kconfig, TODO Signed-off-by: Stuart Yoder --- Notes: -v3 -no changes -v2 -updated MAINTAINERS with new location .../README.txt

RE: [PATCH 7/8] staging: fsl-dpaa2/eth: Add TODO file

2016-12-06 Thread Stuart Yoder
nean ; Bogdan Hamciuc > ; Stuart Yoder > ; Roy Pledge ; Laurentiu Tudor > > Subject: Re: [PATCH 7/8] staging: fsl-dpaa2/eth: Add TODO file > > On Tue, Dec 06, 2016 at 10:06:25AM +, Ruxandra Ioana Radulescu wrote: > > > -Original Message- > > > Fro

RE: [PATCH 7/8] staging: fsl-dpaa2/eth: Add TODO file

2016-12-06 Thread Stuart Yoder
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Tuesday, December 06, 2016 11:56 AM > To: Stuart Yoder > Cc: Ruxandra Ioana Radulescu ; > de...@driverdev.osuosl.org; linux- > ker...@vger.kernel.org; ag...@suse.de; a...@arndb.de

RE: [PATCH v3 1/9] staging: fsl-mc: move bus driver out of staging

2016-12-07 Thread Stuart Yoder
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Wednesday, December 07, 2016 9:53 AM > To: Stuart Yoder > Cc: de...@driverdev.osuosl.org; linux-ker...@vger.kernel.org; ag...@suse.de; > a...@arndb.de; Leo Li > ; Ioana Ciorne

[PATCH] staging: fsl-mc: add sysfs ABI doc

2016-12-07 Thread Stuart Yoder
define the bind/unbind sysfs interfaces for the fsl-mc bus Signed-off-by: Stuart Yoder --- Documentation/ABI/testing/sysfs-bus-fsl-mc | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-fsl-mc diff --git a/Documentation/ABI

[PATCH] staging: fsl-mc: remove unnecessary info prints from bus driver

2016-12-07 Thread Stuart Yoder
remove pr_info/dev_info prints that add unnecessary verbosity Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c index f9fed63

RE: [PATCH v3 1/9] staging: fsl-mc: move bus driver out of staging

2016-12-08 Thread Stuart Yoder
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Thursday, December 08, 2016 10:05 AM > To: Stuart Yoder > Cc: de...@driverdev.osuosl.org; ag...@suse.de; a...@arndb.de; > linux-ker...@vger.kernel.org; Leo Li > ; Catalin Horghid

RE: [PATCH v3 1/9] staging: fsl-mc: move bus driver out of staging

2016-12-09 Thread Stuart Yoder
> > > Where is the device freed? I see you trying to do some "odd" stuff in > > > fsl_mc_device_remove() by deleting and then putting a device structure. > > > I can't find a "release()" callback anywhere for your bus, where is it? > > > > > > What happens when the reference count falls to 0 for y

RE: [PATCH v3 3/9] bus: fsl-mc: dpio: add APIs for DPIO objects

2016-12-15 Thread Stuart Yoder
> > +#define DPIO_CMD(id) ((id << DPIO_CMD_ID_OFFSET) | > > DPIO_CMD_BASE_VERSION) > > Paranthesis around 'id'? In all cases these are opcode values and will never be an expression. If we really need to future proof these definitions, we should do it for all objects not just DPIO. I'd li

RE: [PATCH v3 4/9] bus: fsl-mc: dpio: add frame descriptor and scatter/gather APIs

2016-12-15 Thread Stuart Yoder
> -Original Message- > From: Laurentiu Tudor > Sent: Friday, December 02, 2016 6:12 AM > To: Stuart Yoder ; gre...@linuxfoundation.org > Cc: de...@driverdev.osuosl.org; linux-ker...@vger.kernel.org; ag...@suse.de; > a...@arndb.de; Leo Li > ; Ioana Ciorne

RE: [PATCH v3 5/9] bus: fsl-mc: dpio: add global dpaa2 definitions

2016-12-15 Thread Stuart Yoder
> -Original Message- > From: Laurentiu Tudor > Sent: Friday, December 02, 2016 6:19 AM > To: Stuart Yoder ; gre...@linuxfoundation.org > Cc: de...@driverdev.osuosl.org; linux-ker...@vger.kernel.org; ag...@suse.de; > a...@arndb.de; Leo Li > ; Ioana Ciorne

RE: [PATCH v3 6/9] bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2

2016-12-15 Thread Stuart Yoder
> -Original Message- > From: Laurentiu Tudor > Sent: Friday, December 02, 2016 6:40 AM > To: Stuart Yoder ; gre...@linuxfoundation.org > Cc: de...@driverdev.osuosl.org; linux-ker...@vger.kernel.org; ag...@suse.de; > a...@arndb.de; Leo Li > ; Ioana Ciorne

RE: [PATCH v3 7/9] bus: fsl-mc: dpio: add the DPAA2 DPIO service interface

2016-12-15 Thread Stuart Yoder
> > +struct dpaa2_io *dpaa2_io_create(const struct dpaa2_io_desc *desc) > > +{ > > + struct dpaa2_io *obj = kmalloc(sizeof(*obj), GFP_KERNEL); > > + > > + if (!obj) > > + return NULL; > > + > > + /* check if CPU is out of range (-1 means any cpu) */ > > + if (desc->cpu >= num_poss

[PATCH v4 1/8] bus: fsl-mc: dpio: add DPIO driver overview document

2016-12-15 Thread Stuart Yoder
add document describing the dpio driver and it's role, components and major interfaces Signed-off-by: Stuart Yoder --- Notes: -v4 -updated copyright drivers/staging/fsl-mc/bus/dpio/dpio-driver.txt | 135 1 file changed, 135 insertions(+) create mode 1

[PATCH v4 7/8] bus: fsl-mc: dpio: add the DPAA2 DPIO object driver

2016-12-15 Thread Stuart Yoder
Wang Signed-off-by: Stuart Yoder --- Notes: -v4 -updated copyright -adjust file location to be in drivers/staging -whitespace alignment cleanup -v3 -no changes -v2 -handle error case where number of DPIOs > NR_CPUs drivers/staging/fsl-mc/bus/d

[PATCH v4 0/8] staging: fsl-mc: add dpio driver

2016-12-15 Thread Stuart Yoder
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

[PATCH v4 8/8] bus: fsl-mc: dpio: add maintainer for DPIO

2016-12-15 Thread Stuart Yoder
From: Roy Pledge add Roy Pledge as maintainer of DPIO Signed-off-by: Roy Pledge Signed-off-by: Stuart Yoder --- Notes: -v4 -adjust file location to be in drivers/staging -v3 -no changes -v2 -corrected location of maintainer entry MAINTAINERS | 6 ++ 1

[PATCH v4 2/8] bus: fsl-mc: dpio: add APIs for DPIO objects

2016-12-15 Thread Stuart Yoder
From: Ioana Radulescu Add the command build/parse APIs for operating on DPIO objects through the DPAA2 Management Complex. Signed-off-by: Ioana Radulescu Signed-off-by: Roy Pledge Signed-off-by: Stuart Yoder --- Notes: -v4 -adjust file location to be in drivers/staging

[PATCH v4 3/8] bus: fsl-mc: dpio: add frame descriptor and scatter/gather APIs

2016-12-15 Thread Stuart Yoder
From: Roy Pledge Add global definitions for DPAA2 frame descriptors and scatter gather entries. Signed-off-by: Roy Pledge Signed-off-by: Stuart Yoder --- Notes: -v4 -updated copyright -adjust file location to be in drivers/staging -address cleanup comments

[PATCH v4 6/8] bus: fsl-mc: dpio: add the DPAA2 DPIO service interface

2016-12-15 Thread Stuart Yoder
. Signed-off-by: Roy Pledge Signed-off-by: Haiying Wang Signed-off-by: Stuart Yoder --- Notes: -v4 -updated copyright -adjust file location to be in drivers/staging -updated copyright -added missing free on error path -fixed typo in comment -whitespace and

[PATCH v4 5/8] bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2

2016-12-15 Thread Stuart Yoder
From: Roy Pledge Add QBman APIs for frame queue and buffer pool operations. Signed-off-by: Roy Pledge Signed-off-by: Haiying Wang Signed-off-by: Stuart Yoder --- Notes: -v4 -adjust file location to be in drivers/staging -updated copyright -added definition for

[PATCH v4 4/8] bus: fsl-mc: dpio: add global dpaa2 definitions

2016-12-15 Thread Stuart Yoder
From: Roy Pledge Create header for global dpaa2 definitions. Add definitions for dequeue results. Signed-off-by: Roy Pledge Signed-off-by: Stuart Yoder --- Notes: -v4 -adjust file location to be in drivers/staging -whitespace/alignment cleanup, make

RE: [PATCH v4 5/8] bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2

2016-12-16 Thread Stuart Yoder
> -Original Message- > From: kbuild test robot [mailto:l...@intel.com] > Sent: Friday, December 16, 2016 1:57 AM > To: Stuart Yoder > Cc: kbuild-...@01.org; gre...@linuxfoundation.org; > de...@driverdev.osuosl.org; ag...@suse.de; > a...@arndb.de; Haiying Wang ;

[PATCH v5 1/8] bus: fsl-mc: dpio: add DPIO driver overview document

2016-12-16 Thread Stuart Yoder
add document describing the dpio driver and it's role, components and major interfaces Signed-off-by: Stuart Yoder --- Notes: -v4 -updated copyright drivers/staging/fsl-mc/bus/dpio/dpio-driver.txt | 135 1 file changed, 135 insertions(+) create mode 1

[PATCH v5 4/8] bus: fsl-mc: dpio: add global dpaa2 definitions

2016-12-16 Thread Stuart Yoder
From: Roy Pledge Create header for global dpaa2 definitions. Add definitions for dequeue results. Signed-off-by: Roy Pledge Signed-off-by: Stuart Yoder --- Notes: -v4 -adjust file location to be in drivers/staging -whitespace/alignment cleanup, make

[PATCH v5 3/8] bus: fsl-mc: dpio: add frame descriptor and scatter/gather APIs

2016-12-16 Thread Stuart Yoder
From: Roy Pledge Add global definitions for DPAA2 frame descriptors and scatter gather entries. Signed-off-by: Roy Pledge Signed-off-by: Stuart Yoder --- Notes: -v4 -updated copyright -adjust file location to be in drivers/staging -address cleanup comments

[PATCH v5 5/8] bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2

2016-12-16 Thread Stuart Yoder
From: Roy Pledge Add QBman APIs for frame queue and buffer pool operations. Signed-off-by: Roy Pledge Signed-off-by: Haiying Wang Signed-off-by: Stuart Yoder --- Notes: -v5 -fixed typo that caused a compile error -v4 -adjust file location to be in drivers/staging

[PATCH v5 7/8] bus: fsl-mc: dpio: add the DPAA2 DPIO object driver

2016-12-16 Thread Stuart Yoder
Wang Signed-off-by: Stuart Yoder --- Notes: -v4 -updated copyright -adjust file location to be in drivers/staging -whitespace alignment cleanup -v3 -no changes -v2 -handle error case where number of DPIOs > NR_CPUs drivers/staging/fsl-mc/bus/d

[PATCH v5 6/8] bus: fsl-mc: dpio: add the DPAA2 DPIO service interface

2016-12-16 Thread Stuart Yoder
. Signed-off-by: Roy Pledge Signed-off-by: Haiying Wang Signed-off-by: Stuart Yoder --- Notes: -v4 -updated copyright -adjust file location to be in drivers/staging -updated copyright -added missing free on error path -fixed typo in comment -whitespace and

[PATCH v5 8/8] bus: fsl-mc: dpio: add maintainer for DPIO

2016-12-16 Thread Stuart Yoder
From: Roy Pledge add Roy Pledge as maintainer of DPIO Signed-off-by: Roy Pledge Signed-off-by: Stuart Yoder --- Notes: -v4 -adjust file location to be in drivers/staging -v3 -no changes -v2 -corrected location of maintainer entry MAINTAINERS | 6 ++ 1

[PATCH v5 2/8] bus: fsl-mc: dpio: add APIs for DPIO objects

2016-12-16 Thread Stuart Yoder
From: Ioana Radulescu Add the command build/parse APIs for operating on DPIO objects through the DPAA2 Management Complex. Signed-off-by: Ioana Radulescu Signed-off-by: Roy Pledge Signed-off-by: Stuart Yoder --- Notes: -v4 -adjust file location to be in drivers/staging

[PATCH v5 0/8] staging: fsl-mc: add dpio driver

2016-12-16 Thread Stuart Yoder
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

RE: [PATCH 7/8] staging: fsl-dpaa2/eth: Add TODO file

2017-01-03 Thread Stuart Yoder
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Tuesday, January 03, 2017 10:48 AM > To: Stuart Yoder > Cc: de...@driverdev.osuosl.org; a...@arndb.de; Roy Pledge > ; Alexandru Marginean > ; linux-ker...@vger.kernel.org; ag...@suse.

RE: [PATCH 3/9] staging: fsl-mc: add device release callback

2017-02-02 Thread Stuart Yoder
rdev.osuosl.org; a...@arndb.de; Ruxandra Ioana Radulescu > ; > Roy Pledge ; linux-ker...@vger.kernel.org; ag...@suse.de; > Catalin Horghidan > ; Leo Li ; Stuart Yoder > ; > Laurentiu Tudor > Subject: [upstream-release] [PATCH 3/9] staging: fsl-mc: add device release > callback

RE: [PATCH 4/9] staging: fsl-mc: don't use devres api for refcounted objects

2017-02-02 Thread Stuart Yoder
t; Ciornei ; Ruxandra Ioana Radulescu > ; Bharat Bhushan > ; Stuart Yoder ; Catalin > Horghidan > ; Leo Li ; Roy Pledge > ; Laurentiu > Tudor > Subject: [PATCH 4/9] staging: fsl-mc: don't use devres api for refcounted > objects > > From: Laurentiu Tudor

RE: [PATCH 9/9] staging: fsl-mc: dprc: drop unused APIs

2017-02-02 Thread Stuart Yoder
> --- a/drivers/staging/fsl-mc/include/dprc.h > +++ b/drivers/staging/fsl-mc/include/dprc.h > @@ -42,20 +42,6 @@ > > struct fsl_mc_io; > > -/** > - * Set this value as the icid value in dprc_cfg structure when creating a > - * container, in case the ICID is not selected by the user and should be

RE: [PATCH 00/10][v2] staging: fsl-mc: fixes and cleanups

2017-02-07 Thread Stuart Yoder
t; Ciornei ; Ruxandra Ioana Radulescu > ; Bharat Bhushan > ; Stuart Yoder ; Catalin > Horghidan > ; Leo Li ; Roy Pledge > ; linux-arm- > ker...@lists.infradead.org; Laurentiu Tudor > Subject: [PATCH 00/10][v2] staging: fsl-mc: fixes and cleanups > > From: Laurentiu Tudo

RE: [PATCH v3 00/10] staging: fsl-mc: fixes and cleanups

2017-02-08 Thread Stuart Yoder
t; Ciornei ; Ruxandra Ioana Radulescu > ; Bharat Bhushan > ; Stuart Yoder ; Catalin > Horghidan > ; Leo Li ; Roy Pledge > ; linux-arm- > ker...@lists.infradead.org; Laurentiu Tudor > Subject: [PATCH v3 00/10] staging: fsl-mc: fixes and cleanups > > From: Laurentiu Tudo

[PATCH] staging: fsl-mc: update MAINTAINERS

2017-02-09 Thread Stuart Yoder
Add Laurentiu Tudor as a second maintainer and update Stuart Yoder's email address. Signed-off-by: Stuart Yoder --- MAINTAINERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index c2395ea..6050912 100644 --- a/MAINTAINERS +++ b/MAINTA

RE: [PATCH] fsl mc-bus: Move mc-io destroy to bus remove

2016-06-20 Thread Stuart Yoder
> -Original Message- > From: Bharat Bhushan [mailto:bharat.bhus...@nxp.com] > Sent: Thursday, June 16, 2016 1:52 AM > To: gre...@linuxfoundation.org; Stuart Yoder > Cc: de...@driverdev.osuosl.org; linux-ker...@vger.kernel.org; Bharat Bhushan > > Subject: [PATCH] f

[PATCH 01/11] staging: fsl-mc: add support for the modalias sysfs attribute

2016-06-22 Thread Stuart Yoder
In order to support uevent based module loading implement modalias support for the fsl-mc bus driver. Aliases are based on vendor and object/device id and are of the form "fsl-mc:vNdN". Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/mc-bus.c | 25 +++

[PATCH 03/11] staging: fsl-mc: clean up the device id struct

2016-06-22 Thread Stuart Yoder
-rename the struct used for fsl-mc device ids to be more consistent with other busses -remove the now obsolete and unused version fields Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dprc-driver.c | 2 +- drivers/staging/fsl-mc/bus/mc-allocator.c | 2 +- drivers/staging/fsl-mc

[PATCH 02/11] staging: fsl-mc: implement uevent callback and set the modalias

2016-06-22 Thread Stuart Yoder
Replace placeholder code in the uevent callback to properly set the MODALIAS env variable. Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/mc-bus.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/staging/fsl-mc/bus/mc-bus.c b/drivers/staging/fsl-mc

[PATCH 06/11] staging: fsl-mc: make fsl_mc_is_root_dprc() global

2016-06-22 Thread Stuart Yoder
make fsl_mc_is_root_dprc() global so that the dprc driver can use it Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/mc-bus.c | 28 +--- drivers/staging/fsl-mc/include/mc.h | 2 ++ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers

[PATCH 07/11] staging: fsl-mc: fix asymmetry in destroy of mc_io

2016-06-22 Thread Stuart Yoder
root dprc and reworded commit message] Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dprc-driver.c | 5 + drivers/staging/fsl-mc/bus/mc-bus.c | 8 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers

[PATCH 09/11] staging: fsl-mc: dprc: fix ordering problem freeing resources in remove of dprc

2016-06-22 Thread Stuart Yoder
When unbinding a dprc from the dprc driver the cleanup of the resource pools must happen after irq pool cleanup is done. Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dprc-driver.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/staging/fsl-mc

[PATCH 05/11] staging: fsl-mc: export mc_get_version

2016-06-22 Thread Stuart Yoder
some drivers (built as modules) rely on mc_get_version() Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dpmng.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/fsl-mc/bus/dpmng.c b/drivers/staging/fsl-mc/bus/dpmng.c index f633fcd..a31fa9b 100644 --- a/drivers

[PATCH 10/11] staging: fsl-mc: properly set hwirq in msi set_desc

2016-06-22 Thread Stuart Yoder
index to compose a hwirq value. Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/mc-msi.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/staging/fsl-mc/bus/mc-msi.c b/drivers/staging/fsl-mc/bus/mc-msi.c index e202b2b..c7be156 100644 --- a

[PATCH 08/11] staging: fsl-mc: dprc: add missing irq free

2016-06-22 Thread Stuart Yoder
add missing free of the Linux irq when tearing down interrupts Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dprc-driver.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers/staging/fsl-mc/bus/dprc-driver.c index 1a6bcc4

[PATCH 00/11] staging: fsl-mc: module loading support, fixes, and cleanup

2016-06-22 Thread Stuart Yoder
want other new drivers to follow. Bharat Bhushan (1): staging: fsl-mc: fix asymmetry in destroy of mc_io Ioana Radulescu (1): staging: fsl-mc: convert mc command build/parse to use C structs Stuart Yoder (9): staging: fsl-mc: add support for the modalias sysfs attribute staging: fsl-mc

[PATCH 04/11] staging: fsl-mc: add support for device table matching

2016-06-22 Thread Stuart Yoder
Move the definition of fsl_mc_device_id to its proper location in mod_devicetable.h, and add fsl-mc bus support to devicetable-offsets.c and file2alias.c to enable device table matching. With this patch udev based module loading of fsl-mc drivers is supported. Signed-off-by: Stuart Yoder

[PATCH 11/11] staging: fsl-mc: convert mc command build/parse to use C structs

2016-06-22 Thread Stuart Yoder
and the APIs exposed for the DPAA2 objects remain the same. Signed-off-by: Ioana Radulescu Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dpbp.c | 132 -- drivers/staging/fsl-mc/bus/dpmcp-cmd.h| 86 +++- drivers/staging/fsl-mc/bus/dpmcp.c| 89 ++-- drivers

RE: [PATCH 06/11] staging: fsl-mc: make fsl_mc_is_root_dprc() global

2016-06-29 Thread Stuart Yoder
> -Original Message- > From: Matthias Brugger [mailto:mbrug...@suse.com] > Sent: Wednesday, June 29, 2016 9:17 AM > To: Stuart Yoder ; gre...@linuxfoundation.org > Cc: de...@driverdev.osuosl.org; ag...@suse.de; a...@arndb.de; Jose Rivera > ; > linux-ker...@vger.ke

RE: [PATCH v2] fsl-mc: add helper macro to determine if a device is of fsl_mc type

2016-07-11 Thread Stuart Yoder
> -Original Message- > From: Nipun Gupta [mailto:nipun.gu...@nxp.com] > Sent: Wednesday, June 29, 2016 12:15 PM > To: gre...@linuxfoundation.org; Stuart Yoder > Cc: de...@driverdev.osuosl.org; linux-ker...@vger.kernel.org; Nipun Gupta > ; Bharat > Bhushan > Su

[PATCH 04/14] staging: fsl-mc: move resource pool init/cleanup into allocator

2016-08-23 Thread Stuart Yoder
The resource pool init/cleanup functions logically belong in the allocator. Move them to the allocator and rename to reflect the move out of the dprc-driver. Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dprc-driver.c | 55 ++- drivers/staging/fsl-mc

[PATCH 10/14] staging: fsl-mc: move bus definitions from mc.h to mc-bus.h

2016-08-23 Thread Stuart Yoder
move public bus-related definitions to the proper mc-bus.h header. Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/include/mc-bus.h | 16 drivers/staging/fsl-mc/include/mc.h | 16 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a

[PATCH 00/14] staging: fsl-mc: restructuring and cleanup

2016-08-23 Thread Stuart Yoder
some source files to improve clarity -create a new mc-io component to contain all APIs related to the mc-io abstraction -remove unneeded includes and forward definitions Stuart Yoder (14): staging: fsl-mc: rename mc-private.h to mc-bus.h staging: fsl-mc: improve naming of source files

[PATCH 05/14] staging: fsl-mc: create private include for fsl-mc bus components

2016-08-23 Thread Stuart Yoder
. Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dprc-driver.c | 1 + drivers/staging/fsl-mc/bus/fsl-mc-allocator.c | 1 + drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 1 + drivers/staging/fsl-mc/bus/fsl-mc-private.h | 44 +++ drivers/staging/fsl-mc

[PATCH 07/14] staging: fsl-mc: move bus private definitions into fsl-mc-bus.c

2016-08-23 Thread Stuart Yoder
Move definitions that are private to fsl-mc-bus.c out of the public mc-bus.h and mc.h headers. Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 33 + drivers/staging/fsl-mc/include/mc-bus.h | 28 drivers

[PATCH 09/14] staging: fsl-mc: remove unneeded forward declarations

2016-08-23 Thread Stuart Yoder
Remove unneeded and duplicated forward declarations. Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/include/mc-bus.h | 4 drivers/staging/fsl-mc/include/mc.h | 1 - 2 files changed, 5 deletions(-) diff --git a/drivers/staging/fsl-mc/include/mc-bus.h b/drivers/staging/fsl-mc

  1   2   >