]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ieee802154: atusb: add support for trac feature
authorAlexander Aring <aahringo@redhat.com>
Mon, 5 Sep 2022 20:34:12 +0000 (22:34 +0200)
committerStefan Schmidt <stefan@datenfreihafen.org>
Wed, 12 Oct 2022 17:43:20 +0000 (19:43 +0200)
commitf8be91fbfc7dd2d69762d510cc29c3b52d3ef4db
tree2ce23f3a9d0320a2e810b2c2afc06f67e698ebf5
parent3a22550ab50a2bed1779c7d03c9f0239d33cc514
ieee802154: atusb: add support for trac feature

This patch adds support for reading the trac register if atusb firmware
reports tx done. There is currently a feature to compare a sequence
number, if the payload is 1 it tells the driver only the sequence number
is available if it's two there is additional the trac status register as
payload.

Currently the atusb_in_good() function determines if it's a tx done or
rx done if according the payload length. This patch is doing the same
and assumes this behaviour.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20220905203412.1322947-10-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
drivers/net/ieee802154/atusb.c