Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3548290pxb; Sun, 7 Feb 2021 13:35:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLvkJjO9cbMzq2XswiRvrzNUXcOCB6bFhk5WNM7r6xEgwcI5U6yGd4g4MDqiUnKL0T25Py X-Received: by 2002:a17:906:547:: with SMTP id k7mr14103494eja.273.1612733707219; Sun, 07 Feb 2021 13:35:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612733707; cv=none; d=google.com; s=arc-20160816; b=l9mXdhLvlWF2usD89bflziG8TkHXnAFIkkBXQmm0pfd5NqmIv9ytheUYJuhltVcCwV I9+VRq5yE3aN9N43C3yAxC1NmxW6KRydcWRapylO/quvC4O0AGHUK7ZkHaEt4LI6DB5H Se8CIqmLfTowGuO5nsGzM9M8htsyaK1GPeBQ41zu7G3WT4tQE9F+rX0m4f14p/KWDdOU rEu3yje0+xEe+Jo6Fb03RRblra/wUzab029FLicOoA115jCEp25hHlMwl8fhppklj2+P 2pnnUVYQLwHaTbd09oXdA6pDEED6kkxQ0ErasAqeD3mW+WxstY9H8/BtP74Kkvd+yI4d XKSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=H2ZBQKjnW7ezuovrONz9ZIjmZWRdniGmmfRW6E6z+xg=; b=oTb8kEvnU66/rO7XIz1hWmZhUmyNzahhBNQ4zZ/vQxd6qIeMs9UOPCnmJAoLk89u3c H15LwTi6eb2IuHT26BKc50XH7jQLtUx2HYQLbJLWiNO/oKEQS6soGbSYsJV53nATH9Bp Vjgpc80CIhzlym5H1aiaMjpo4zpRtXfrcGvpxs9XiHRogeicLfhZP5bIbff+jrJDnHiD +Say40Se8zyUzjAVoy8LbPaFpnCt1FjDFX07aXN/q3owpbhyVxKsBvBu1uA+OLSToruS +RSorHu11JwaCv0uFTbudAsm3Gv4rt9rWdo3hTHAbzhOAjqaaEX+32lpNtfvKPoiYhpg 5uMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si260785eje.389.2021.02.07.13.34.44; Sun, 07 Feb 2021 13:35:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229727AbhBGVdC (ORCPT + 99 others); Sun, 7 Feb 2021 16:33:02 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:53854 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbhBGVcz (ORCPT ); Sun, 7 Feb 2021 16:32:55 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1l8rf7-004iGX-8h; Sun, 07 Feb 2021 22:32:09 +0100 Date: Sun, 7 Feb 2021 22:32:09 +0100 From: Andrew Lunn To: stefanc@marvell.com Cc: netdev@vger.kernel.org, thomas.petazzoni@bootlin.com, davem@davemloft.net, nadavh@marvell.com, ymarkman@marvell.com, linux-kernel@vger.kernel.org, kuba@kernel.org, linux@armlinux.org.uk, mw@semihalf.com, rmk+kernel@armlinux.org.uk, atenart@kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, sebastian.hesselbarth@gmail.com, gregory.clement@bootlin.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v9 net-next 03/15] net: mvpp2: add CM3 SRAM memory map Message-ID: References: <1612723137-18045-1-git-send-email-stefanc@marvell.com> <1612723137-18045-4-git-send-email-stefanc@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1612723137-18045-4-git-send-email-stefanc@marvell.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +static int mvpp2_get_sram(struct platform_device *pdev, > + struct mvpp2 *priv) > +{ > + struct resource *res; > + > + res = platform_get_resource(pdev, IORESOURCE_MEM, 2); > + if (!res) { > + if (has_acpi_companion(&pdev->dev)) > + dev_warn(&pdev->dev, "ACPI is too old, Flow control not supported\n"); > + else > + dev_warn(&pdev->dev, "DT is too old, Flow control not supported\n"); > + return 0; > + } > + > + priv->cm3_base = devm_ioremap_resource(&pdev->dev, res); > + if (IS_ERR(priv->cm3_base)) > + return PTR_ERR(priv->cm3_base); > + > + return 0; > +} This looks much better. Thanks Reviewed-by: Andrew Lunn Andrew