]> git.baikalelectronics.ru Git - kernel.git/commit
mrf24j40: rework tx handling to async tx handling
authorAlexander Aring <alex.aring@gmail.com>
Mon, 21 Sep 2015 09:24:34 +0000 (11:24 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 22 Sep 2015 09:51:22 +0000 (11:51 +0200)
commit21c1bd15c7e154a90661d2c71ed36fbf51803964
tree96066b8b60f2db0b2360cb0c38f021507e671c6a
parentf1f7b99217e73d808bb3722b6088b709306f00b0
mrf24j40: rework tx handling to async tx handling

This patch reworks the current transmit API to spi_async handling. We
removed the error handling check, because mac802154 has no chance to
report it. Also the transmit timeout handling can't be handled by xmit
async handling, for this usecase we need to implement the netdev
watchdog. These are all unlikely cases which we drop now and should be
provided by netdev watchdog.

We also drop the bit setting for TXNACKREQ at register TXNCON, this is
not necessary. The TXNCON register should set only once for each frame,
previous settings doesn't matter.

Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/mrf24j40.c