Thread (13 messages) 13 messages, 3 authors, 2025-07-24

Re: [PATCH v2 05/10] can: kvaser_pciefd: Store device channel index

From: Vincent Mailhol <hidden>
Date: 2025-07-24 07:55:29
Also in: linux-can

On Thu. 24 Jul. 2025 at 16:09, Jimmy Assarsson [off-list ref] wrote:
On 7/24/25 8:36 AM, Jimmy Assarsson wrote:
quoted
Store device channel index in netdev.dev_port.

Fixes: 26ad340e582d ("can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices")
Signed-off-by: Jimmy Assarsson <redacted>
---
Changes in v2:
   - Add Fixes tag.

  drivers/net/can/kvaser_pciefd.c | 1 +
  1 file changed, 1 insertion(+)
diff --git a/drivers/net/can/kvaser_pciefd.c b/drivers/net/can/kvaser_pciefd.c
index 7153b9ea0d3d..8dcb1d1c67e4 100644
--- a/drivers/net/can/kvaser_pciefd.c
+++ b/drivers/net/can/kvaser_pciefd.c
@@ -1028,6 +1028,7 @@ static int kvaser_pciefd_setup_can_ctrls(struct kvaser_pciefd *pcie)
              can->completed_tx_bytes = 0;
              can->bec.txerr = 0;
              can->bec.rxerr = 0;
+             can->can.dev->dev_port = i;

              init_completion(&can->start_comp);
              init_completion(&can->flush_comp);
Would it be better to submit this as a separate patch, or keep it within
this patch series?
Even if this is a bug, I see no urgency to it, so I am happy to have
this goes first to netdev-next and is picked-up by stable later on.
Doing the opposite would require you to split and seems more
troublesome.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help