]> 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)
commitfffe92705eb8e64febdeeb8f0885ffc8bdb305cb
tree0dc7508fbc51b3931c81e5e5b5bf48f37604ebf0
parentb7d01e70263644feb8dc7dc7e974c908b837537e
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