[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CO6PR18MB38731B7D025AE9202104E707B0B09@CO6PR18MB3873.namprd18.prod.outlook.com>
Date: Sun, 7 Feb 2021 12:21:42 +0000
From: Stefan Chulski <stefanc@...vell.com>
To: Baruch Siach <baruch@...s.co.il>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"andrew@...n.ch" <andrew@...n.ch>,
Yan Markman <ymarkman@...vell.com>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"atenart@...nel.org" <atenart@...nel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux@...linux.org.uk" <linux@...linux.org.uk>,
Nadav Haklai <nadavh@...vell.com>,
"rmk+kernel@...linux.org.uk" <rmk+kernel@...linux.org.uk>,
"robh+dt@...nel.org" <robh+dt@...nel.org>,
"thomas.petazzoni@...tlin.com" <thomas.petazzoni@...tlin.com>,
"kuba@...nel.org" <kuba@...nel.org>,
"mw@...ihalf.com" <mw@...ihalf.com>,
"davem@...emloft.net" <davem@...emloft.net>,
"gregory.clement@...tlin.com" <gregory.clement@...tlin.com>,
"sebastian.hesselbarth@...il.com" <sebastian.hesselbarth@...il.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>
Subject: RE: [EXT] Re: [RESEND PATCH v8 net-next 03/15] net: mvpp2: add CM3
SRAM memory map
> > }
> >
> > +static int mvpp2_get_sram(struct platform_device *pdev,
> > + struct mvpp2 *priv)
> > +{
> > + struct device_node *dn = pdev->dev.of_node;
> > + static bool defer_once;
> > + struct resource *res;
> > +
> > + if (has_acpi_companion(&pdev->dev)) {
> > + res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
> > + if (!res) {
> > + dev_warn(&pdev->dev, "ACPI 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);
> > + } else {
> > + priv->sram_pool = of_gen_pool_get(dn, "cm3-mem", 0);
> > + if (!priv->sram_pool) {
> > + if (!defer_once) {
> > + defer_once = true;
> > + /* Try defer once */
> > + return -EPROBE_DEFER;
> > + }
> > + dev_warn(&pdev->dev, "DT is too old, Flow control
> not
> > +supported\n");
>
> This warning will show on every DT system with no cm3-mem property,
> right?
>
All DT system would has cm3-mem property if " add CM3 SRAM memory to cp11x ethernet device tree " patch applied.
This is also only warning message, without any functional impact.
Regards,
Stefan.
Powered by blists - more mailing lists