From patchwork Tue May 10 00:04:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 9052021 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 680D2BF29F for ; Tue, 10 May 2016 00:05:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 99D2020145 for ; Tue, 10 May 2016 00:05:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C5EB92012D for ; Tue, 10 May 2016 00:05:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1azvAA-0004uh-Uv; Tue, 10 May 2016 00:04:34 +0000 Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1azv9n-0004VO-Iw for linux-arm-kernel@lists.infradead.org; Tue, 10 May 2016 00:04:12 +0000 Received: by mail-pf0-x235.google.com with SMTP id 206so81932519pfu.0 for ; Mon, 09 May 2016 17:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apm.com; s=apm; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZdKb0UfnjHR3I0FWKyM17blfZsXjxRw2nizEXnS9VP0=; b=d+E3FF9EdeJ1vg5gdUpq0Hbnrv+mjPOXT2RXPlRm06MEQUwWMBE1p14bzJHQ/ANOTm Q/4hw7r5DJXW4yn62ddkNBM4jHkjFFmkSmy/C/DD2OJqZxdyVmH6K5hLMcqHVPyvCzCC 9zYkX6IxiJCz+XbZgTu7xVLs0xVtp6HlaoePY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZdKb0UfnjHR3I0FWKyM17blfZsXjxRw2nizEXnS9VP0=; b=Om/ZaFGypuKY5eyhIyQM06U1mCd4gZ52LKo5RT1emSontUzhMMvwZ/iDmK79nrYQ9x jOrVm7KxWWjBLZsCWPiKFEq3IkkYwPo+TRIchrrdYl1x26r3Ic+EBa4mf3p0slDfc5zt FzTWy38NVwItab0/gdS9CMTyHSCJwDO4nGTIvxQnGAiYLCuwspgbncNhB56uyMwwdyJI DqUgAvbFkJt5+hMuMzaPOp/7XR6scRWlWEQo7A22VYgz99o1VYgqvWRTXRlL32bcbVOP NZ3I/WaBD2leF7BbHh9cOxgj6EGUZiPAC/E/n1bKPm2bZf8iGFUzGEtjPvIx6HnDhNN1 phRg== X-Gm-Message-State: AOPr4FXQZkD2lonoiv/BRfDboIaq7je3/2xOgIPTyksrvCvTpXun/rT4MrGKAN9lELBSAYFN X-Received: by 10.98.14.93 with SMTP id w90mr53924860pfi.69.1462838631079; Mon, 09 May 2016 17:03:51 -0700 (PDT) Received: from isubrama-dev.amcc.com ([206.80.4.98]) by smtp.gmail.com with ESMTPSA id d186sm43109296pfa.45.2016.05.09.17.03.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 May 2016 17:03:49 -0700 (PDT) From: Iyappan Subramanian To: davem@davemloft.net, netdev@vger.kernel.org Subject: [PATCH 2/6] drivers: net: xgene: fix sharing of irqs Date: Mon, 9 May 2016 17:04:12 -0700 Message-Id: <1462838656-22043-3-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1462838656-22043-1-git-send-email-isubramanian@apm.com> References: <1462838656-22043-1-git-send-email-isubramanian@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160509_170411_811806_56120157 X-CRM114-Status: GOOD ( 11.84 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: toanle@apm.com, patches@apm.com, linux-arm-kernel@lists.infradead.org, Iyappan Subramanian MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since hardware doesn't allow sharing of interrupts, this patch fixes the same by removing IRQF_SHARED flag. Signed-off-by: Iyappan Subramanian Tested-by: Toan Le --- drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c index aa87049..ed90664 100644 --- a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c +++ b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c @@ -630,7 +630,7 @@ static int xgene_enet_register_irq(struct net_device *ndev) ring = pdata->rx_ring[i]; irq_set_status_flags(ring->irq, IRQ_DISABLE_UNLAZY); ret = devm_request_irq(dev, ring->irq, xgene_enet_rx_irq, - IRQF_SHARED, ring->irq_name, ring); + 0, ring->irq_name, ring); if (ret) { netdev_err(ndev, "Failed to request irq %s\n", ring->irq_name); @@ -641,7 +641,7 @@ static int xgene_enet_register_irq(struct net_device *ndev) ring = pdata->tx_ring[i]->cp_ring; irq_set_status_flags(ring->irq, IRQ_DISABLE_UNLAZY); ret = devm_request_irq(dev, ring->irq, xgene_enet_rx_irq, - IRQF_SHARED, ring->irq_name, ring); + 0, ring->irq_name, ring); if (ret) { netdev_err(ndev, "Failed to request irq %s\n", ring->irq_name);