Received: by 10.213.65.68 with SMTP id h4csp82780imn; Thu, 15 Mar 2018 10:11:44 -0700 (PDT) X-Google-Smtp-Source: AG47ELvFFTBmpxTOkELsbjhpiVuQ/PqHUzeJiSb23xQwivghW+U6OckQLeV0dHJAX+IIXqfCFIwE X-Received: by 10.101.88.4 with SMTP id g4mr5916557pgr.146.1521133904493; Thu, 15 Mar 2018 10:11:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521133904; cv=none; d=google.com; s=arc-20160816; b=ippRtmy72EUb0NSCpeFv33LF8aTrp9IaB18RP+0Ln0vx/d5H9RbDpToIwgk/1VKdtm dTEy2D50HMZlCqlCL4+rJjYNhHxEtZuPoc4+jwhVnamCxxmGLK4izlT2B685h05bKW42 7laJtv9zNWSakriI3AlQr6Ebt0zsmAaoLP9LUKYEodpXRaA50tV31S35leM79dhRlgNH YDQdM0B5BbCs6sqI4zc0Pi64DP8IOHZMM3BcSvbbgSEvtkgshOBnrZrpFsnTIMzVNDj2 on/JhsainW2kppafBLeldfiYZJvG8J8afNNALuFIiQjRb2mx0sTUpKeWgwQZXVRThh2O y4cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=QAosbfLbod+jrSMcsNBDcNHNANBsW0lV/UXQZkZR5/g=; b=aj9ApymQ3SVd1qx6DzGlSegu3Co//x3hOtWAdlQSrf0MZu0bblexwmTqGtQmzFMgO6 /Xb8pQhjsdJtvX+3E8eTRSSeMT/6veDo1UsdYxVL+NMMm9mZ8Y2ZSNhoT5P0+frqnCcr Ziqdqb3J0fc6eboGmJU+ECL5SFhIUZyrGW7oA7Zqyqfineq10vsaJvNMsNZMrfLPd/Oa RV3BCfhHqAVDC7ifA2ukHaNrYSM2LZvtUZTqEV8Cz31t4OsHBVKZztTwfPpK4Y4pJ5l0 8p+Va9q4vHRudCLRqSv3ctCRfUTjvOAN4zkdA2z0/tEWQrKuiwHi0EyckfiGK8mg4QZ9 m6Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=lQmyCeaA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u12si3733570pgb.180.2018.03.15.10.11.29; Thu, 15 Mar 2018 10:11:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=lQmyCeaA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752414AbeCORKI (ORCPT + 99 others); Thu, 15 Mar 2018 13:10:08 -0400 Received: from mail-db5eur01on0060.outbound.protection.outlook.com ([104.47.2.60]:56800 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752079AbeCORGQ (ORCPT ); Thu, 15 Mar 2018 13:06:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=QAosbfLbod+jrSMcsNBDcNHNANBsW0lV/UXQZkZR5/g=; b=lQmyCeaA4ZmJqozl+HMMT9OwU/QVZuWQW4D5GVp3awJXwaI+2NRA0FaghHxME/a3E9kpSs8TIIUdXEUDPHWuJoG1RR9v2Wgo/tKdDbsqgineVNo8L8CnyeN2Mf5cR7YTzyjPO33+4zdrxxmcklL07YjfqfeefGqX5uyouXvcub8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ioana.ciornei@nxp.com; Received: from rhuath.am.freescale.net (192.88.168.1) by DB6PR04MB3206.eurprd04.prod.outlook.com (2603:10a6:6:6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.14; Thu, 15 Mar 2018 17:06:11 +0000 From: Ioana Ciornei To: gregkh@linuxfoundation.org, laurentiu.tudor@nxp.com Cc: linux-kernel@vger.kernel.org, stuyoder@gmail.com, ruxandra.radulescu@nxp.com, razvan.stefanescu@nxp.com, Roy.Pledge@nxp.com, arnd@arndb.de, Ioana Ciornei Subject: [PATCH v2 3/6] bus: fsl-mc: add fsl_mc_allocator cleanup function Date: Thu, 15 Mar 2018 12:05:33 -0500 Message-Id: X-Mailer: git-send-email 2.8.3 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.88.168.1] X-ClientProxiedBy: MWHPR15CA0039.namprd15.prod.outlook.com (2603:10b6:300:ad::25) To DB6PR04MB3206.eurprd04.prod.outlook.com (2603:10a6:6:6::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b3444828-71b1-431c-8b74-08d58a970f02 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:DB6PR04MB3206; X-Microsoft-Exchange-Diagnostics: 1;DB6PR04MB3206;3:H9GlM/jkKeVTcFM2W7+AgTUVCFXtFEQJr2q1JPN5Po1Hu2LKP3jYiA9JTOmDYs2HfWlg4QI0hcFYsK2eLwsvHhRmf7bSQgTDDVv5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DnSFW6YHUuXU0dBljLRF0XA+0HPhcbvK7WA0xken72lqE783xmOsijFUxItnXwyHFAwEKxYgcIBJWpUmDP3W+vomNsPYit3dvEp2DSnhfdcTxZ5GFiT57rYPY0JNWsJSP41jmS2oRw57n5svWPqLqCIFL33rYZAtyKtoom6GJwQjMySkuaUvEd4+enGjGZzxh464fCERu+LUAtJGAciMJItAqoJt93HzZ6aEiWh;4:ia0LT576xkMmT4XOP+a750tCflAQomdL6eT3wUTjvBw7YAwXOue5YI0ja7obSeJJpEhehKgG32QsVeEEc/Lm6JRPNyO01qYjpC4VFooy6bdiWATTQ0iIfVo8sTvrDe7ZqDHlIKDWczqqpLL54mIN18iwphp+dbKt0E03QZFxDVOaS7mP10B5xCc3o0dL0JXJiQU2xRavq8MN/j7B77lcB1u5ysopFofg/DkzuWa76lzyDEkIl2JdR8AhYDOBZ2T+CBI8kA1h4wfUNLSRnnmvV/ycvcgCSfjDhJPnR5fvk42GnHr1wUPQYQEOt4GhLzF2 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501244)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DB6PR04MB3206;BCL:0;PCL:0;RULEID:;SRVR:DB6PR04MB3206; X-Forefront-PRVS: 0612E553B4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(376002)(396003)(39380400002)(346002)(366004)(39860400002)(189003)(199004)(7736002)(105586002)(81156014)(6486002)(50466002)(68736007)(3846002)(47776003)(66066001)(50226002)(6512007)(305945005)(6116002)(36756003)(118296001)(48376002)(8676002)(53936002)(8936002)(5660300001)(478600001)(186003)(97736004)(16526019)(316002)(86362001)(25786009)(106356001)(39060400002)(81166006)(6666003)(26005)(6636002)(4326008)(52116002)(386003)(2950100002)(51416003)(6506007)(76176011)(2906002)(16586007);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR04MB3206;H:rhuath.am.freescale.net;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DB6PR04MB3206;23:J6pW/00mV0y4e4HpfpEzDWU2C3+9KQKxTc7N9CR6O?= =?us-ascii?Q?qLCyk3Pbo2N7fytRGBurZBlSI7foI3Kz2xSNfcmujF1RM8A0hUZhodMHkNE4?= =?us-ascii?Q?KdGaBHzCt7VW3OZeqgRgkfYC8hErK5drsBPJZPgP1Wnq43auTUO5T63mFdoB?= =?us-ascii?Q?arOpVzKYBenI9PtxVIhR6wds3Vdnz1ASQCX/zZu9D4MouXU5hhnFXGHNX+lp?= =?us-ascii?Q?jhJpB7nEA8utPrsxNJ3NwAyoKAG4h8uYDdRKNG2E92pKjOl5rAtVZs8Be7Er?= =?us-ascii?Q?UccLC9AXDWTIH0iObvR9lbfWrXJXK/0oMeR0Pc454/aAWzO4wCw9AmLdB0+D?= =?us-ascii?Q?CWtDNf4QvAEu1gdpsfA2GgFkDx3tuWddJCfoeBHD4xT7PwzXLwWgCyXadzXp?= =?us-ascii?Q?BWh6eumklIrDKJzjpl3hSh9/n/eZlr9wC6+v/t8oEeDD0c6b9fEgz5b8QQo/?= =?us-ascii?Q?bNr6PZTHAjcZ/HHEyhfF7I3lCpzcBiadwae7q+65MAGgXFzdHO2cURPnmFa8?= =?us-ascii?Q?CmEDcwnAcH+0fqcFEi+Y7J8ZVdby+GT2XoM7Ns5Fkv7WTZ3aelELSw9AXRhN?= =?us-ascii?Q?T8g6bekRKJK4bkiVvF/aQNcK59qoktxqfIcIAmmtGyIFy363fYMMI5CrAJsW?= =?us-ascii?Q?aq7XUWHjS2+04toVleUQp79j3hUedBUOJ11lkWwtLgIk1UJFC2SBUh7qKyeZ?= =?us-ascii?Q?ciD1QEmdd0j9joq8gjIgmD/ZfiE+8jA0I6RTW2u6eK37QuJohxxMhi13Rh0+?= =?us-ascii?Q?Z7dznFP3Zt+BW/zs+e+pFN8a2rbmQzyLBDCmpHaOCgC1/6yzKnERH9jgSVDw?= =?us-ascii?Q?EI+aTai5szWR0Elxd8KOv7AIm4hH/HlCDk4FYu8BzfdNwdt0XqO/y6TqySi1?= =?us-ascii?Q?0IG+qON862N8w2cQ3oVXiW0ynwAc44BeRWr06rLNZ0gB77W0riH5hecc/eYx?= =?us-ascii?Q?2RxJOh/CgucE6d8JnJ3RJhUaLGnAwjtzU6hVKAFS1IYUoXm4iswRRtc0HkD/?= =?us-ascii?Q?H22XymY8KEFZNqkiUN3SI25E72SuR+ojAEq1Gie/a26W40iXUUKkzt+FM7qh?= =?us-ascii?Q?MSMXvdg9FKWV73okx+5Dzty0kC3fh4UOD3b5uxYdU68ALBMyisI2O8hiVYm/?= =?us-ascii?Q?h5jrnoci8B0glgzXQ/L1aiW3p6D/fH8?= X-Microsoft-Antispam-Message-Info: BUEeilgiEGPMBQWQNMZOVtKR+4bDWTD2L38Cv5mHuRMG0InGFj8i6fmO7eNqEJqaVp9eb/+VH936PBaspCccrnIknmpElZHYPeXQW4iCLuz3eH16jpudXhDUF2MbKqPENNJsbc5TDd0FWto5LVaIKL20ZWxmlAhfxlCRcgZqJNMijcrYrBFRx5gw1d6F3Nr0 X-Microsoft-Exchange-Diagnostics: 1;DB6PR04MB3206;6:riFiAKM21vrOds0eUIaBe2ALTK8EInS8ZPEs4cE8nraexWnRg5f0Wzy33Rp3JxL4ChZ+t9dHI7Fs526Hfx4F8kT01YzhW6DaB3UG9ffkEuB0U4joJr0IfL9sruanWdZhlw/np+++CTBy/XhrQhZAfnVmX6SYIwsV3nBLB5gFoVkDxSEemjjvc3lOVlEKLtf6WG1qHzWkeYNbosl/tghLBfhpJCnmoIdN0uXQymPkeRkypp7RtbySrOr9HXg8IvZFvCJzOWTo+eIytHveU8Lmc5p+7n8tCeOiHOpesfrCo+yI24JeLFvRzu2X7grto+TnD+1FWWhuU16jNnHXetF/UYNqFMOdYvk7XX5ToLJba74=;5:ckPuHObGgiMxcBt1bbLwZu4lHJMkTX+Sg9G4UaHv3DcR0NoWZkymfNyHqkiCoF99fTawOtwzr1o/Fo4lrhT8qlWtgyRWbD31o8+hw4py7bUbDYVmJkwvw5Iz9YZNSn+ySyhnb1UaRTWQ1hqmy2FYBUELpp7W7hJXVoHVsA2Nfcg=;24:QTiVv24WAxFWe3P/2ngPt1F25X99DyPj0A/hawPNh/C58aAD7NhQEDprwIAZX5YRKtfJUTsDoD/JjRBUc2p19bAYR2lwuhEUNLAGsOre8uM=;7:2Vny7UA8vuBCKv77q2CHiXyCllL5gAL3fjaRVLgsqtHzwunitGqEyaSg3HoDVhhiSDeaUT3uxn1mL5RX2aB0MiIhMshMDgSdlFRTCJp2bzxC/+uyTys5myL7FXC4zuRSkDYwf8vRpFd+qCK86IOnbXWq+TM4i9tD0f/xCKWlW8/AxFkNTySm7rqyj7fAPnh3EEtDUnbxL9Mr/g0VQ/W7owXaeOdVStv0IZ67Dz3eShB6WzrMvO7T9LJSGS2z611R SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2018 17:06:11.6343 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b3444828-71b1-431c-8b74-08d58a970f02 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3206 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The userspace support for fsl-mc requires a fsl_mc_allocator cleanup function. Add the needed function. Signed-off-by: Ioana Ciornei --- Changes in v2: - added the patch itself drivers/bus/fsl-mc/fsl-mc-allocator.c | 5 +++++ drivers/bus/fsl-mc/fsl-mc-private.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/drivers/bus/fsl-mc/fsl-mc-allocator.c b/drivers/bus/fsl-mc/fsl-mc-allocator.c index 452c5d7..fb1442b 100644 --- a/drivers/bus/fsl-mc/fsl-mc-allocator.c +++ b/drivers/bus/fsl-mc/fsl-mc-allocator.c @@ -646,3 +646,8 @@ int __init fsl_mc_allocator_driver_init(void) { return fsl_mc_driver_register(&fsl_mc_allocator_driver); } + +void fsl_mc_allocator_driver_exit(void) +{ + fsl_mc_driver_unregister(&fsl_mc_allocator_driver); +} diff --git a/drivers/bus/fsl-mc/fsl-mc-private.h b/drivers/bus/fsl-mc/fsl-mc-private.h index 52c069d..ea11b4f 100644 --- a/drivers/bus/fsl-mc/fsl-mc-private.h +++ b/drivers/bus/fsl-mc/fsl-mc-private.h @@ -525,6 +525,8 @@ int __must_check fsl_mc_device_add(struct fsl_mc_obj_desc *obj_desc, int __init fsl_mc_allocator_driver_init(void); +void fsl_mc_allocator_driver_exit(void); + void fsl_mc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev); void fsl_mc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev); -- 1.9.1