Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp367043ybp; Thu, 10 Oct 2019 20:03:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2r/F3DYcWv5wrIZ/tdZit4XkfVccM1HDeX3n06gCC1K/C6SZ7xz3hwGcyktCY0fMnupoh X-Received: by 2002:a05:6402:21d6:: with SMTP id bi22mr11171330edb.19.1570763029162; Thu, 10 Oct 2019 20:03:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570763029; cv=none; d=google.com; s=arc-20160816; b=oZR5cD+8MD7AULoUUAuuYussmwXsqRGXPEsDaeCOax6mFznjAuMPyA5uFUTdbBgIuz 38dQDZe8w/crnQoSaTPKNoREO5Nc6x9j5Z1hTFij/gqiZlHhG8fSjq1zl9y9LoOQ/FvP DejweuUh++E43/0KPbhh39Tu7KrDpFI59RmyZibgMxE6OaAW29EImJ1HJjhCkiLojS7j qqqyW3CP6jDrhPXlT8SWm7b6cKvD71E9zzS4IVsPJKwJGCPIqVw+Ta/rDubOHx83ov79 RE8SviPzvwZs99BzCGVFQyNHwJWWR7T2dGwwlqi+DXj7pjbCYmJ+fqoG1vk82vS2kMX9 fP4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=nP3GB4eev/Uw/7TzzPBf7q6vVOFurBjXFqfQUZ+MDGI=; b=E/dF0F5aGcXbC5sUNkIZMF2jE7FHgtWgNVrWKGkWaH8bV9RnqdZy5UTO0BeAZ8MlYn lCPKuVnyVrkDbUw6VycfAvGVcZbXNeFKxTpxZzKJpJr+LlS2oL4Olfbm2EImBypjLTGt Gkm9hHMO56v7/Uva7cFnEr3LXRg1q8YQSaDTfnNXJzLdhPKDCNPdwdVVG/3+fqK2W9jR 65SeaqtBV1t7k0YCHDbBRZ9Q/KLbgZUVW2h3xbpTvdrR1aZsOx11jssHX0MP4fCwewN4 Q5z/HAOKpV8ImYYNFjBQafJZHzGe4f3z0toCUdPHj6XhB85xs0ZMrU2spPgYp6TGli+I bIGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=KzBWLKoF; 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 96si5046006edq.24.2019.10.10.20.03.24; Thu, 10 Oct 2019 20:03:49 -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=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=KzBWLKoF; 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 S1726793AbfJKDAT (ORCPT + 99 others); Thu, 10 Oct 2019 23:00:19 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:44207 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726714AbfJKDAT (ORCPT ); Thu, 10 Oct 2019 23:00:19 -0400 Received: by mail-pg1-f193.google.com with SMTP id e10so913926pgd.11 for ; Thu, 10 Oct 2019 20:00:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=nP3GB4eev/Uw/7TzzPBf7q6vVOFurBjXFqfQUZ+MDGI=; b=KzBWLKoFEXWJXPLXk8rihO70idubrVY0AvebVOxegnFY86QJmJGnQAku+lqeexuYjB 9G74EjZ5ZvlXtWdwx6WwfpqvWL6VZhkBTLucMGD8v4+2hORNhyJnUiBwwpBCF8JxvYyl Y/VEUCQaO4qMcQjX25jnBmyNowejWuBTvCczZAtLpuYiP3fyFPOQUIuwfkc7KI12BXX2 EwM6/7cZLGE5aW9q4v+KkZG7M4Ko8VEfRigsYkPSfXxu8CCT86YN8Kz/jywZSNG+JnPs /EYL79jv7SvwRhbBYvBe5MtI4NC0fHqrZX5X0RP9DTqt0mKF84SdidfQjH90hJrCfHuU JAsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=nP3GB4eev/Uw/7TzzPBf7q6vVOFurBjXFqfQUZ+MDGI=; b=ohGCm3ogQa8yVG3YMEY2ExMj2vKmphCPmeaaTwTMH8GYH/d2pzy2yBpb+cbepK1/uK d5aBBZl2Ms0DCRFkrsf0QhjKUtza62TWCsMmOtlQ9L9ZlKeDF+N8TjiD04H9PN9/SYDw z0NopZ9upq73eMskvx6ZWNAf2qjxCOxOXaDErEogo7gV2RUAGHyLevBYOiie31pBJpJl pOlTkiceRt/qcQ6GYj0dkFz+mg/cZjhBEd2dt2YXndqs9GYY/gPm9gr0EoFkthF5CF+0 eW9B5WkxosPZAwRb1UfLV2Xwtt30O2NCpLo3KgtywpX7Tffq8Z+wP8r8zC4XN3dhUdo3 LZLw== X-Gm-Message-State: APjAAAWteYt1wjnYfOUXfJAT6Na/WmHymI1j3IjosZ+GPoLCKKS6XGRV R+AgEwHUJA222gvQpus+lZFxkQ== X-Received: by 2002:a65:688a:: with SMTP id e10mr13223631pgt.122.1570762818461; Thu, 10 Oct 2019 20:00:18 -0700 (PDT) Received: from cakuba.netronome.com (c-73-202-202-92.hsd1.ca.comcast.net. [73.202.202.92]) by smtp.gmail.com with ESMTPSA id q6sm8505284pgn.44.2019.10.10.20.00.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 20:00:18 -0700 (PDT) Date: Thu, 10 Oct 2019 20:00:02 -0700 From: Jakub Kicinski To: Thomas Bogendoerfer Cc: Jonathan Corbet , Ralf Baechle , Paul Burton , James Hogan , Lee Jones , "David S. Miller" , Srinivas Kandagatla , Alessandro Zummo , Alexandre Belloni , Greg Kroah-Hartman , Jiri Slaby , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, netdev@vger.kernel.org, linux-rtc@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH v9 3/5] mfd: ioc3: Add driver for SGI IOC3 chip Message-ID: <20191010200002.5fe5f34f@cakuba.netronome.com> In-Reply-To: <20191010145953.21327-4-tbogendoerfer@suse.de> References: <20191010145953.21327-1-tbogendoerfer@suse.de> <20191010145953.21327-4-tbogendoerfer@suse.de> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Oct 2019 16:59:49 +0200, Thomas Bogendoerfer wrote: > dev = alloc_etherdev(sizeof(struct ioc3_private)); > - if (!dev) { > - err = -ENOMEM; > - goto out_disable; > - } > - > - if (pci_using_dac) > - dev->features |= NETIF_F_HIGHDMA; Looks like the NETIF_F_HIGHDMA feature will not longer be set, is that okay? > - err = pci_request_regions(pdev, "ioc3"); > - if (err) > - goto out_free; > + if (!dev) > + return -ENOMEM; > > SET_NETDEV_DEV(dev, &pdev->dev); > > ip = netdev_priv(dev); > - ip->dev = dev; > - ip->dma_dev = &pdev->dev; > - > - dev->irq = pdev->irq; > + ip->dma_dev = pdev->dev.parent; > + ip->regs = devm_platform_ioremap_resource(pdev, 0); > + if (!ip->regs) { > + err = -ENOMEM; > + goto out_free; > + }