can/peak_usb: mark current PEAK USB FD as non-ISO
PATCH 1/1 can/peak_usb: mark current PEAK USB FD as non-ISO
The current PCAN USB FD (pro) adapters support the non-ISO CAN FD protocol.
--- drivers/net/can/usb/peak_usb/pcan_usb_fd.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/can/usb/peak_usb/pcan_usb_fd.c +3 -0
@@ -860,6 +860,9 @@ static int pcan_usb_fd_init(struct peak_usb_device *dev) pdev->usb_if->fw_info.fw_version[2 ], dev->adapter->ctrl_count); +/* the currently supported hw is non-ISO */ + dev->can.ctrlmode =CAN_CTRLMODE_FD_NON_ISO ; +/* tell the hardware the can driver is running */ err =pcan_usb_fd_drv_loaded (dev,1 );if (err) {
Signature · 1 line
2.1.4
Hello Marc,
your v10 series looks very good. The ARRAY_SIZE stuff is a good improvement!
I compiled the peak-next branch and inserting my single PCAN USB FD adapter worked fine. I'll send my tested-by when I can access my second adapter at work tomorrow.
The patch below finally sets the CAN_CTRLMODE_FD_NON_ISO flag. It's tested with the updated ip tool.
But beware: The current linux-can-next is missing the CAN_CTRLMODE_FD_NON_ISO patch for M_CAN. Therefore CAN_CTRLMODE_FD_NON_ISO is not defined until Dave pulled net into net-next. So this patch creates a compile error in the latest linux-can-next.
Regards,
Oliver
Quoted 22 lines · Oliver Hartkopp
The current PCAN USB FD (pro) adapters support the non-ISO CAN FD protocol.
Signed-off-by Oliver Hartkopp <[email protected]>--- drivers/net/can/usb/peak_usb/pcan_usb_fd.c | 3 +++ 1 file changed, 3 insertions(+)drivers/net/can/usb/peak_usb/pcan_usb_fd.c +3
-0@@ -860,6 +860,9 @@ static int pcan_usb_fd_init(struct peak_usb_device *dev) pdev->usb_if->fw_info.fw_version[2 ], dev->adapter->ctrl_count); +/* the currently supported hw is non-ISO */ + dev->can.ctrlmode =CAN_CTRLMODE_FD_NON_ISO ; +/* tell the hardware the can driver is running */ err =pcan_usb_fd_drv_loaded (dev,1 );if (err) {
Marc Kleine-Budde
maintainerQuoted 5 lines · Oliver Hartkopp
your v10 series looks very good. The
ARRAY_SIZEstuff is a good improvement!I compiled the peak-next branch and inserting my single PCAN USB FD adapter worked fine. I'll send my tested-by when I can access my second adapter at work tomorrow.
Thanks.
Quoted 2 lines
The patch below finally sets the
CAN_CTRLMODE_FD_NON_ISOflag. It's tested with the updated ip tool.
Thanks, squashed into patch 9/9
Quoted 4 lines
But beware: The current linux-can-next is missing the
CAN_CTRLMODE_FD_NON_ISOpatch forM_CAN. ThereforeCAN_CTRLMODE_FD_NON_ISOis not defined until Dave pulled net into net-next. So this patch creates a compile error in the latest linux-can-next.
I've cherry-picked the missing patch from net/master and put it into the peak-next branch on kernel.org. So the series compiles and when rebasing it to net-next after net has been merged, the patch will disappear.
regards,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
Compile-tested & plugged in based on the latest peak-next.
Looking forward to test it tomorrow morning.
Tnx!
Oliver
Quoted 26 lines · Marc Kleine-Budde
Quoted 5 lines · Oliver Hartkopp
your v10 series looks very good. The
ARRAY_SIZEstuff is a good improvement!I compiled the peak-next branch and inserting my single PCAN USB FD adapter worked fine. I'll send my tested-by when I can access my second adapter at work tomorrow.
Thanks.
Quoted 2 lines
The patch below finally sets the
CAN_CTRLMODE_FD_NON_ISOflag. It's tested with the updated ip tool.Thanks, squashed into patch 9/9
Quoted 4 lines
But beware: The current linux-can-next is missing the
CAN_CTRLMODE_FD_NON_ISOpatch forM_CAN. ThereforeCAN_CTRLMODE_FD_NON_ISOis not defined until Dave pulled net into net-next. So this patch creates a compile error in the latest linux-can-next.I've cherry-picked the missing patch from net/master and put it into the peak-next branch on kernel.org. So the series compiles and when rebasing it to net-next after net has been merged, the patch will disappear.
regards,
Marc