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

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>

authored by

Bharat Bhushan and committed by
Greg Kroah-Hartman
612b5bac 1bb81550

+1 -1
+1 -1
drivers/staging/fsl-mc/include/mc.h
··· 325 325 struct fsl_mc_io { 326 326 struct device *dev; 327 327 u16 flags; 328 - u16 portal_size; 328 + u32 portal_size; 329 329 phys_addr_t portal_phys_addr; 330 330 void __iomem *portal_virt_addr; 331 331 struct fsl_mc_device *dpmcp_dev;