From patchwork Tue Nov 21 05:05:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bharat Bhushan X-Patchwork-Id: 10067663 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 20CDA602B7 for ; Tue, 21 Nov 2017 05:09:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B93D28E74 for ; Tue, 21 Nov 2017 05:09:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F4F528E77; Tue, 21 Nov 2017 05:09:10 +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 8896328E74 for ; Tue, 21 Nov 2017 05:09:09 +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=yxlEPeIJPLHDiqmiXqghkDUd+pKLHcgq4XDHc0Tiln4=; b=Sxvfz+OcB060lI eJO+sGmSFfEP73LfEZMetQokwrwyAuaoqthxmjbzeH9rWirX75KZ1BUvAGZX5ecAiEzmWSU4SN42t Bis20n6jYcMkJyQ7CIvtW8UC8rcfL5cw9yrhYgbp21WpByBuy5FxmC6kEkVlmgfgm/R/xJmdKaj/j ajjwiXptnJmzmMiCNMGlIW4gt2b641c8obxiz6Yw3T71ikTtGGO4Ti2l/W+ur7Y4LOO/qd1AvKoAd rRtuoLjjat73lZJpxrlPnsSSYaeW+R++EwYI6FoN0XRC5FU5wCIkDO9v1LCutBGVv7T/jfcjMu2JD FEhfjIMU6qexUL44geRw==; 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 1eH0nq-0007wK-EN; Tue, 21 Nov 2017 05:08:58 +0000 Received: from mail-bl2nam02on0045.outbound.protection.outlook.com ([104.47.38.45] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eH0nm-0007um-Qu for linux-arm-kernel@lists.infradead.org; Tue, 21 Nov 2017 05:08:56 +0000 Received: from MWHPR03CA0017.namprd03.prod.outlook.com (10.175.133.155) by BN3PR03MB2353.namprd03.prod.outlook.com (10.166.74.148) 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 05:08:31 +0000 Received: from BN1BFFO11FD010.protection.gbl (2a01:111:f400:7c10::1:137) by MWHPR03CA0017.outlook.office365.com (2603:10b6:300:117::27) 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 05:08:31 +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 BN1BFFO11FD010.mail.protection.outlook.com (10.58.144.73) 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 05:08:25 +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 vAL58J8x024467; Mon, 20 Nov 2017 22:08:20 -0700 From: Bharat Bhushan To: , Subject: [PATCH v2] staging: fsl-mc: fix mc-portal to use u32 type Date: Tue, 21 Nov 2017 10:35:23 +0530 Message-ID: <1511240723-24829-1-git-send-email-Bharat.Bhushan@nxp.com> X-Mailer: git-send-email 1.9.3 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131557145104723874; (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)(336005)(7966004)(39860400002)(376002)(346002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(110136005)(50226002)(8936002)(189998001)(86362001)(77096006)(5003940100001)(97736004)(5660300001)(47776003)(106466001)(6636002)(105606002)(72206003)(53936002)(4326008)(39060400002)(48376002)(50466002)(68736007)(498600001)(76506005)(8656006)(305945005)(85426001)(2906002)(50986999)(356003)(16586007)(36756003)(7416002)(316002)(104016004)(54906003)(8676002)(81156014)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2353; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD010; 1:x1aZ3lihwazkploIh/PWqoTE3YrVUHp7RWJCRHlwhfHSZWkLJZULGZoprgm9chfIvXZ6vaizuWGOlCTHg+GIGmP3pPllLBQyL9M16RcXhOIB+OXkzti8VhRXjbwvCPcJ MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a8f4006e-97b4-4de8-afa2-08d5309de818 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603258); SRVR:BN3PR03MB2353; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2353; 3:h5konXr6fgvAECr6ELhmQsYuvUa4VDaToHSDRN1n+0bBAf3WW9i5g/jT0opJyhXc5WcUYve8esDaWZJ+geSWpLm5U2gLg73Grk1eCIEvQEYDxtgG57E9AX6tQDIa0OR1WcUj6+wuYQt0TXyKU4EqePsS2okFk5N8NVr8g0ASNDgHobzzPL0nh3sUbhTWIGXCwd/TL7GLn2vLbbbpYrJfyrNzLJ7FSm1DhLRniZtRbf9/dL0JtIdYf/RBen7BVrrrKWmCEvXkHoggJo6QhZW8buxzvl81dtXB5PP7MY9tIPj5FOZFG4uchrhquPKRX2idlJRafq1FlgCt8WAgzqeE8z6yRADzADaRmuk5C8JVimw=; 25:UZTx/wtpKyYTbCDV8kRmrlLMxZFtm8MuzpawjN8pQWkDeK7jAlpexOj52hlgpEMMxb5KlYwm61qKG5s4WD7rLnFNsc5Jr04OsnQejF7Jyb4GlT2+F8V4lcRBT8m/H4unJLCUCnOH097xdfBLIH87MxtC+jJad1uRSJYnMcqR6sDSZjX4vdddFtmcUwP5TnOWtYve61+g7LLdbuiwcRdCHPZpmegt8NQgJmEKOhs1FXqKTeDToHtlinVqCbHcCeVmPxd6ctcqXKkN7pKuE0D4wAuiCAmsmHG7tHVuWAsJ7NDJLN+e1VTdc6aaSgt9Cvl/KIGHaBf9zTCTLwhIBbmupA== X-MS-TrafficTypeDiagnostic: BN3PR03MB2353: X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2353; 31:h/K+IBT329ToOcva9q2mHkqlkVm1qRReSOsJbJGmQmyBsve6czrm4xvNwZ45Md69Z59ASJCwJWhd7cHm0+/eXbYpQnkIOEqZY7Bd0lNpC0HU2liCvR365lrxrweGaIEIFLU4w+4bUibd42YbJTnR1mkuMS8oTEwqL4l0h8fkK6ichfzVJiMmrMNxO147KROE3ZGc5EucflGW7d62DiZN64HlEeUaAyBIeqYQ6RFmMnw=; 4:Z3ohISblvhd1FN4ZLsjH/TgcT6TkwstKVwHFpDOCfXPbiuGMWjhLJ/GcU/dmRJpM+mcs9z0Np+PcvdjofgkJgU4NyBh7POmsrcfW8x0Od3x7j9hGntjW/JStGEjfIx+Y6Clc8sKEq/pZIwqicjhAvbYR2ACKKwjcy0MH4KMZ5rLfB2qDnPjM1Nawfog+lTq23Vqh9jf2KT3waz+x82ygJ7dm5JKxaVmO09IHL8fSEEsmognFaGCl6sGjBGrZdRG+o0kqnfnkkPK/x0HY5Tn9n4ErVGnJMXHETilR2nHEc7u9pBaKQmiauu6Dhgf1GFO53wJ8OIfLZrbo/78knxiUwEkXHg1rb3ePslj+i2wdcEw= 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)(5005006)(8121501046)(100000703101)(100105400095)(93006095)(93001095)(3231022)(10201501046)(3002001)(6055026)(6096035)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123556025)(20161123565025)(20161123563025)(20161123561025)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR03MB2353; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR03MB2353; X-Forefront-PRVS: 049897979A X-Microsoft-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7YdjiRyNfpHwhtCJyBfTZwGIWlb2d3Qp0OCxGzvFIXRhnJDnr2GYA=; 7:2ch6Pl7zmTy5TgYLl8PsYyYnxrGIF8JHH1GD3XlC28Px+TapEaznSUSmLaJuy21RAw5SusOtZBDjCScUPrGvksk4GaDRoaDy5FYveRvoKbdWe8qtz6mcvxembxLUZV9jy8UsMkcqImhlgtPR9G+c5glfBLLMXoIki2PErGMFXP/3d7eGRmOmuZHbGd1hGLZGyWJiA7XLHN/ffiJuZ78oTZvLBpNDisEqPGcFZ4K/ldnywgUiYY9CctXlBEd7On7+ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2017 05:08:25.2463 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a8f4006e-97b4-4de8-afa2-08d5309de818 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: BN3PR03MB2353 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171120_210855_244540_F367DE68 X-CRM114-Status: GOOD ( 11.47 ) 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 u16 type and "mc_portal_size" is u32 type. This patches changes mc_io->portal_size from u16 to u32 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;