From: Andrew Lunn <andrew@lunn.ch>
To: Ioana Ciornei <ioana.ciornei@nxp.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org, linux@armlinux.org.uk
Subject: Re: [PATCH net-next 3/3] dpaa2-mac: add PCS support through the Lynx module
Date: Mon, 21 Sep 2020 19:07:21 +0200 [thread overview]
Message-ID: <20200921170721.GE3717417@lunn.ch> (raw)
In-Reply-To: <20200921162031.12921-4-ioana.ciornei@nxp.com>
On Mon, Sep 21, 2020 at 07:20:31PM +0300, Ioana Ciornei wrote:
> +static void dpaa2_pcs_destroy(struct dpaa2_mac *mac)
> +{
> + struct lynx_pcs *pcs = mac->pcs;
> +
> + if (pcs) {
> + put_device(&pcs->mdio->dev);
> + lynx_pcs_destroy(pcs);
> + mac->pcs = NULL;
Hi Ioana
Maybe the put_device() should come after the destroy? It is then the
reverse of the creation.
Andrew
next prev parent reply other threads:[~2020-09-21 17:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-21 16:20 [PATCH net-next 0/3] dpaa2-mac: add PCS support through the Lynx module Ioana Ciornei
2020-09-21 16:20 ` [PATCH net-next 1/3] net: pcs-lynx: add support for 10GBASER Ioana Ciornei
2020-09-21 16:20 ` [PATCH net-next 2/3] of: add of_mdio_find_device() api Ioana Ciornei
2020-09-21 16:20 ` [PATCH net-next 3/3] dpaa2-mac: add PCS support through the Lynx module Ioana Ciornei
2020-09-21 17:07 ` Andrew Lunn [this message]
2020-09-21 18:06 ` Ioana Ciornei
2020-09-23 0:10 ` [PATCH net-next 0/3] " David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200921170721.GE3717417@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=ioana.ciornei@nxp.com \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).