Received: by 10.213.65.68 with SMTP id h4csp386946imn; Fri, 23 Mar 2018 06:49:48 -0700 (PDT) X-Google-Smtp-Source: AG47ELt11ts6kf3EVtnjMKIdsoivL88XrgPPK8qkkApozqz9tQR9Xy07cbnm/6yxNUhGUrOPsN8C X-Received: by 10.98.93.20 with SMTP id r20mr168671pfb.53.1521812988284; Fri, 23 Mar 2018 06:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521812988; cv=none; d=google.com; s=arc-20160816; b=h1N/oSfcgIihw65CRFsWOTseYc3U87LvC6Au/TabQNio13tblErd/rMhIp61pTUEO/ hVQPro/g4sFHqW1hZYcX19YhWQSSHFDHrKPewTI04xFDFiUEVswO0DBsJZ4i31/Dc4B2 neUHgsLbseypqs7UCO2GpWePZBbftNswiW5bS/ciSGFJNh/Rw0iQuNqrkioYQAEa/3pw qQPENvGECJ6/Z8f9zYTAyxhaB0Dggjh1VcHnAiLU3jzoU8bPtUjTN0V19Ms4CIhAQlgi e7glgZp9bjXVgTNi7G1UNqN+K4OxZkHo+//xLpjsqfMbw7XVzEEBySNodDlfuHASw67i uNHQ== 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=RvekQVXTo9s3ww0IdSfkDYTmKW10ibeyDD9tvtR2BBc=; b=xm2QbKINDe5M8k6HJThH/UXMnxvXSVn8uECZEBv9ytXJAjhaeLg2/z1oF7qt62hSQg 7Vmud7nxlIKCX5GXfaKYMyLAdKQ1s57fp1RqPT//UiVuPFqV7At//0ksZw2LD7GFcNc5 Jdc8uB9KCZvbh4FzFgRi5gCkNwqqNSgLdqgdn0hlL/Yj/Af0hofS82sy4cDrKwA1mxQW nXQn+fbvwVW41cPMATs58sO9wCcIps7atfJkDBcTj69zi8TdVpKTmtoqaz3iNSvutd5D nDNFMHLoxdKd0JhwiOU77D5cDiemry2iKXhwt6iH613SoNg5hi6z+PMHedvGFQyyeruV rWDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=wgwRKWSO; 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 q3si3908999pgs.516.2018.03.23.06.49.32; Fri, 23 Mar 2018 06:49:48 -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=wgwRKWSO; 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 S1752873AbeCWNq6 (ORCPT + 99 others); Fri, 23 Mar 2018 09:46:58 -0400 Received: from mail-ve1eur01on0062.outbound.protection.outlook.com ([104.47.1.62]:10935 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752101AbeCWNoa (ORCPT ); Fri, 23 Mar 2018 09:44:30 -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=RvekQVXTo9s3ww0IdSfkDYTmKW10ibeyDD9tvtR2BBc=; b=wgwRKWSO3cRtSbf0DDVgpcZyhhFpmG0wzeBRyDsobV0JJeuEneYSnOe+TSfCB5DJ9JiRUN6EXekrOD88Sf5yHuyMAmSj7s+ahoaQmPGyVxhpuF+JtPMlkkCjl9KR0rhYOJ8W2+4fDQEKu9B4D/a4Frt+yzZKWV2eVxOE3b0LsxA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ruxandra.radulescu@nxp.com; Received: from rhuath.am.freescale.net (192.88.168.1) by AM5PR0402MB2690.eurprd04.prod.outlook.com (2603:10a6:203:97::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10; Fri, 23 Mar 2018 13:44:27 +0000 From: Ioana Radulescu To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/9] staging: fsl-dpaa2/eth: Use generic irq handler Date: Fri, 23 Mar 2018 08:44:05 -0500 Message-Id: <20180323134413.1532-2-ruxandra.radulescu@nxp.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180323134413.1532-1-ruxandra.radulescu@nxp.com> References: <20180323134413.1532-1-ruxandra.radulescu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.88.168.1] X-ClientProxiedBy: BN6PR05CA0014.namprd05.prod.outlook.com (2603:10b6:405:39::27) To AM5PR0402MB2690.eurprd04.prod.outlook.com (2603:10a6:203:97::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: a3fe1ddb-ca04-41cf-e13c-08d590c432b9 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:AM5PR0402MB2690; X-Microsoft-Exchange-Diagnostics: 1;AM5PR0402MB2690;3:9LbIu1WgdXryav4lAStN1M1afLrjZYvr3DEmF2uCJbYAmth8PsJ+5bhInL3FyppUTfXyzcsFkA/gdETKWdS2KtADwqN3GcD7JunEBAFu6a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0FR9HSXX0VEGbrrjnkWFHdsOYe3UUzbFTAcPlHkoa/tVwvOqCgXA90XDN8pWde3VJIDk3+INoi38gvjjvD848cLVpIiVldVOaPZDb/q+cBOnirl2CnOrWSITZ9/3MerV1+wpnbXqwChng1mH5iQj9boniPOuwsI+3WOUxdeC19L0Xxz5LFaUeaMAFcRDkMO35imsGYcMTEik9/VgF5GR3G6z7oyPDgdoPfghhybKnoLCsF+a84he0Qmz9T01OhogNajmbWsJHBRk;4:HIj6XUtZ45NAG3di2P8xC9dI88agD4sHY1UeDWGkeehUHIbKyRl05MlcyMQayA57Yd8vawytHym8BrRoQ/Wk8g+FxROmYXw8s536rL49+TUOjbTjfOXX/gh1GTQTCjkNMjmkysJ7DTBlVcYwP4TACffMGciexLW7Bs1L1F0qaxJ2ycIT/B2a/7BFCPERtnEWXdL5Jnz5P9r5wjFjTOIJ/zNzkWZPPIYpHTUC0qrrWWa/Jua844X2JtQowmWEDWeG69qbmbQM9JpSEGpFpLZ7tGbRrMnek8sfXPx3Pev09NNBD6EDlpHRozkL+/3KN3rR 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)(944501327)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041310)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011);SRVR:AM5PR0402MB2690;BCL:0;PCL:0;RULEID:;SRVR:AM5PR0402MB2690; X-Forefront-PRVS: 0620CADDF3 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(396003)(376002)(346002)(366004)(39380400002)(39860400002)(199004)(189003)(50466002)(25786009)(6512007)(6916009)(59450400001)(6666003)(7736002)(305945005)(5660300001)(386003)(6506007)(81156014)(6116002)(3846002)(8676002)(16526019)(51416003)(50226002)(1076002)(446003)(2906002)(36756003)(81166006)(76176011)(186003)(66066001)(86362001)(8936002)(52116002)(4326008)(316002)(53936002)(68736007)(47776003)(26005)(48376002)(2361001)(478600001)(6486002)(105586002)(2351001)(106356001)(97736004)(16586007)(11346002)(41533002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM5PR0402MB2690;H:rhuath.am.freescale.net;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX: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;AM5PR0402MB2690;23:BJkYVjq9ZULHeyezIHxRhI383LN0MvrXWVyAiHg?= =?us-ascii?Q?ApIZ2P4HndK7iZF7VVOWDviWRG+Efn9pAmdfBDCGPD49eGNglXqVY6QJWq7T?= =?us-ascii?Q?z13La//PXmIlzmfAQCBH2ETzUyW7dLUM9G7RoTEY8/Ml6MDnctZRz3kzJzn8?= =?us-ascii?Q?Dr2TKqj+sHQ6sCc+uIYP15P5+OijyQB+opdBgshoGIoM/ysJijnJ6gvoBWwq?= =?us-ascii?Q?HT+yw7ZjSLf3/scIhmKWY/CMuZOWGYAmERkxWmaGZgsEb98OE6kD8UQFWA6I?= =?us-ascii?Q?xO2eC3Vl4Iy/4FG3jPOM6oE8zrZ0mzRXdyFhq+a+x5yG+SV22pHJIeoLjQmp?= =?us-ascii?Q?V7QxZsSQvFD8snuyyFK3xtGuO66xeh1MKMSHQ4rg8MqXAZCYoOwovLSrCIts?= =?us-ascii?Q?+Kr1Bebr2zpLmwJ4OTos3bliwPury3BmL2FbzwkmGJaWf82lOJ+JFGCrQouw?= =?us-ascii?Q?+y7fbBlOqduEHsELbZJF/hopwGLD1KJz+0/qcfXckLCIl005sj/dpDCylozq?= =?us-ascii?Q?8AeWaUktxNAt1WINL3hr+KUx18Lae2n/fdNwIdlvG+l+6GrxupVw5e3Xw/kz?= =?us-ascii?Q?4UvhBb/q0I8WobBHXFGW3rVMBR6pTCOkcobNDB1XxNXPZ3QE68lsCEF1A5Dh?= =?us-ascii?Q?bqDngzO+5MWXmpHvhzMchvzog9lB+Mu5As9VfTYi6VHXK/5L0bJSpHS9mX53?= =?us-ascii?Q?Nzdm2lKwPu2sOaE4WTGZyKYiGciL236sgxcRCkNakBPJjj66I28tMLNMc0Lc?= =?us-ascii?Q?h/lWAvnUR1ENKTxWLDWEtcppGxB396/2//C3m4iT7mIjMqbSH76JTJn0UqUo?= =?us-ascii?Q?fZgpQx/Se3oLc+jR+cQnX3WdTk8vd21OOEO+2gOeTDokBc3MY6iyatekZUv8?= =?us-ascii?Q?rDciai2bL7qRnOAJ35NT2yXA7MeCKGJLyhfA9UYO8OGsKOfiTH2G4MHwC4PR?= =?us-ascii?Q?d8t496IcAK7cuNTv0nBjYIN2ie2u5ISzQtdUOTCldWyUCjMdOYgk+9ND8wl5?= =?us-ascii?Q?iKRqYT+fXebtohzCoHfZqkD/8M6YvyjwChD0sCjgN6NOlppC/WiDYCAylkjx?= =?us-ascii?Q?dqL4RP3y+nUEHdKZaibv2Y8kqtXK4vb0dOEjDsbrZEqaDoc9gfx376WMK1hP?= =?us-ascii?Q?hkHIGoGLUhcoSrLAnnOhsznvM+SBG4fXcNxYOTCc4qIMquAzWXsWxN07aDQF?= =?us-ascii?Q?iegg135QKS4goHlzcih2q/W8zBbYX62zNfYea?= X-Microsoft-Antispam-Message-Info: spM4W+C4vkJ0i09FOOlbphZAqoaAfZIu18UVlLMx5LQIJU2/+VB9LtujKQLNE8lnW+/nCkwviK4ydcxf65fPvI/vTZDj9QMa5lNRTQC7sdW3cJvnUxBDYKlT9QvW3k+G1s7aMGtv7OeHjNw/+qCEjIq+DSoQBYfu7lX4zJJLdWq5sus1oOT4WRNGmxtva6df X-Microsoft-Exchange-Diagnostics: 1;AM5PR0402MB2690;6:SPYCFGYzAm4f8dv0Z2hGrl0fG7wr1WqiQnJu4HLzetyc9ZgdwQL3dntECf0M9YcSHn0JcJpRBxMH/bmoPUa4WusLUxWDUTQ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44:27.2527 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a3fe1ddb-ca04-41cf-e13c-08d590c432b9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0402MB2690 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For the link state interrupt, we used a dummy non-threaded irq handler, which had the same implementation as the generic irq_default_primary_handler() function. Give up on using our own irq handler and let the kernel use the generic one instead. Signed-off-by: Ioana Radulescu --- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c index ac1a750..beb5959 100644 --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c @@ -2317,11 +2317,6 @@ static int poll_link_state(void *arg) return 0; } -static irqreturn_t dpni_irq0_handler(int irq_num, void *arg) -{ - return IRQ_WAKE_THREAD; -} - static irqreturn_t dpni_irq0_handler_thread(int irq_num, void *arg) { u32 status = ~0; @@ -2356,8 +2351,7 @@ static int setup_irqs(struct fsl_mc_device *ls_dev) irq = ls_dev->irqs[0]; err = devm_request_threaded_irq(&ls_dev->dev, irq->msi_desc->irq, - dpni_irq0_handler, - dpni_irq0_handler_thread, + NULL, dpni_irq0_handler_thread, IRQF_NO_SUSPEND | IRQF_ONESHOT, dev_name(&ls_dev->dev), &ls_dev->dev); if (err < 0) { -- 2.7.4