From: Marcel Holtmann Date: Wed, 28 Jan 2015 19:09:55 +0000 (-0800) Subject: Bluetooth: Perform a power cycle when receiving hardware error event X-Git-Tag: fixes-v4.0-rc1~150^2~73^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7741d16a57cbf97eebe53f27e8216b1ff20e20c;p=pandora-kernel.git Bluetooth: Perform a power cycle when receiving hardware error event When receiving a HCI Hardware Error event, the controller should be assumed to be non-functional until issuing a HCI Reset command. The Bluetooth hardware errors are vendor specific and so add a new hdev->hw_error callback that drivers can provide to run extra code to handle the hardware error. After completing the vendor specific error handling perform a full reset of the Bluetooth stack by closing and re-opening the transport. Based-on-patch-by: Johan Hedberg Signed-off-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- Reading git-diff-tree failed