Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2728396ybx; Sun, 3 Nov 2019 02:39:18 -0800 (PST) X-Google-Smtp-Source: APXvYqzc1+2J8wHn5H1zr+u95zkJTKtMZdnEIKeHWAZZyGaosfepvDmSsUNnlBcwWO8Fsooy3sGJ X-Received: by 2002:a17:906:e88:: with SMTP id p8mr10272048ejf.15.1572777558005; Sun, 03 Nov 2019 02:39:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572777557; cv=none; d=google.com; s=arc-20160816; b=yFjN9T/pP38VSNxkad/XEee1TlAzwvVlJrP0MsZjWf9RqW++IYxrnhDbKErqDQ3qXI bdqWbs+BOlTKKJyvBwqsC8Kzt17E7GLDk0BGk0/R0cnI8vJbRjpnhVyqlN3htKscSbu9 KxezCLeqB9uFHNoQdmp9qm1r7v+chc657qBSsP/sQNy5qTSc0Jk32iEWZx+Bq62NxkZN VR5V1HLqhaf82pO+YNc0eh3WoaObv+3CZw4ogk6J8tbsMJQ0lUBpwiq+TXbQPHt0Uk4I O0esAe8QEvOm8IBrdoVIqopyxbErvEdcGbhKNgDnhK/KkLUIAsfour+Ce2KXn+ZOVL2p 9p6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=0kgpNjwawTIt+ytIMbcnrzJBu8AgDKKuvusQ+w6olU4=; b=LJzCJMTS6pVCtdbQX++TxxIiM5zbt5HqSSDrrUS4HBP4sU9oz77dXiLReGkryzMho+ lfsm63gzoqWY1uw/9kdSwuAE7bl0ZSuLfJggKH9J+4/VFSmTiGLN53vGkjUvoSfQu6I0 lOryJB+gi0QG9X1F0mlF2gP6YGF6FAOSv5T/WVqhrdsG+DAHgMYWK+MTW3g0wl5QCIOW FCI+mAX6y1vbFxiZxYERFp+nHJ1CYtFLsKmThQaANLoOVIej8EZ2ozbVFyuXepQXxepK n9TGzIG7Yuu2fZ/oIkbuiTkl7SdSUaKakAA7IsEWKlBq8jj4twCD04n2T7P2YUtmSOrE I1cg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p4si9459351ejo.21.2019.11.03.02.38.54; Sun, 03 Nov 2019 02:39:17 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727686AbfKCKfW (ORCPT + 99 others); Sun, 3 Nov 2019 05:35:22 -0500 Received: from mx2.suse.de ([195.135.220.15]:56882 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727380AbfKCKfG (ORCPT ); Sun, 3 Nov 2019 05:35:06 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 9708CB183; Sun, 3 Nov 2019 10:35:04 +0000 (UTC) From: Thomas Bogendoerfer To: Ralf Baechle , "David S. Miller" , linux-mips@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christoph Hellwig Subject: [net v2 4/4] net: sgi: ioc3-eth: fix setting NETIF_F_HIGHDMA Date: Sun, 3 Nov 2019 11:34:33 +0100 Message-Id: <20191103103433.26826-4-tbogendoerfer@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191103103433.26826-1-tbogendoerfer@suse.de> References: <20191103103433.26826-1-tbogendoerfer@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christoph Hellwig Set NETIF_F_HIGHDMA together with the NETIF_F_IP_CSUM flag insted of letting the second assignment overwrite it. Probably doesn't matter in practice as none of the systems a IOC3 is usually found in has highmem to start with. Signed-off-by: Christoph Hellwig --- drivers/net/ethernet/sgi/ioc3-eth.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/sgi/ioc3-eth.c b/drivers/net/ethernet/sgi/ioc3-eth.c index 83abc8a13508..d242906ae233 100644 --- a/drivers/net/ethernet/sgi/ioc3-eth.c +++ b/drivers/net/ethernet/sgi/ioc3-eth.c @@ -1193,8 +1193,6 @@ static int ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *ent) goto out_disable; } - dev->features |= NETIF_F_HIGHDMA; - err = pci_request_regions(pdev, "ioc3"); if (err) goto out_free; @@ -1278,7 +1276,7 @@ static int ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *ent) dev->netdev_ops = &ioc3_netdev_ops; dev->ethtool_ops = &ioc3_ethtool_ops; dev->hw_features = NETIF_F_IP_CSUM | NETIF_F_RXCSUM; - dev->features = NETIF_F_IP_CSUM; + dev->features = NETIF_F_IP_CSUM | NETIF_F_HIGHDMA; sw_physid1 = ioc3_mdio_read(dev, ip->mii.phy_id, MII_PHYSID1); sw_physid2 = ioc3_mdio_read(dev, ip->mii.phy_id, MII_PHYSID2); -- 2.16.4