From patchwork Tue Nov 21 04:56:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bharat Bhushan X-Patchwork-Id: 10067659 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E466E6038F for ; Tue, 21 Nov 2017 05:00:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DEECE205E9 for ; Tue, 21 Nov 2017 05:00:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D172028B2C; Tue, 21 Nov 2017 05:00:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A702A205E9 for ; Tue, 21 Nov 2017 05:00:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=gS0jcYAdN3+tkrAisjEIZb+UoDC/07GO/WXSz7QIQQw=; b=oZ0tU7V4kymaJd OnAhSxCSpEoFG0as3lmQ3EBRulWugWAWSTcYHr4MZtgDeC5cRm6mVimu4iaC3wqO5Uu0Qi/oHzSCR sfXTwVllLN3u52zyX/WOuR29VvYCheCj5iTVKtO27t/cEQ6zCa9Nmri2aNKVtWFiQuXsyFotImCyr t0aZbGBrGAMvkMUIKIgpi/nVj5Q9JhAOaL8DwA2tSQY9UNwbJvVAeSTVHtC/faEco9OS3UYmCRwzX 7JvsgufQPAz7qM1jGZEY13foX3a7HIWLzJym4Qlo9X4I9d3hCF1yCWmdEeQVzyemoZPV8z9Ky2WEq 6s0LTbzb9AtOFN/WWYlQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eH0f8-0002L2-4z; Tue, 21 Nov 2017 04:59:58 +0000 Received: from mail-by2nam03on0089.outbound.protection.outlook.com ([104.47.42.89] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eH0f4-0001kc-Hu for linux-arm-kernel@lists.infradead.org; Tue, 21 Nov 2017 04:59:56 +0000 Received: from BN3PR03CA0088.namprd03.prod.outlook.com (10.167.1.176) by CY4PR03MB2695.namprd03.prod.outlook.com (10.173.43.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.239.5; Tue, 21 Nov 2017 04:59:25 +0000 Received: from BL2FFO11FD005.protection.gbl (2a01:111:f400:7c09::103) by BN3PR03CA0088.outlook.office365.com (2a01:111:e400:7a4d::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.239.5 via Frontend Transport; Tue, 21 Nov 2017 04:59:25 +0000 Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD005.mail.protection.outlook.com (10.173.161.1) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.218.12 via Frontend Transport; Tue, 21 Nov 2017 04:59:19 +0000 Received: from localhost.ap.freescale.net ([10.232.14.21]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vAL4xEIV011763; Mon, 20 Nov 2017 21:59:15 -0700 From: Bharat Bhushan To: , Subject: [PATCH] staging: fsl-mc: fix mc-portal to use uin32_t type Date: Tue, 21 Nov 2017 10:26:18 +0530 Message-ID: <1511240178-24672-1-git-send-email-Bharat.Bhushan@nxp.com> X-Mailer: git-send-email 1.9.3 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131557139647250323; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7966004)(336005)(376002)(346002)(39380400002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(48376002)(305945005)(86362001)(68736007)(5660300001)(7416002)(81166006)(81156014)(8676002)(50226002)(8936002)(189998001)(5003940100001)(498600001)(8656006)(356003)(104016004)(50986999)(316002)(16586007)(2906002)(50466002)(72206003)(110136005)(4326008)(36756003)(77096006)(76506005)(6636002)(39060400002)(47776003)(54906003)(105606002)(106466001)(97736004)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2695; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD005; 1:9JSTxuauh6oHmY/BPExZOGIJIfibN5/hXLc1l3PjLR4arl8WOwvXCl+KLq0C3+CYImMgm2z/qk4PPtUAmLEL5Auo61UjBSpnvtOeJPSBda5fGHOr9rhFt+AvAIth+QYo MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dd4738dd-610c-4f4b-3f93-08d5309ca2ce X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603258); SRVR:CY4PR03MB2695; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2695; 3:81y9zAtJCZgoWcmrTvrOzN1N91SxqKy+YUvtiJIDMwcx2vU8CJfFiC+P7lD3ID/eLdH3fpCu3fdU4ujV+UaeTunjHGM3RGXiHefA/74n9IPgquFL73omWZlfbFyDOjclUiFGy/xk+fkVQ+J9aPRNpES8Foq8HzWhJwjo0jqE2jaANjb6kX9lzCliUmMVGwLogf0GyaFRw5FWShjtUPLvkhTyruRYGX1cJQn7Rbw2JMtl3GZcFpwX5keFONDC4E5xUOFDnSv86Ls61mWZahUT4WZnq/u3Rh5zCxKIj1iiGNtU+D4RqCXaEMwmVwSATA86KWzV32A6lL/QRuDxCj8cWAEcLz84VSzSl6YXKcjW+jI=; 25:VALkEljBSSKG6Hie7to2a8LtgK8kuvZSk6uOXDpAYpV4sga3y5tDyCDmZ682EyYI3a2Vgjk+tr6y9w6u9pmRsGi0NBx2d//Ugst3v99yoTykB6BhnPijsLahmOT8mvvV+zvI3IIP9ao9VBX/YzYex2y23PrnNsy9n356KqcPbgG4xt8/htKfZ/Xliami8hCt+9LSmJIjqCzEiiyuc1MJqnsGyovATJypFARdJNbulNusq+i/Q0wA6Fq78ZVDgfqzJIJM9Bvew5+2/ojC7ZLUMXCQ9rtWgkaBnofTDD5ixjASqSa3L23La3Z0EyXeKyCnqquo4nN8jhBgVojjgHxkyQ== X-MS-TrafficTypeDiagnostic: CY4PR03MB2695: X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2695; 31:0uYHyd2oP5LHVm83Gb1Wa+0pLc4U/0RLuu12baM1Wzc8DcplJPtfcGinM7b9btmNkzUVSG1SsienXgS6cxEa1voR7TXLgJpZ67ssO2Ljy6d5ssyNV6gsTh3Ho7Qu1XvRg5l1UrKSWgMlAeIzrAUbhDwU2i6K3b8tx9JX4Otx5Gn40seQD6aFDbdBlahy+MN7+lcR+fbyHLztPOMt4x4YSvLCtPOvqa7e6F6yj5kt8D0=; 4:XVuFzxCvOruusn5rwQMGHIMnL34yJ5bSIHjiNEpqX8dvZ+vYISCje48CYZFQXaRfL4RC4oLPcFkTesMFqnTgYIIx1IYjFsrW6PkmfzE96oZEgtiiy4zVkwbwYt7jTs4T0HPzpEyy/sMge6BfxYwQFkOPC1dqdt1O5pcDgph9ByRdZhKEyGdEQV9Ow7xQvITFmucXqWty/pL//yDLIa8RtO+inNrt5tsRGqbQi9GvDZBep2baqAj1YlRp/z3ALYgjvMXmL87g9jtzJFvfe+6so4t3o19dDZFFxn+a8TVJxBAcm+Kv5eZeve0loi1wtwGQ9f3vwERwWMQz0LOngJZ8MyrMHBqGO2igpXe83WMERtA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231022)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123561025)(20161123563025)(20161123556025)(20161123565025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR03MB2695; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR03MB2695; X-Forefront-PRVS: 049897979A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB2695; 23:4EyRBh+Uup2v8gUlHuaiiP5zFrG05NtXNs3XJgU3b?= =?us-ascii?Q?Wgrri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0/lipH1Z+Tf6iMWJvwpvRPKaGf1OxJbyhzPCUWhczHkJ26rZx3Af36y6PcbXkRl3NTLUydEM/8hbYTu5J5tMoQrGhnZZ2jsf+u3Di+P0k1SVZmb9JQkOcdTbR00gHN+uOsqzrmz1G5Lp5p6TZ589FTtbCdz0h0Ild5jj7//j8AdRdyu1y SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2017 04:59:19.5769 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dd4738dd-610c-4f4b-3f93-08d5309ca2ce X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR03MB2695 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171120_205954_640945_FFE9D738 X-CRM114-Status: GOOD ( 10.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, ruxandra.radulescu@nxp.com, stuyoder@gmail.com, roy.pledge@nxp.com, linux-kernel@vger.kernel.org, leoyang.li@nxp.com, Bharat Bhushan , bogdan.purcareata@nxp.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP According to MC APIs, size of mc-portal in 32bit. Also fsl_create_mc_io() storing 32 bit mc-portal size. " mc_io->portal_size = mc_portal_size;" While "mc_io->portal_size" is uin16_t type and "mc_portal_size" is uin32_t type. This patches changes mc_io->portal_size from uin16_t to uin32_t Signed-off-by: Bharat Bhushan --- drivers/staging/fsl-mc/include/mc-sys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fsl-mc/include/mc-sys.h b/drivers/staging/fsl-mc/include/mc-sys.h index dca7f90..11d4367 100644 --- a/drivers/staging/fsl-mc/include/mc-sys.h +++ b/drivers/staging/fsl-mc/include/mc-sys.h @@ -75,7 +75,7 @@ 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;