From: Andrew Lunn <andrew@lunn.ch>
To: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [net-next,v2] net: ethernet: rtsn: Add support for Renesas Ethernet-TSN
Date: Wed, 8 May 2024 14:33:24 +0200 [thread overview]
Message-ID: <ba35173c-eaba-4f13-a2ed-011f6f7a48d1@lunn.ch> (raw)
In-Reply-To: <20240508105831.GB1385281@ragnatech.se>
On Wed, May 08, 2024 at 12:58:31PM +0200, Niklas Söderlund wrote:
> On 2024-05-08 02:55:44 +0200, Andrew Lunn wrote:
> > > +static int rtsn_probe(struct platform_device *pdev)
> > > +{
> >
> >
> > > + pm_runtime_enable(&pdev->dev);
> > > + pm_runtime_get_sync(&pdev->dev);
> >
> >
> > > +static int rtsn_remove(struct platform_device *pdev)
> > > +{
> > > + struct rtsn_private *priv = platform_get_drvdata(pdev);
> > > +
> > > + unregister_netdev(priv->ndev);
> > > + rtsn_mdio_free(priv);
> > > + rcar_gen4_ptp_unregister(priv->ptp_priv);
> > > + rtsn_change_mode(priv, OCR_OPC_DISABLE);
> > > + netif_napi_del(&priv->napi);
> > > +
> > > + pm_runtime_put_sync(&pdev->dev);
> > > + pm_runtime_disable(&pdev->dev);
> >
> > These appear to be the only two places you do any pm_ stuff. So it
> > seems pointless. Maybe delete this for the moment, and come back later
> > to add proper runtime power management?
>
> I agree enable more PM stuff is a good candidate to follow initial
> entablement. But these pm_ calls are not pointless, I still need to deal
> with power. If I remove the pm_ calls things starts to fail.
That is odd. Why does it fail? What is turning the power off? Did i
miss you registering some callbacks?
Andrew
next prev parent reply other threads:[~2024-05-08 12:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-07 20:18 [net-next,v2] net: ethernet: rtsn: Add support for Renesas Ethernet-TSN Niklas Söderlund
2024-05-07 20:57 ` Andrew Lunn
2024-05-07 21:50 ` Niklas Söderlund
2024-05-08 0:35 ` Andrew Lunn
2024-05-08 11:07 ` Niklas Söderlund
2024-05-08 0:52 ` Andrew Lunn
2024-05-08 11:03 ` Niklas Söderlund
2024-05-08 0:55 ` Andrew Lunn
2024-05-08 10:58 ` Niklas Söderlund
2024-05-08 12:33 ` Andrew Lunn [this message]
2024-05-08 12:55 ` Niklas Söderlund
2024-05-08 14:00 ` Andrew Lunn
2024-05-08 15:10 ` Niklas Söderlund
2024-05-08 15:29 ` Geert Uytterhoeven
2024-05-08 17:36 ` Andrew Lunn
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=ba35173c-eaba-4f13-a2ed-011f6f7a48d1@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=niklas.soderlund+renesas@ragnatech.se \
--cc=pabeni@redhat.com \
--cc=yoshihiro.shimoda.uh@renesas.com \
/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).