Skip to content

Commit

Permalink
can: gs_usb: support up to 3 channels per device
Browse files Browse the repository at this point in the history
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.de
Suggested-by: Ryan Edwards <ryan.edwards@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Marc Kleine-Budde committed Mar 10, 2022
1 parent 5374d08 commit e10ab8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/can/usb/gs_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ struct gs_host_frame {
/* Only launch a max of GS_MAX_RX_URBS usb requests at a time. */
#define GS_MAX_RX_URBS 30
/* 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_can *dev;
Expand Down

0 comments on commit e10ab8b

Please sign in to comment.