From patchwork Mon Apr 3 15:34:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joao Pinto X-Patchwork-Id: 746519 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3vxbmT4B9Rz9s7r for ; Tue, 4 Apr 2017 01:36:09 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753220AbdDCPgB (ORCPT ); Mon, 3 Apr 2017 11:36:01 -0400 Received: from smtprelay4.synopsys.com ([198.182.47.9]:47635 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751515AbdDCPeI (ORCPT ); Mon, 3 Apr 2017 11:34:08 -0400 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id F1F6224E0BE4; Mon, 3 Apr 2017 08:34:07 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id B3CD66EB; Mon, 3 Apr 2017 08:34:07 -0700 (PDT) Received: from jpinto-box.internal.synopsys.com (jpinto-box.internal.synopsys.com [10.107.19.150]) by mailhost.synopsys.com (Postfix) with ESMTP id B2B166D7; Mon, 3 Apr 2017 08:34:06 -0700 (PDT) From: Joao Pinto To: davem@davemloft.net Cc: netdev@vger.kernel.org, Joao Pinto Subject: [PATCH net-next] net: stmmac: rx queue to dma channel mapping fix Date: Mon, 3 Apr 2017 16:34:04 +0100 Message-Id: <4532d68ceefa4d0327275036698b3ec0e7b967c8.1491233596.git.jpinto@synopsys.com> X-Mailer: git-send-email 2.9.3 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org In hardware configurations where multiple queues are active, the rx queue needs to be mapped into a dma channel, even if a single rx queue is used. Signed-off-by: Joao Pinto --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index c1c6319..7cbda41 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -2001,7 +2001,7 @@ static void stmmac_mtl_configuration(struct stmmac_priv *priv) stmmac_configure_cbs(priv); /* Map RX MTL to DMA channels */ - if (rx_queues_count > 1 && priv->hw->mac->map_mtl_to_dma) + if (priv->hw->mac->map_mtl_to_dma) stmmac_rx_queue_dma_chan_map(priv); /* Enable MAC RX Queues */