drivers: can: mcp251xfd: Increase max filters and change filter usage type

The mcp251xfd supports upto 32 filters. Also store the filter usage in
uint32_t instead of uint64_t.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
This commit is contained in:
Andriy Gelman 2023-10-13 15:20:35 -04:00 committed by Carles Cufí
parent 0aa6f3f3ff
commit 8c607bf401
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ config CAN_MCP251XFD_READ_CRC_RETRIES
config CAN_MAX_FILTER
int "Maximum number of concurrent active filters"
default 5
range 1 31
range 1 32
help
Maximum number of filters supported by the can_add_rx_callback() API call.

View File

@ -496,7 +496,7 @@ struct mcp251xfd_data {
struct mcp251xfd_mailbox mailbox[CONFIG_CAN_MCP251XFD_MAX_TX_QUEUE];
/* Filter Data */
uint64_t filter_usage;
uint32_t filter_usage;
struct can_filter filter[CONFIG_CAN_MAX_FILTER];
can_rx_callback_t rx_cb[CONFIG_CAN_MAX_FILTER];
void *cb_arg[CONFIG_CAN_MAX_FILTER];