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

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

From: Jimmy Assarsson <hidden>
Date: 2025-07-24 07:08:55
Also in: linux-can

On 7/24/25 8:36 AM, Jimmy Assarsson wrote:
quoted hunk ↗ jump to hunk
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?

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