Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932954Ab3CSP7V (ORCPT ); Tue, 19 Mar 2013 11:59:21 -0400 Received: from mail-ea0-f177.google.com ([209.85.215.177]:51414 "EHLO mail-ea0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932531Ab3CSP7T (ORCPT ); Tue, 19 Mar 2013 11:59:19 -0400 From: Christophe Aeschlimann To: khc@pm.waw.pl Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Christophe Aeschlimann Subject: [PATCH] ixp4xx_eth: set the device dma_coherent_mask Date: Tue, 19 Mar 2013 16:59:25 +0100 Message-Id: <1363708765-20778-1-git-send-email-c.aeschlimann@acn-group.ch> X-Mailer: git-send-email 1.7.9 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1144 Lines: 33 Without the mask it is impossible to take the network interface up since it returns the following error: > net eth1: coherent DMA mask is unset > ifconfig: SIOCSIFFLAGS: Cannot allocate memory Tested on an out-of-tree ixp425 based board. Signed-off-by: Christophe Aeschlimann --- drivers/net/ethernet/xscale/ixp4xx_eth.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/ethernet/xscale/ixp4xx_eth.c b/drivers/net/ethernet/xscale/ixp4xx_eth.c index 6958a5e..ff23c5c 100644 --- a/drivers/net/ethernet/xscale/ixp4xx_eth.c +++ b/drivers/net/ethernet/xscale/ixp4xx_eth.c @@ -1398,6 +1398,7 @@ static int eth_init_one(struct platform_device *pdev) return -ENOMEM; SET_NETDEV_DEV(dev, &pdev->dev); + dev->dev.coherent_dma_mask = DMA_BIT_MASK(32); port = netdev_priv(dev); port->netdev = dev; port->id = pdev->id; -- 1.7.9 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/