Go to file
John Keeping 67d8cee432 Bluetooth: use wait_event API instead of open-coding it
I've seen timeout errors from HCI commands where it looks like
schedule_timeout() has returned immediately; additional logging for the
error case gives:

	req_status=1 req_result=0 remaining=10000 jiffies

so the device is still in state HCI_REQ_PEND and the value returned by
schedule_timeout() is the same as the original timeout (HCI_INIT_TIMEOUT
on a system with HZ=1000).

Use wait_event_interruptible_timeout() instead of open-coding similar
behaviour which is subject to the spurious failure described above.

Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2018-05-18 06:37:51 +02:00
arch arm64: dts: apq8096-db820c: enable bluetooth node 2018-05-18 06:37:50 +02:00
block
certs
crypto
Documentation dt-bindings: net: bluetooth: Add qualcomm-bluetooth 2018-05-18 06:37:50 +02:00
drivers Bluetooth: btbcm: btbcm_initialize(): Initialize hw_name to "BCM" 2018-05-18 06:37:51 +02:00
firmware
fs
include
init
ipc
kernel
lib
LICENSES
mm
net Bluetooth: use wait_event API instead of open-coding it 2018-05-18 06:37:51 +02:00
samples
scripts
security
sound
tools tc-testing: fixed copy-pasting error in ife tests 2018-05-17 16:31:43 -04:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.