Commit e10ab8b3 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde

can: gs_usb: support up to 3 channels per device

Some STM32G3 chips support up to 3 CAN-FD channels, increase number of
supported channels in this driver to 3 accordingly.

Link: https://lore.kernel.org/all/20220309124132.291861-14-mkl@pengutronix.deSuggested-by: default avatarRyan Edwards <ryan.edwards@gmail.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 5374d083
...@@ -166,9 +166,9 @@ struct gs_host_frame { ...@@ -166,9 +166,9 @@ struct gs_host_frame {
/* Only launch a max of GS_MAX_RX_URBS usb requests at a time. */ /* Only launch a max of GS_MAX_RX_URBS usb requests at a time. */
#define GS_MAX_RX_URBS 30 #define GS_MAX_RX_URBS 30
/* Maximum number of interfaces the driver supports per device. /* Maximum number of interfaces the driver supports per device.
* Current hardware only supports 2 interfaces. The future may vary. * Current hardware only supports 3 interfaces. The future may vary.
*/ */
#define GS_MAX_INTF 2 #define GS_MAX_INTF 3
struct gs_tx_context { struct gs_tx_context {
struct gs_can *dev; struct gs_can *dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment