]> git.baikalelectronics.ru Git - kernel.git/commit
mrf24j40: avoid uninitialized byte in SPI transfer to radio.
authorWalter Mack <wmack@componentsw.com>
Tue, 12 Jul 2016 03:02:16 +0000 (20:02 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 12 Jul 2016 09:54:53 +0000 (11:54 +0200)
commit81c6cddd7cbf552da42ef8ea66162a83f3e2339f
tree0dc7508fbc51b3931c81e5e5b5bf48f37604ebf0
parent98aebd4524512f6cbd7dddf7afa7d7e231dab2ff
mrf24j40: avoid uninitialized byte in SPI transfer to radio.

isr function issues SPI read command to mrf to obtain INTSTAT.
SPI transfer is 2 bytes, but value of 2nd byte is not defined.
This had the effect that only the first ISR worked as intended. The
second ISR read incorrect INTSTAT values. Observed on Raspberry PI B+.

Signed-off-by: Walter Mack <wmack@componentsw.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/mrf24j40.c