Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ioana Ciocoi Radulescu and committed by
Li Yang
8a533a7d f1e250bf

+4 -4
+2 -2
drivers/soc/fsl/dpio/dpio-service.c
··· 473 473 * Return 0 for success, and negative error code for failure. 474 474 */ 475 475 int dpaa2_io_service_release(struct dpaa2_io *d, 476 - u32 bpid, 476 + u16 bpid, 477 477 const u64 *buffers, 478 478 unsigned int num_buffers) 479 479 { ··· 502 502 * Eg. if the buffer pool is empty, this will return zero. 503 503 */ 504 504 int dpaa2_io_service_acquire(struct dpaa2_io *d, 505 - u32 bpid, 505 + u16 bpid, 506 506 u64 *buffers, 507 507 unsigned int num_buffers) 508 508 {
+2 -2
include/soc/fsl/dpaa2-io.h
··· 111 111 const struct dpaa2_fd *fd); 112 112 int dpaa2_io_service_enqueue_qd(struct dpaa2_io *d, u32 qdid, u8 prio, 113 113 u16 qdbin, const struct dpaa2_fd *fd); 114 - int dpaa2_io_service_release(struct dpaa2_io *d, u32 bpid, 114 + int dpaa2_io_service_release(struct dpaa2_io *d, u16 bpid, 115 115 const u64 *buffers, unsigned int num_buffers); 116 - int dpaa2_io_service_acquire(struct dpaa2_io *d, u32 bpid, 116 + int dpaa2_io_service_acquire(struct dpaa2_io *d, u16 bpid, 117 117 u64 *buffers, unsigned int num_buffers); 118 118 119 119 struct dpaa2_io_store *dpaa2_io_store_create(unsigned int max_frames,