aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/fsl-mc/include
diff options
context:
space:
mode:
authorBharat Bhushan <Bharat.Bhushan@nxp.com>2017-11-22 13:18:43 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-28 13:58:31 +0100
commit612b5bac4e5bd8a28e8b6e7c0b47f85ad59dae43 (patch)
treef100fb87689ee404f8b0bcab24b195a5e5b6ecb1 /drivers/staging/fsl-mc/include
parentncpfs: move net/ncpfs to drivers/staging/ncpfs (diff)
downloadlinux-dev-612b5bac4e5bd8a28e8b6e7c0b47f85ad59dae43.tar.xz
linux-dev-612b5bac4e5bd8a28e8b6e7c0b47f85ad59dae43.zip
staging: fsl-mc: use 32bits to support 64K size mc-portals
As per APIs each mc-portal is of 64K size while currently 16bits (type u16) is used to store size of mc-portal. In these cases upper bit of portal size gets truncated. Signed-off-by: Bharat Bhushan <Bharat.Bhushan@nxp.com> Acked-By: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fsl-mc/include')
-rw-r--r--drivers/staging/fsl-mc/include/mc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fsl-mc/include/mc.h b/drivers/staging/fsl-mc/include/mc.h
index 15db93d71f82..34d79a808b99 100644
--- a/drivers/staging/fsl-mc/include/mc.h
+++ b/drivers/staging/fsl-mc/include/mc.h
@@ -325,7 +325,7 @@ static inline void mc_cmd_read_api_version(struct mc_command *cmd,
struct fsl_mc_io {
struct device *dev;
u16 flags;
- u16 portal_size;
+ u32 portal_size;
phys_addr_t portal_phys_addr;
void __iomem *portal_virt_addr;
struct fsl_mc_device *dpmcp_dev;