[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190916.092244.764910996352099184.davem@davemloft.net>
Date: Mon, 16 Sep 2019 09:22:44 +0200 (CEST)
From: David Miller <davem@...emloft.net>
To: alexandru.ardelean@...log.com
Cc: netdev@...r.kernel.org, linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
peppe.cavallaro@...com, alexandre.torgue@...com,
joabreu@...opsys.com, mcoquelin.stm32@...il.com
Subject: Re: [PATCH v3] net: stmmac: socfpga: re-use the `interface`
parameter from platform data
From: Alexandru Ardelean <alexandru.ardelean@...log.com>
Date: Mon, 16 Sep 2019 10:04:00 +0300
> The socfpga sub-driver defines an `interface` field in the `socfpga_dwmac`
> struct and parses it on init.
>
> The shared `stmmac_probe_config_dt()` function also parses this from the
> device-tree and makes it available on the returned `plat_data` (which is
> the same data available via `netdev_priv()`).
>
> All that's needed now is to dig that information out, via some
> `dev_get_drvdata()` && `netdev_priv()` calls and re-use it.
>
> Signed-off-by: Alexandru Ardelean <alexandru.ardelean@...log.com>
Applied.
Powered by blists - more mailing lists