drivers: can: deprecate the can_attach_workq() API call

Deprecate the can_attach_workq() API call.

This API is limited in its functionality (it does not work with
userspace, it uses one common buffer size for all work queue instances).

Similar functionality can easily be implemented using the
can_attach_msgq() API along with the generic triggered work API
(e.g. using k_work_poll_submit()).

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2021-12-16 12:23:30 +01:00 committed by Carles Cufí
commit f92542ecf3
3 changed files with 73 additions and 99 deletions

View file

@ -70,7 +70,7 @@ config CAN_INIT_PRIORITY
so that it can start before the networking sub-system.
config CAN_WORKQ_FRAMES_BUF_CNT
int "Work queue buffer frame count"
int "Work queue buffer frame count (DEPRECATED)"
default 4
range 1 65534
help