Skip to content

Feature/soft 5329 can v6.8#341

Open
taraant wants to merge 11 commits intodev/v6.8from
feature/SOFT-5329-CAN-v6.8
Open

Feature/soft 5329 can v6.8#341
taraant wants to merge 11 commits intodev/v6.8from
feature/SOFT-5329-CAN-v6.8

Conversation

@taraant
Copy link

@taraant taraant commented Jan 16, 2026


Что происходит; кому и зачем нужно:
Добавил драйвер для CAN-чипа Holtek ht42b416


Что поменялось для пользователей:
в WB8.5 можно подключать модуль CAN (wbe2-i-can-iso)


Как проверял/а:
На контроллере wb8.5.3 в модулях расширения 1-4, настраивая через оснастку homeui/hwconf

@taraant taraant requested a review from vdromanov January 16, 2026 07:58
F: drivers/hwtracing/

HOLTEK HT42B416 CAN DRIVER
M: Anton Tarasov <ant0@mail.ru>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Наверное лучше Wiren Board team <info@wirenboard.com>

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ну личная - да, перебор.
А вот корпоративная вполне применяется у нас:

ant@ANT ~/w/w/linux (feature/SOFT-5329-CAN-v6.8)> grep -r @wiren Documentation/
Documentation/ABI/testing/sysfs-driver-w1_therm:Contact:	Ivan Zaentsev <ivan.zaentsev@wirenboard.ru>
Documentation/ABI/testing/sysfs-driver-w1_therm:Contact:	Ivan Zaentsev <ivan.zaentsev@wirenboard.ru>
Documentation/devicetree/bindings/regulator/allwinner,h616-mmc-regulator.yaml:  - Anton Tarasov <anton.tarasov@wirenboard.com>
Documentation/devicetree/bindings/input/wirenboard,wbec-pwrkey.yaml:  - Pavel Gasheev <pavel.gasheev@wirenboard.com>
Documentation/devicetree/bindings/pwm/wirenboard,wbec-pwm.yaml:  - Pavel Gasheev <pavel.gasheev@wirenboard.com>
Documentation/devicetree/bindings/rtc/wirenboard,wbec-rtc.yaml:  - Pavel Gasheev <pavel.gasheev@wirenboard.com>
Documentation/devicetree/bindings/power/supply/wirenboard,wbec-battery.yaml:  - Pavel Gasheev <pavel.gasheev@wirenboard.com>
Documentation/devicetree/bindings/power/wirenboard,wbec-power.yaml:  - Pavel Gasheev <pavel.gasheev@wirenboard.com>
Documentation/devicetree/bindings/mfd/wirenboard,wbec.yaml:  - Pavel Gasheev <pavel.gasheev@wirenboard.com>
Documentation/devicetree/bindings/iio/adc/wirenboard,wbec-adc.yaml:  - Pavel Gasheev <pavel.gasheev@wirenboard.com>
Documentation/devicetree/bindings/serial/wirenboard,wbec-uart.yaml:  - Pavel Gasheev <pavel.gasheev@wirenboard.com>
Documentation/devicetree/bindings/gpio/wirenboard,wbec-gpio.yaml:  - Pavel Gasheev <pavel.gasheev@wirenboard.com>
Documentation/devicetree/bindings/watchdog/wirenboard,wbec-watchdog.yaml:  - Pavel Gasheev <pavel.gasheev@wirenboard.com>
Documentation/driver-api/wbec.rst:        Pavel Gasheev <pavel.gasheev@wirenboard.com>

@taraant taraant requested a review from sikmir January 19, 2026 07:17
Copy link
Contributor

@vdromanov vdromanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

в итоге 3 коммита:
код, дтс, бамп

код откуда взялся? (если взялся - в чейнжлог написать хотя бы, откуда он)

Handle fragmented UART chunks by assembling complete frames before parsing. Add documentation comments for new helpers and RX/TX paths.
Implement a small TX window with per-frame expected ACK and proper echo
handling to tolerate uneven UART chunks. Add a delayed TX wake worker
to pace frames and avoid WBEC UART overruns. Reset/stop paths now clear
the FIFO and free all echo slots. Use a fixed echo size constant.
Introduce a strict TX FSM (IDLE → WAIT_Z → WAIT_STATUS_RESP) with a new TX queue and serialized sending;
the next frame is sent only after Z and status F06.

Remove the artificial inter-frame delay; drop debug messages/parameters/log infrastructure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants