Thread (41 messages) 41 messages, 6 authors, 2025-04-21

Re: [PATCH v8 4/7] can: Add Nuvoton NCT6694 CANFD support

From: Ming Yu <hidden>
Date: 2025-03-17 02:08:21
Also in: linux-can, linux-gpio, linux-hwmon, linux-i2c, linux-rtc, linux-usb, linux-watchdog, lkml

Dear Marc,

Thank you for reviewing,

Marc Kleine-Budde [off-list ref] 於 2025年2月27日 週四 下午10:17寫道:
On 27.02.2025 11:08:50, Vincent Mailhol wrote:
quoted
quoted
+static int nct6694_can_stop(struct net_device *ndev)
+{
+   struct nct6694_can_priv *priv = netdev_priv(ndev);
+
+   priv->can.ctrlmode = CAN_CTRLMODE_LISTENONLY;
Hmmm, when Marc asked you to put the device in listen only mode, I think
he meant that you set it on the device side (i.e. flag
NCT6694_CAN_SETTING_CTRL1_MON) and not on the driver side. If you set
CAN_CTRLMODE_LISTENONLY flag, that will be reported in the netlink
interface. So you should not change that flag.
ACK
quoted
But before that, did you check the datasheet? Don't you have a device
flag to actually turn the device off (e.g. sleep mode)?
Please test that the ifup -> ifdown -> ifup sequence works properly,
even on a busy bus and on a bus without with a 2nd CAN station that is
sending and you are the only receiver.
Understood.


Best regards,
Ming
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help