From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0077.outbound.protection.outlook.com [104.47.38.77]) by dpdk.org (Postfix) with ESMTP id 37D432BA9 for ; Thu, 28 Sep 2017 16:00:01 +0200 (CEST) Received: from BN3PR03CA0077.namprd03.prod.outlook.com (10.167.1.165) 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.77.7; Thu, 28 Sep 2017 13:59:59 +0000 Received: from BN1AFFO11FD015.protection.gbl (2a01:111:f400:7c10::101) by BN3PR03CA0077.outlook.office365.com (2a01:111:e400:7a4d::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10 via Frontend Transport; Thu, 28 Sep 2017 14:00:00 +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 BN1AFFO11FD015.mail.protection.outlook.com (10.58.52.75) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.56.11 via Frontend Transport; Thu, 28 Sep 2017 13:59:59 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v8SDxuAR009285; Thu, 28 Sep 2017 06:59:57 -0700 From: Shreyansh Jain To: CC: , Shreyansh Jain Date: Thu, 28 Sep 2017 19:40:44 +0530 Message-ID: <20170928141045.21762-1-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170928123000.1711-1-shreyansh.jain@nxp.com> References: <20170928123000.1711-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131510807994152888; (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)(39380400002)(376002)(39860400002)(346002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(2906002)(81166006)(50986999)(305945005)(68736007)(5660300001)(81156014)(4326008)(8676002)(86362001)(53936002)(105606002)(76176999)(575784001)(356003)(50466002)(48376002)(97736004)(77096006)(36756003)(104016004)(6666003)(47776003)(50226002)(54906003)(33646002)(8936002)(1076002)(316002)(8656003)(2351001)(2950100002)(16586007)(106466001)(6916009)(498600001)(189998001)(85426001)(5003940100001); 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; BN1AFFO11FD015; 1:aaevb8xNIXoZOMExMZeTwxPh/v2HydA3r+1ThD0/noYqH5su5SRzz43DdYooMLafn0m4HkCsxCOdIgUpAdQx0gj4KFleEXlnz88OVslbxrDDjRnf8rBtpbAaj38I//E2 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2f06d135-cf19-489d-5659-08d506793512 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017052603199)(201703131430075)(201703131517081); SRVR:BN6PR03MB2692; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2692; 3:0TqzcP2M89rljiLYwtAhEwxsWUYlh949MoDQgd3l2UV/iYvk0zd0NtBki2ZnAat8358maZTdRoNI3seiGhdLbKrEXl4NSoaLZT3odnCtvt4a/E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kw1zrQ7NlFjPbl7RO0+1zN/2TEoApm/eEPKpeXiKrODvGletv1kSrXP4B7li1yZbxHTJ8wcnx9E0yleF6NH4u89AnytfGhtXVzTzUmCgGdKZh6Cu0NhRtprdy+l2HQKI5U= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123559100)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123561025)(20161123563025)(20161123556025)(20161123565025)(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: 0444EB1997 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2692; 23:Gjq18bKpbNpAX6Y97gccs/Ki2d9n2WUiptHacIGDW?= =?us-ascii?Q?2zEGbNl2GCDVDIu+vrubCrp951/iFLsSwTdXjwphUH3JAqXKYWsR+GmHKuCT?= =?us-ascii?Q?0VShuOmKjyZvQSFmTm5PVne+hI01750S/JrwAue6tw2hhOiWdEvz6YIrCij8?= =?us-ascii?Q?tXHP7qtXHROAA3g6I1s+5OyuuDVc7h/f/UZj2wuXV4Ed8oI3DYJz2jotcVqI?= =?us-ascii?Q?skpzlglliVD3tVXH/wyLI3YCjK0d91SMQKn2r1DTpxb4ft2ScUxNkM1/+UZF?= =?us-ascii?Q?P3c6pEtiIvH7BOrSDIGjll0VPOq3j8xWwQ9NX7pIFX8ckDio00gzdJfonG3U?= =?us-ascii?Q?3GnJFR0JYMxZYavRRi1cia/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D?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2692; 6:/A65lYTEaRZU0+wdbt5MWBtGnd6sIEWtZnAunTug4Ii7OePQUEKpfZTrMPXqlpcQ7+wVS/MS//M5jWGefC7yljW0ld9zhiPKqqxsqiaZParrY9NPbS/vdk6Nv8M9B+GWweGohCGsKlFD31VuaD2JIR5b+028H55zuhUuqUrqt0cxB4vaXBC4TbF917MPdtpcfoUOOV2zskSVD6ZGkUU8I2MvELsXJmdDSJdhWlzfgYK2o5aLkNoqzz8gCl2QChM/dgsfMDlpIRQlbfUcfwfxl4I62Z304+Tae2CDNfU0ImzVtaURM8cJaEO6IdXLFQLe0GlUGZbvg9Y5bytTDsqIIA==; 5:/7YzTOGBcGOjUrqB48FBunzvC5/sRvEq+LYBVvFKX1uazEcYUz0eXS88LEZEwxxCSdJ5FXq/GfNEG2wlwzVtjvBX7O5xxsctj2cAq9htg3VMEglqitVNT7u8WqjdepAlu5acG+nDc3zOz7PlmcEOGw==; 24:voGo8PbTANF4JDlIHNl5hKtivQqQuO+t0MACeUL4JT9aAqKsXaJCDqKplskVkZXNmrDPbjiTG8yQtMAr/y5S5AM3H4N2CM49NLKTFp3jFFk=; 7:LyVc/9F1yPs9db5xOTLfFlWhbnyltF4bYQxUyKZ0AZNeIgpNjrhccnT12YyBS0oloFMGc5VJKfxYAh+MeSb78L+//ZutunfpVTydNJVLx/zTrIoH2IUT98IJsJi0dQH5kG8g9UT+054TKpnpSUiAJAAhmfRCxysd1cNm6G9xkOdvObDvunDtrckmDd13DsmjfVCd7sWSZkD5QxeLDT5w2/sweFm+f/U2X/iONwYEcds= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2017 13:59:59.2280 (UTC) 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 Subject: [dpdk-dev] [PATCH 1/2] bus/dpaa: fix incorrect ccsr mem allocation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2017 14:00:02 -0000 Fixes: 5ad2d123be48 "(bus/dpaa: introducing FMan configurations)" Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/base/fman/fman.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/bus/dpaa/base/fman/fman.c b/drivers/bus/dpaa/base/fman/fman.c index 2c6029e..d0a8ee4 100644 --- a/drivers/bus/dpaa/base/fman/fman.c +++ b/drivers/bus/dpaa/base/fman/fman.c @@ -242,11 +242,11 @@ fman_if_init(const struct device_node *dpa_node) if (!phys_addr) { FMAN_ERR(-EINVAL, "of_translate_address(%s, %p)\n", mname, regs_addr); - __if->ccsr_map = mmap(NULL, __if->regs_size, - PROT_READ | PROT_WRITE, MAP_SHARED, - fman_ccsr_map_fd, phys_addr); goto err; } + __if->ccsr_map = mmap(NULL, __if->regs_size, + PROT_READ | PROT_WRITE, MAP_SHARED, + fman_ccsr_map_fd, phys_addr); if (__if->ccsr_map == MAP_FAILED) { FMAN_ERR(-errno, "mmap(0x%"PRIx64")\n", phys_addr); goto err; -- 2.9.3