Message ID | 20170207154353.20691-2-laurentiu.tudor@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 5875E6047A for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Feb 2017 15:45:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 496AB27CEA for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Feb 2017 15:45:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E20B28441; Tue, 7 Feb 2017 15:45:46 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00 autolearn=unavailable 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 CA9D527CEA for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Feb 2017 15:45:45 +0000 (UTC) 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 1cb7xY-0007bc-LT; Tue, 07 Feb 2017 15:45:36 +0000 Received: from mail-bn3nam01on0064.outbound.protection.outlook.com ([104.47.33.64] helo=NAM01-BN3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cb7wc-0005CY-Ss for linux-arm-kernel@lists.infradead.org; Tue, 07 Feb 2017 15:44:42 +0000 Received: from BY2PR03CA041.namprd03.prod.outlook.com (10.141.249.14) by CY1PR0301MB0730.namprd03.prod.outlook.com (10.160.159.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.12; Tue, 7 Feb 2017 15:44:08 +0000 Received: from BY2FFO11FD026.protection.gbl (2a01:111:f400:7c0c::129) by BY2PR03CA041.outlook.office365.com (2a01:111:e400:2c5d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.12 via Frontend Transport; Tue, 7 Feb 2017 15:44:08 +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; nxp.com; dkim=none (message not signed) header.d=none; 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 BY2FFO11FD026.mail.protection.outlook.com (10.1.15.215) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.888.7 via Frontend Transport; Tue, 7 Feb 2017 15:44:07 +0000 Received: from rhuath.am.freescale.net (rhuath.am.freescale.net [10.81.117.102]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v17Fi5WD029897; Tue, 7 Feb 2017 08:44:07 -0700 From: <laurentiu.tudor@nxp.com> To: <gregkh@linuxfoundation.org> Subject: [PATCH v3 01/10] staging: fsl-mc: drop root dprc counting Date: Tue, 7 Feb 2017 09:43:44 -0600 Message-ID: <20170207154353.20691-2-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170207154353.20691-1-laurentiu.tudor@nxp.com> References: <20170207154353.20691-1-laurentiu.tudor@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131309558480010273; (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)(7916002)(336005)(39400400002)(39410400002)(39850400002)(39840400002)(39450400003)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(38730400002)(76176999)(85426001)(53936002)(50986999)(48376002)(8936002)(1076002)(5660300001)(50466002)(105606002)(36756003)(106466001)(97736004)(110136004)(305945005)(77096006)(2351001)(6916009)(8656002)(54906002)(189998001)(104016004)(8676002)(5003940100001)(86362001)(86152003)(356003)(2876002)(47776003)(7416002)(50226002)(2906002)(626004)(81156014)(81166006)(6666003)(2950100002)(92566002)(4326007)(68736007)(33646002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0730; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD026; 1:xjqv/ALkWRXt8cRx4+sB5WrUpwoJK3SzVkkXXpzexm/Urb7tPOxZYB7qKGn0qG+WMjnPtHNxHba7oNdVVF7ne3djCMsRGiMuN3AyzAKBAKULqQ6PxU3T3er+burGnFbJQwXVcbxspPbHthwBusPLR2ALHMPhCtjTSmmzZ7MJmvl2pW0m4O6rg0oGIbFTl8yiwEDwmEoDZljY6cPE67o02RrNuHej2oRTbu+DgyvvncoJLVZqFTm+v9NfX3WlBEzAX3jhJr/yAyjtpTHDYR+xXJcURBNsExO4kOlA6d28aat5wbGRG8iBzzwmJXJbh1qyQRlz/QPW13f65rn3lxfcml4DyvN9e2UPw4y2yg1e7yGwa85F9ZqSBe6o2XQHb/DPqQw5F3K0Rjnp0gC5Tge3uuu+VPt0Hmhc5h4Rz4ulRbueANxSoVxr2Y7ntRUlLdvqJbQSWAxMEjcQR/Q3D9eAKMgydY8S14RfxO3wpGJ28DvnvaYZdEj9GGuWWL/HwNGc0CYwJ+b+T1J7w3rx6nMLecJtadKG9vayb823Md0oByScoPRYC1LXoTdC1YUSDpgztLPWNx6HfSMVmMcoGCV7LPAPvkuQCR1InAQ+ETuoNDwJWZ4YHP+Pbm4vpcl53G73RIvG6yewX9IFgROP6j4gtZ7/TMoLPPyJP8wXSxC4qlcVTRGCU0ecJov57iqKTuNSOLZBup9isllOkRQND+KcX4pEok4WXVwlPJhdmZdSdFWW/8x2GQbuAk0f6RvvJOLcrCtPeHRd/d+HT6P8Iakh/A== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 5f49cd18-80d4-4234-7c21-08d44f702747 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR0301MB0730; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0730; 3:1U7AlXfrP5IgvmAIJMBlkKgyfKF9uUesoKqZRtfINXANW0UxEEo2jxMI4zOlNu1Gw8wG7QJlSsaWJi201RrvQv5BcQp0GB0vf+CeHMQq+ir/b939UnxLmFQ7BImENGpbeImHQatQXBI8oKfObMmIUlqD52x1XjqLUMo9KHyIHjbnAj9PGgDaUuqXcVV8htY3h1qmN8Hes2zlXelcuX+vGL+Xod1B80gDE3qHtG9FazVQa7IkNsifPl5MjPMvsn6ktBrGsmoAtBmqkCxtUqZKydWC5tkGXnwDLANHh89LfouTHqyNTvnAFxaBo/uQw7U7HhQeK/N2j3NbQ7sZLQgnGzRLlli7fS7rGmEduIoAoIHITO6Yo/18lUl3ghHCa8tF; 25:KV0k5PDA361urKvsHjmoHciDPNyIKaqJGSCjJc/jNICbpKpNu4ZJbCG/qkZBCf8kdJBNeymEYt4DD0LHbAnmQTMpAY+XbVmATYcsTueM6R05swM3gc609ikXiU3cTnsCyCrx30xC9TlKbsmWDGBcqjGytf/qlT2VXopUTT/Yn/v8vgTsuQcehQJwjuadoHyIzXp0HIsBu6NRXOhBMdPm/emHrBtw+/fNHKKkczGdw9SaZ0SunZpyyYRBVNwp/0kqqgqZ0Fl/kmyn5a3VKnivocjX8tGQBu/BpakjWRNZjh7BXFnKbUmPdm81yrbV6T72EEVvIfkHg494hBGGFgo7CrKx3ly/z7+C2JWu85p3zYKidmNJpZG51qaW1oUmpdyzDy+0OOhWH0H6FDCLbANpgIECTpb3+sRDaJU3AS3TtLn5E/dkRa5HQq5HyBEUJROH8vHTVrpqc+SFbyPe2ag/gQ== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0730; 31:muET8dZlyZ52oUZcVzx2aniVDT5y5oVZFsaoCboM0AvtRfay7Bpfu2nKciIWGRWv6lnp25cfw98jNtRnHuJCmTAoffnHAAPYB8aJElRyM0iQZq8cMa2kIIG5iU1r0hkGPoWNv6uGBVEwQX6UmgEJxyNEefvmglB2flDeL3ZsaWolhVJRpPBfbEZjNwYGaO+FFCy90NH+wtlXcvTiVawIfvewkb4XMAttpnwWpkcXQv+wYcUB1snnUHLypUvnihVj7EE6H96mO2hV9Q9TKCJSPw7XcUR9g5lge6BCALjyF2g= X-Microsoft-Antispam-PRVS: <CY1PR0301MB0730D11D8B465C3598B4F5B2EC430@CY1PR0301MB0730.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(5005006)(13023025)(2017020603029)(13015025)(13024025)(13018025)(8121501046)(13017025)(20170203043)(10201501046)(3002001)(6055026)(6096035)(20161123556025)(20161123563025)(20161123559025)(20161123561025)(20161123565025); SRVR:CY1PR0301MB0730; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0730; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0730; 4:SIjXzoBhf1DcoCRkh/07h1/uHnyktdfr8hOrT6xCn6bBpKHItNN1a+9pVIvMTXZuhruWXUZKeWeswLaYbK6B5FeqdHEWSM3+lVSWzDxV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yHO85LmC5yIXMHnS/6VeQBrY5tfFO9BW8VLFCyPA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0730; 7:QI/vGIXOe/9eqh5BE0t5f62Uqz/QXvE5CmgDgj1ZX3KJVZ3QEuWio7a8vDDUmZKaQvn9KuBIIGAOPQor7IbMkWDbwZV+veFgHYUOQFhUAcwBlpniXjpfnBxIMiKcIzIf9Fl+XFb4SH7Z1vArbL/6Z3L558FuwaIaGXJ3C7G/3iseRVtTUyHtFnYjGdD12dF5mC5EnIiH/hOHzc5RYeFlpOwyozlBa/xW/YewXJu6DN68AeT12z7fQqkyD/uun27bXBPH9VBEX+InFUslTwT6q2LB+44fwljdSNd/r8d/5cJhdWk0YE9UTRHOi/D9ggZ4Bs2p20lY+/4boDA3pmJF5Xt5LasTz9lYRvBVUZXBX8AlES4dVqItv0ltfdM0d+W13T8DP6Dv3s+OVBcXPdaZArrPJFfJuJwelkkeqi5DKzLgxDde9Q4bKsOz6H87eAg+MovA5n+TcghTEL2sa4c9xbliblxnKXUxP2uh8qO/Kw2rSd+h/gh/ieKBYPYJxjOE4R7Elf0uQQL6SnWkZfaFag== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2017 15:44:07.7982 (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: CY1PR0301MB0730 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170207_074439_447757_E3301036 X-CRM114-Status: GOOD ( 13.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: devel@driverdev.osuosl.org, arnd@arndb.de, ruxandra.radulescu@nxp.com, roy.pledge@nxp.com, linux-kernel@vger.kernel.org, agraf@suse.de, catalin.horghidan@nxp.com, linux-arm-kernel@lists.infradead.org, ioana.ciornei@nxp.com, leoyang.li@nxp.com, bharat.bhushan@nxp.com, stuart.yoder@nxp.com, Laurentiu Tudor <laurentiu.tudor@nxp.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c index 5ac373c..cc20dc4 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c @@ -77,9 +77,6 @@ static int fsl_mc_bus_match(struct device *dev, struct device_driver *drv) struct fsl_mc_driver *mc_drv = to_fsl_mc_driver(drv); bool found = false; - if (WARN_ON(!fsl_mc_bus_exists())) - goto out; - if (!mc_drv->match_id_table) goto out; @@ -149,8 +146,6 @@ struct bus_type fsl_mc_bus_type = { }; EXPORT_SYMBOL_GPL(fsl_mc_bus_type); -static atomic_t root_dprc_count = ATOMIC_INIT(0); - static int fsl_mc_driver_probe(struct device *dev) { struct fsl_mc_driver *mc_drv; @@ -246,15 +241,6 @@ void fsl_mc_driver_unregister(struct fsl_mc_driver *mc_driver) EXPORT_SYMBOL_GPL(fsl_mc_driver_unregister); /** - * fsl_mc_bus_exists - check if a root dprc exists - */ -bool fsl_mc_bus_exists(void) -{ - return atomic_read(&root_dprc_count) > 0; -} -EXPORT_SYMBOL_GPL(fsl_mc_bus_exists); - -/** * fsl_mc_get_root_dprc - function to traverse to the root dprc */ void fsl_mc_get_root_dprc(struct device *dev, @@ -506,8 +492,6 @@ int fsl_mc_device_add(struct dprc_obj_desc *obj_desc, } mc_io2 = mc_io; - - atomic_inc(&root_dprc_count); } error = get_dprc_icid(mc_io2, obj_desc->id, &mc_dev->icid); @@ -588,17 +572,9 @@ void fsl_mc_device_remove(struct fsl_mc_device *mc_dev) device_del(&mc_dev->dev); put_device(&mc_dev->dev); - if (strcmp(mc_dev->obj_desc.type, "dprc") == 0) { + if (strcmp(mc_dev->obj_desc.type, "dprc") == 0) mc_bus = to_fsl_mc_bus(mc_dev); - if (fsl_mc_is_root_dprc(&mc_dev->dev)) { - if (atomic_read(&root_dprc_count) > 0) - atomic_dec(&root_dprc_count); - else - WARN_ON(1); - } - } - if (mc_bus) devm_kfree(mc_dev->dev.parent, mc_bus); else