aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIoana Ciocoi Radulescu <ruxandra.radulescu@nxp.com>2018-12-14 11:04:06 -0500
committerLi Yang <leoyang.li@nxp.com>2019-01-11 16:06:54 -0500
commit8a533a7de21aa69cf9a3e55223c819858fbc7da2 (patch)
tree717a824561951a85b057d0f47fed59e6e9c49c78
parentf1e250bf365962519c96a1255b2fe34b6c0d6c60 (diff)
soc: fsl: dpio: Change bpid type to u16
In all QBMan registers, the buffer pool id field is two bytes long. The low level qbman APIs reflect this, but the high level DPIO ones use u32. Modify them in order to avoid implicit downcasts. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com> Signed-off-by: Li Yang <leoyang.li@nxp.com>
-rw-r--r--drivers/soc/fsl/dpio/dpio-service.c4
-rw-r--r--include/soc/fsl/dpaa2-io.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/soc/fsl/dpio/dpio-service.c b/drivers/soc/fsl/dpio/dpio-service.c
index 5389336463c0..b9539ef2c3cd 100644
--- a/drivers/soc/fsl/dpio/dpio-service.c
+++ b/drivers/soc/fsl/dpio/dpio-service.c
@@ -473,7 +473,7 @@ EXPORT_SYMBOL_GPL(dpaa2_io_service_enqueue_qd);
473 * Return 0 for success, and negative error code for failure. 473 * Return 0 for success, and negative error code for failure.
474 */ 474 */
475int dpaa2_io_service_release(struct dpaa2_io *d, 475int dpaa2_io_service_release(struct dpaa2_io *d,
476 u32 bpid, 476 u16 bpid,
477 const u64 *buffers, 477 const u64 *buffers,
478 unsigned int num_buffers) 478 unsigned int num_buffers)
479{ 479{
@@ -502,7 +502,7 @@ EXPORT_SYMBOL_GPL(dpaa2_io_service_release);
502 * Eg. if the buffer pool is empty, this will return zero. 502 * Eg. if the buffer pool is empty, this will return zero.
503 */ 503 */
504int dpaa2_io_service_acquire(struct dpaa2_io *d, 504int dpaa2_io_service_acquire(struct dpaa2_io *d,
505 u32 bpid, 505 u16 bpid,
506 u64 *buffers, 506 u64 *buffers,
507 unsigned int num_buffers) 507 unsigned int num_buffers)
508{ 508{
diff --git a/include/soc/fsl/dpaa2-io.h b/include/soc/fsl/dpaa2-io.h
index 3447fd10a3e6..672cfb58046f 100644
--- a/include/soc/fsl/dpaa2-io.h
+++ b/include/soc/fsl/dpaa2-io.h
@@ -111,9 +111,9 @@ int dpaa2_io_service_enqueue_fq(struct dpaa2_io *d, u32 fqid,
111 const struct dpaa2_fd *fd); 111 const struct dpaa2_fd *fd);
112int dpaa2_io_service_enqueue_qd(struct dpaa2_io *d, u32 qdid, u8 prio, 112int dpaa2_io_service_enqueue_qd(struct dpaa2_io *d, u32 qdid, u8 prio,
113 u16 qdbin, const struct dpaa2_fd *fd); 113 u16 qdbin, const struct dpaa2_fd *fd);
114int dpaa2_io_service_release(struct dpaa2_io *d, u32 bpid, 114int dpaa2_io_service_release(struct dpaa2_io *d, u16 bpid,
115 const u64 *buffers, unsigned int num_buffers); 115 const u64 *buffers, unsigned int num_buffers);
116int dpaa2_io_service_acquire(struct dpaa2_io *d, u32 bpid, 116int dpaa2_io_service_acquire(struct dpaa2_io *d, u16 bpid,
117 u64 *buffers, unsigned int num_buffers); 117 u64 *buffers, unsigned int num_buffers);
118 118
119struct dpaa2_io_store *dpaa2_io_store_create(unsigned int max_frames, 119struct dpaa2_io_store *dpaa2_io_store_create(unsigned int max_frames,