From patchwork Wed Nov 22 07:48:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bharat Bhushan X-Patchwork-Id: 10069859 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 5D0D4601D5 for ; Wed, 22 Nov 2017 07:52:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4DC6E29343 for ; Wed, 22 Nov 2017 07:52:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 425F329B99; Wed, 22 Nov 2017 07:52:35 +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 C2D8129343 for ; Wed, 22 Nov 2017 07:52:34 +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=EqoonrAMot71hyILKBs/G+WeZbLqHuaLCZFm0eesMQk=; b=SsTSIj8Y2gtgtd MY/KvBVt2k+n0/bX9qS+/zdB4ZQjSNl9t5wc4URERiVBsVkl8BbcZevOevasBbaxyi738bLKByXj4 ltfROpJ6aPLENjaNpqi2It6Mm1dwHM7Chux9DY6wOzC/N6nyknIE4jiYrZsv0SCkuY8m7mm+54kuU ISFe63l4pIUHBAMUqyuRcfbew9+6ESln/HC0LKI5JchNzaeULe3EwvE/y4uLM3YE8WzXqztmkhYiv WIOZCWyWjMtxbQQQRV79ZNuRlsBPOlYMwSXM7ovsDn9NRgeyyj2hZIe/pU029mupXKLLs15iC6WPz GekDHSnWyxVeVmscQmjQ==; 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 1eHPpi-0006dn-7z; Wed, 22 Nov 2017 07:52:34 +0000 Received: from mail-co1nam03on0610.outbound.protection.outlook.com ([2a01:111:f400:fe48::610] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eHPpP-00060o-EI for linux-arm-kernel@lists.infradead.org; Wed, 22 Nov 2017 07:52:20 +0000 Received: from DM5PR03CA0037.namprd03.prod.outlook.com (10.174.189.154) by BN6PR03MB2692.namprd03.prod.outlook.com (10.173.144.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.239.5; Wed, 22 Nov 2017 07:51:50 +0000 Received: from BN1AFFO11FD031.protection.gbl (2a01:111:f400:7c10::187) by DM5PR03CA0037.outlook.office365.com (2603:10b6:4:3b::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.239.5 via Frontend Transport; Wed, 22 Nov 2017 07:51:50 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; 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 BN1AFFO11FD031.mail.protection.outlook.com (10.58.52.185) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.218.12 via Frontend Transport; Wed, 22 Nov 2017 07:51:45 +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 vAM7pdiI022816; Wed, 22 Nov 2017 00:51:40 -0700 From: Bharat Bhushan To: , Subject: [PATCH v3] staging: fsl-mc: use 32bits to support 64K size mc-portals Date: Wed, 22 Nov 2017 13:18:43 +0530 Message-ID: <1511336923-610-1-git-send-email-Bharat.Bhushan@nxp.com> X-Mailer: git-send-email 1.9.3 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131558107101497333; (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)(39380400002)(39860400002)(346002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(316002)(48376002)(54906003)(110136005)(16586007)(104016004)(106466001)(6636002)(85426001)(8656006)(50986999)(68736007)(50466002)(5660300001)(7416002)(47776003)(498600001)(966005)(8676002)(72206003)(81156014)(81166006)(39060400002)(76506005)(8936002)(189998001)(305945005)(97736004)(356003)(50226002)(5003940100001)(105606002)(4326008)(77096006)(86362001)(6306002)(53936002)(36756003)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2692; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD031; 1:xxqL0n6q8YW9AvNOjx4fqqfskXLvlMRnSFao9J7M+3M8mjy1C/D7GKMQ56BhEiVLnonpkx+Hr22+MC5KwfQl022jSu+mkzmIX0tIdolfXA5fGSHcmyQoBkBpQz2NOsuq MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7becff32-8a07-4e70-2694-08d5317de390 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600022)(4604075)(2017052603258); SRVR:BN6PR03MB2692; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2692; 3:PPaV6xJlFffa2c0cCU3UWwrsPMUOdXxNgS3Yr27+8OVCAv0YjM2KfilQ2Ww4zEs5sA7T8SXVQsUbFlZxCiNtvr6MJ2LQQOGT+C/kDTrjRmAkrQS31N9hX6x8qgiX28W3fvUzv8pqtyDbOfF0mH+ciTCWYOuNArpqozUKwy0USJ/AzYOnIhQ+Qs9WAJ1nOUVZFpm+gedaCQ+KHGSce/RDxFm/W9I2uB/8rG0kDCLlDusTNmVLXTqb5kNsL4EelfHYcQDXZ0IH81KFVzUM62Am6CMi+AUhxz4mPH33IWJiMe6gmd5Smg8GEwCYU6w8jTWFxoEw/3Q8bl1Sucf32QYG6pKBHDUtQnxObskdZFpyJXE=; 25:LzD74mYCiMzTHIoQgCTxp/AB9NkCmrJ69trxzohl+JzobovsZcIdKQbbyvnjg2XcTRkvtll2KCmMYJR+wESKcsx+64lWnOYD7XbdUYir/8VM85hL7RizSn3sxH0bloSPLgYlUeE/pe0+4NfS3s05Ot8DFBb/hhV2lXgceDLW5TrWuz8RzaeF9P7ZgeirST9ry/9xP2HUyv1FsCjGAckHd8d9EQZYRhR2uiP2GurBauQ3sDkTxw6sWa1yi7c99GegHFQfFeuXz27LZAuB/cdzLyFDsFU/9qFeOYebBVU4yyRjp/C0mFX0CVzPCBYj5c3FtLrf39wRWc5zxLsu8QpEzg== X-MS-TrafficTypeDiagnostic: BN6PR03MB2692: X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2692; 31:aD0cmtPIzUyeaZw3GX4JL+twk0O2LLbjrqeh7LbMdAnMOOsggttzZfbnVYAMr1CkNGSKg4qdUPDJ9W2X7KUD/Y+rtiDTwUd9yQD8wHzVN4hYiu1QI6jH3jWDGBK7mPI3okgLtEP928F+eeAzb4brehkMnn8zph5Ea88k8cspJ2rqc1jsSb9ytmPIGNGbvtlJRBDQBi3eiGYwFEMKcLOFVhYcpss85ApOD7t45DNPCck=; 4:95DSRS/L62JdcJDIeURWtwcCnMyUTHav4kCydNh6NPH1Eh0GSlXRhhrdg+lgzaFlM+zaLH9RldC3B5JBxgwKwTzS/F3nQtjiGoGcWWktPk2LrqRSnnbRPYWq3zGnWChFaWKIWfIXoX4iSLnGIEE9ov022k+NZ+xniSX3DZiwoLU8eIlOVd9Xqs15gK9Soe1x8q80RTlJkp0z8RkJh6umj8/S2Lk+x3Mu+PLNLBvdaZ84zIzjSXJDixLABSQNFLT4+dA4NWs2sgXI7Nzqc4Z4Rqeyg8ugbBB0XE9uf2lAY11hL4QqqaSPDXbteBe/NbmjJhJnpbii2vMafycK8oleYMDFiBiTayVKqBw3h6NCkTHUkwlipEgyoBuicAzNhb9X X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(788757137089)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231022)(3002001)(100000703101)(100105400095)(6055026)(6096035)(20161123559100)(20161123563025)(20161123556025)(20161123565025)(20161123561025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR03MB2692; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR03MB2692; X-Forefront-PRVS: 0499DAF22A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2692; 23:zVln+velfFMchv8PYiqvxPExbKEdl5Ies+xtVcm90?= =?us-ascii?Q?iGQBcTeJEPt1hcBrLe98BxrnycVSwSSfn0fVSNR6V0U1aQ8HSn0inAwFU/zz?= =?us-ascii?Q?wey9IEvvcjqEDNWR5lTaj7OuMGdWW9HpaoCcWAztJNxReqnvUth9qVhidKAL?= =?us-ascii?Q?SgYCJskEeGrEUrF72lrSytIt1uKv3E57Neq/WMGNFvlez2kaIJKCcgAJkKDx?= =?us-ascii?Q?4tSuNHvyrQVRTPEw2j38pVO0AEEYSTT/LfVe1YWCxt4TGVHqpQozzkz7u5zw?= =?us-ascii?Q?jqTuKXZCB1m6ozspBa9RRwrcFnGFK/mcvP3MzT4bqcpEqsmmt1Hfx+pghGMd?= =?us-ascii?Q?9OWXdVlURNGlpO70L/bWAWzupG9DiePD4vhTfxnNUPMPyJpV/XrYr3FOk73r?= =?us-ascii?Q?QGCaTXqxgjnfazn/MVtNngiWWpdFGBd0rnp6lCiyIhW5q8wPHTKN2KNfuFye?= =?us-ascii?Q?IL3mKEs7ZrliQqCzlBgTGhD7W0fRaExybV6Ig1/PaFISu8Wmas29gcQD2qAK?= =?us-ascii?Q?GgvYgq2U7gPttxSjJ09Ih4/4T3dFcx4XyTqkyjIC7r8MTFVgdaiJMeQGZX8h?= =?us-ascii?Q?ZSMCopZ7U+evaUbrdJOzOTNRCURtFQWlY/OG6KdAKZ4dBniKxlgTUhYVQEP7?= =?us-ascii?Q?LNci/67yg4peFA1HFijhw5xW4oUMss0ubEAmq/yWOZZwn36Sx/Ml037656yn?= =?us-ascii?Q?+WE0awR6Bzrbspsd9Abpg9Mzrwj7G6g/A3Vu+0c1zIopBE4LYjBIwvDgLNZf?= =?us-ascii?Q?qonodKOAxpCxiIUUrfCbdf6dMr60bCb59s5PqtqOWMhmrt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kkgIA1jRG7yqdKv5DeSqy/Yy0v7A/wmobO9EWg3mWeKvrVtBH6mER1TI=; 24:cE8dGew1RckUnH5qesVBTUgb1tDN2LXpXQ94mXwS6KOYfAXZzv7YXht7IFH5qxbyUyXkQL9J0e1AAe0ZrgfSBUVI6IsFgrMdjiPcmUSOvuA=; 7:m4klhbcnoh17jcA3Z2t9l5lPOEZl9ykRNb3/q62jiwmRzcMfCVpw3fNmOAG4Mdb7nU5sQIWo6k+/vK2w9aX1wMrHHQY6RQMmHw6dwnW/fnwND/u8KS+yo7TnKDMhhmBIHOJwyypGOVOJDX4pl9JalvPxE8gFUP+oOzfYPm5Eyy6BiThffEguSeadHoCtEhLfUANJjWmZDfnPUO1RjTDE+AYJGIemJZzfW8ljA6+l0mfifkjHzrmLY68r6dP4LZMu SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2017 07:51:45.0017 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7becff32-8a07-4e70-2694-08d5317de390 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: BN6PR03MB2692 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171121_235216_315644_C6192FAE X-CRM114-Status: GOOD ( 11.03 ) 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 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 Acked-By: Laurentiu Tudor --- 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;