From: Andrew Lunn <andrew@lunn.ch>
To: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: "Markus Schneider-Pargmann" <msp@baylibre.com>,
"Chandrasekar Ramakrishnan" <rcsekar@samsung.com>,
"Vincent Mailhol" <mailhol.vincent@wanadoo.fr>,
"David S . Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Nishanth Menon" <nm@ti.com>,
"Vignesh Raghavendra" <vigneshr@ti.com>,
"Tero Kristo" <kristo@kernel.org>,
"Martin Hundebøll" <martin@geanix.com>,
"Christophe JAILLET" <christophe.jaillet@wanadoo.fr>,
"Michal Kubiak" <michal.kubiak@intel.com>,
"Vibhore Vardhan" <vibhore@ti.com>,
"Kevin Hilman" <khilman@baylibre.com>,
"Dhruva Gole" <d-gole@ti.com>, "Conor Dooley" <conor@kernel.org>,
linux-can@vger.kernel.org, netdev@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 2/7] can: m_can: Map WoL to device_set_wakeup_enable
Date: Mon, 29 Jul 2024 21:37:56 +0200 [thread overview]
Message-ID: <3d2a2b51-356f-4a9c-940e-df58be8d2cf3@lunn.ch> (raw)
In-Reply-To: <20240729-blue-cockle-of-vigor-7d7670-mkl@pengutronix.de>
> > > +static void m_can_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
> > > +{
> > > + struct m_can_classdev *cdev = netdev_priv(dev);
> > > +
> > > + wol->supported = device_can_wakeup(cdev->dev) ? WAKE_PHY : 0;
> > > + wol->wolopts = device_may_wakeup(cdev->dev) ? WAKE_PHY : 0;
> > > +}
> >
> > It is nice to see Ethernet WoL mapped to CAN :-)
> >
> > So will any activity on the CAN BUS wake the device? Or does it need
> > to be addresses to this device?
>
> Unless you have a special filtering transceiver, which is the CAN
> equivalent of a PHY, CAN interfaces usually wake up on the first
> message on the bus. That message is usually lost.
Thanks for the info. WAKE_PHY does seem the most appropriate then.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
next prev parent reply other threads:[~2024-07-29 19:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-29 7:41 [PATCH v2 0/7] can: m_can: Add am62 wakeup support Markus Schneider-Pargmann
2024-07-29 7:41 ` [PATCH v2 1/7] dt-bindings: can: m_can: Add wakeup properties Markus Schneider-Pargmann
2024-07-30 19:10 ` Rob Herring
2024-07-29 7:41 ` [PATCH v2 2/7] can: m_can: Map WoL to device_set_wakeup_enable Markus Schneider-Pargmann
2024-07-29 19:27 ` Andrew Lunn
2024-07-29 19:32 ` Marc Kleine-Budde
2024-07-29 19:37 ` Andrew Lunn [this message]
2024-07-30 8:03 ` Markus Schneider-Pargmann
2024-07-29 7:41 ` [PATCH v2 3/7] can: m_can: Return ERR_PTR on error in allocation Markus Schneider-Pargmann
2024-07-29 7:41 ` [PATCH v2 4/7] can: m_can: Support pinctrl wakeup state Markus Schneider-Pargmann
2024-07-29 8:51 ` Martin Hundebøll
2024-07-29 7:41 ` [PATCH v2 5/7] arm64: dts: ti: k3-am62: Mark mcu_mcan0/1 as wakeup-source Markus Schneider-Pargmann
2024-07-29 7:41 ` [PATCH v2 6/7] arm64: dts: ti: k3-am62a-mcu: " Markus Schneider-Pargmann
2024-07-29 7:41 ` [PATCH v2 7/7] arm64: dts: ti: k3-am62p-mcu: " Markus Schneider-Pargmann
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=3d2a2b51-356f-4a9c-940e-df58be8d2cf3@lunn.ch \
--to=andrew@lunn.ch \
--cc=christophe.jaillet@wanadoo.fr \
--cc=conor+dt@kernel.org \
--cc=conor@kernel.org \
--cc=d-gole@ti.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=khilman@baylibre.com \
--cc=kristo@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-can@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mailhol.vincent@wanadoo.fr \
--cc=martin@geanix.com \
--cc=michal.kubiak@intel.com \
--cc=mkl@pengutronix.de \
--cc=msp@baylibre.com \
--cc=netdev@vger.kernel.org \
--cc=nm@ti.com \
--cc=pabeni@redhat.com \
--cc=rcsekar@samsung.com \
--cc=robh@kernel.org \
--cc=vibhore@ti.com \
--cc=vigneshr@ti.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
all inboxes | Powered by JetHome®