summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s5p64x0/setup-spi.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-07-01 22:09:47 +0300
committerMarcel Holtmann <marcel@holtmann.org>2014-07-03 17:42:54 +0200
commit2a8357f2393d89a34b5a77051d29951af9646406 (patch)
treed7ef5335b4809ec6052181fee3e1f835eef6f880 /arch/arm/mach-s5p64x0/setup-spi.c
parentc83ed19d23909db10a4402d4c6c0164bab9a9cf0 (diff)
downloadlinux-2a8357f2393d89a34b5a77051d29951af9646406.tar.bz2
Bluetooth: Fix redundant device (un)blocked events
For the Block/Unblock Device mgmt commands we should only emit the Blocked/Unblocked events on any socket except for the one which received the command. The code was previously incorrectly trying to look up a non-existent pending command and thereby ending up not skipping the command socket for the event. We can simplify the code a lot by simply sending the event directly from the command handler functions. We have the reference to the command socket available there which makes it easy to pass to the mgmt_event function for skipping. The only notable side-effect of this is that the old blacklisting ioctl's no-longer cause mgmt events to be emitted, however as user space versions using these ioctl's are not mgmt-aware this is acceptable. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'arch/arm/mach-s5p64x0/setup-spi.c')
0 files changed, 0 insertions, 0 deletions