public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] staging: fsl-mc: use 32bits to support 64K size mc-portals
@ 2017-11-22  7:48 Bharat Bhushan
  2017-11-22 10:49 ` Laurentiu Tudor
  0 siblings, 1 reply; 4+ messages in thread
From: Bharat Bhushan @ 2017-11-22  7:48 UTC (permalink / raw)
  To: gregkh, laurentiu.tudor
  Cc: ruxandra.radulescu, devel, stuyoder, roy.pledge, linux-kernel,
	leoyang.li, bogdan.purcareata, linux-arm-kernel, bharat.bhushan,
	Bharat Bhushan

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>
---
v2->v3:
 - v2 patch: https://patchwork.kernel.org/patch/10067661/
 - Changes patch subject and description

v1->v2:
 - v1 patch: https://patchwork.kernel.org/patch/10067657/
 - replace uin32_t to u32 in patch subject/description

 drivers/staging/fsl-mc/include/mc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/fsl-mc/include/mc.h b/drivers/staging/fsl-mc/include/mc.h
index aafe63a..2cf15b0 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;
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-24 16:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-22  7:48 [PATCH v3] staging: fsl-mc: use 32bits to support 64K size mc-portals Bharat Bhushan
2017-11-22 10:49 ` Laurentiu Tudor
2017-11-24 15:58   ` gregkh
2017-11-24 16:00     ` Bharat Bhushan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox