staging: fsl-mc: Move DPIO from staging to drivers/soc/fsl
authorRoy Pledge <roy.pledge@nxp.com>
Tue, 24 Jul 2018 14:21:29 +0000 (09:21 -0500)
committerLi Yang <leoyang.li@nxp.com>
Tue, 24 Jul 2018 21:18:55 +0000 (16:18 -0500)
Move the NXP DPIO (Datapath I/O Driver) out of the
drivers/staging directory and into the drivers/soc/fsl directory.

The DPIO driver enables access to Queue and Buffer Manager (QBMAN)
hardware on NXP DPAA2 devices. This is a prerequisite to moving the
DPAA2 Ethernet driver out of staging.

Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Reviewed-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
20 files changed:
MAINTAINERS
drivers/crypto/caam/sg_sw_qm2.h
drivers/crypto/caam/sg_sw_sec4.h
drivers/soc/fsl/Kconfig
drivers/soc/fsl/Makefile
drivers/soc/fsl/dpio/Makefile [moved from drivers/staging/fsl-mc/bus/dpio/Makefile with 100% similarity]
drivers/soc/fsl/dpio/dpio-cmd.h [moved from drivers/staging/fsl-mc/bus/dpio/dpio-cmd.h with 100% similarity]
drivers/soc/fsl/dpio/dpio-driver.c [moved from drivers/staging/fsl-mc/bus/dpio/dpio-driver.c with 99% similarity]
drivers/soc/fsl/dpio/dpio-driver.txt [moved from drivers/staging/fsl-mc/bus/dpio/dpio-driver.txt with 100% similarity]
drivers/soc/fsl/dpio/dpio-service.c [moved from drivers/staging/fsl-mc/bus/dpio/dpio-service.c with 99% similarity]
drivers/soc/fsl/dpio/dpio.c [moved from drivers/staging/fsl-mc/bus/dpio/dpio.c with 100% similarity]
drivers/soc/fsl/dpio/dpio.h [moved from drivers/staging/fsl-mc/bus/dpio/dpio.h with 100% similarity]
drivers/soc/fsl/dpio/qbman-portal.c [moved from drivers/staging/fsl-mc/bus/dpio/qbman-portal.c with 99% similarity]
drivers/soc/fsl/dpio/qbman-portal.h [moved from drivers/staging/fsl-mc/bus/dpio/qbman-portal.h with 99% similarity]
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h
drivers/staging/fsl-mc/bus/Kconfig
drivers/staging/fsl-mc/bus/Makefile
include/soc/fsl/dpaa2-fd.h [moved from drivers/staging/fsl-mc/include/dpaa2-fd.h with 100% similarity]
include/soc/fsl/dpaa2-global.h [moved from drivers/staging/fsl-mc/include/dpaa2-global.h with 100% similarity]
include/soc/fsl/dpaa2-io.h [moved from drivers/staging/fsl-mc/include/dpaa2-io.h with 100% similarity]

index 9d5eeff..c48dda4 100644 (file)
@@ -4419,7 +4419,7 @@ DPAA2 DATAPATH I/O (DPIO) DRIVER
 M:     Roy Pledge <Roy.Pledge@nxp.com>
 L:     linux-kernel@vger.kernel.org
 S:     Maintained
-F:     drivers/staging/fsl-mc/bus/dpio
+F:     drivers/soc/fsl/dpio
 
 DPAA2 ETHERNET DRIVER
 M:     Ioana Radulescu <ruxandra.radulescu@nxp.com>
index 31b4407..b5b4c12 100644 (file)
@@ -35,7 +35,7 @@
 #ifndef _SG_SW_QM2_H_
 #define _SG_SW_QM2_H_
 
-#include "../../../drivers/staging/fsl-mc/include/dpaa2-fd.h"
+#include <soc/fsl/dpaa2-fd.h>
 
 static inline void dma_to_qm_sg_one(struct dpaa2_sg_entry *qm_sg_ptr,
                                    dma_addr_t dma, u32 len, u16 offset)
index e586ffa..dbfa9fc 100644 (file)
@@ -12,7 +12,7 @@
 #include "ctrl.h"
 #include "regs.h"
 #include "sg_sw_qm2.h"
-#include "../../../drivers/staging/fsl-mc/include/dpaa2-fd.h"
+#include <soc/fsl/dpaa2-fd.h>
 
 struct sec4_sg_entry {
        u64 ptr;
index 7a9fb9b..c17bf38 100644 (file)
@@ -16,3 +16,13 @@ config FSL_GUTS
          Initially only reading SVR and registering soc device are supported.
          Other guts accesses, such as reading RCW, should eventually be moved
          into this driver as well.
+
+config FSL_MC_DPIO
+        tristate "QorIQ DPAA2 DPIO driver"
+        depends on FSL_MC_BUS
+        help
+         Driver for the DPAA2 DPIO object.  A DPIO provides queue and
+         buffer management facilities for software to interact with
+         other DPAA2 objects. This driver does not expose the DPIO
+         objects individually, but groups them under a service layer
+         API.
index 44b3beb..803ef1b 100644 (file)
@@ -6,3 +6,4 @@ obj-$(CONFIG_FSL_DPAA)                 += qbman/
 obj-$(CONFIG_QUICC_ENGINE)             += qe/
 obj-$(CONFIG_CPM)                      += qe/
 obj-$(CONFIG_FSL_GUTS)                 += guts.o
+obj-$(CONFIG_FSL_MC_DPIO)              += dpio/
similarity index 99%
rename from drivers/staging/fsl-mc/bus/dpio/dpio-driver.c
rename to drivers/soc/fsl/dpio/dpio-driver.c
index 11a90a9..b60b77b 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/io.h>
 
 #include <linux/fsl/mc.h>
-#include "../../include/dpaa2-io.h"
+#include <soc/fsl/dpaa2-io.h>
 
 #include "qbman-portal.h"
 #include "dpio.h"
similarity index 99%
rename from drivers/staging/fsl-mc/bus/dpio/dpio-service.c
rename to drivers/soc/fsl/dpio/dpio-service.c
index 14ed2be..9b17f72 100644 (file)
@@ -6,7 +6,7 @@
  */
 #include <linux/types.h>
 #include <linux/fsl/mc.h>
-#include "../../include/dpaa2-io.h"
+#include <soc/fsl/dpaa2-io.h>
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
similarity index 99%
rename from drivers/staging/fsl-mc/bus/dpio/qbman-portal.c
rename to drivers/soc/fsl/dpio/qbman-portal.c
index 116fafb..cf1d448 100644 (file)
@@ -8,7 +8,7 @@
 #include <asm/cacheflush.h>
 #include <linux/io.h>
 #include <linux/slab.h>
-#include "../../include/dpaa2-global.h"
+#include <soc/fsl/dpaa2-global.h>
 
 #include "qbman-portal.h"
 
similarity index 99%
rename from drivers/staging/fsl-mc/bus/dpio/qbman-portal.h
rename to drivers/soc/fsl/dpio/qbman-portal.h
index 69db3c8..89d1dd9 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef __FSL_QBMAN_PORTAL_H
 #define __FSL_QBMAN_PORTAL_H
 
-#include "../../include/dpaa2-fd.h"
+#include <soc/fsl/dpaa2-fd.h>
 
 struct dpaa2_dq;
 struct qbman_swp;
index 9269cb0..f2917b5 100644 (file)
@@ -37,8 +37,8 @@
 #include <linux/if_vlan.h>
 #include <linux/fsl/mc.h>
 
-#include "../../fsl-mc/include/dpaa2-io.h"
-#include "../../fsl-mc/include/dpaa2-fd.h"
+#include <soc/fsl/dpaa2-io.h>
+#include <soc/fsl/dpaa2-fd.h>
 #include "dpni.h"
 #include "dpni-cmd.h"
 
index 3424530..90f234d 100644 (file)
@@ -5,12 +5,3 @@
 # Copyright (C) 2014-2016 Freescale Semiconductor, Inc.
 #
 
-config FSL_MC_DPIO
-        tristate "QorIQ DPAA2 DPIO driver"
-        depends on FSL_MC_BUS
-        help
-         Driver for the DPAA2 DPIO object.  A DPIO provides queue and
-         buffer management facilities for software to interact with
-         other DPAA2 objects. This driver does not expose the DPIO
-         objects individually, but groups them under a service layer
-         API.
index 21d8ebc..2141e4b 100644 (file)
@@ -5,5 +5,3 @@
 # Copyright (C) 2014 Freescale Semiconductor, Inc.
 #
 
-# MC DPIO driver
-obj-$(CONFIG_FSL_MC_DPIO) += dpio/