linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/6] Error handling in HCI request framework
@ 2013-03-07 21:48 Andre Guedes
  2013-03-07 21:48 ` [PATCH v2 1/6] Bluetooth: Fix __hci_req_sync Andre Guedes
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Andre Guedes @ 2013-03-07 21:48 UTC (permalink / raw)
  To: linux-bluetooth

Hi all,

This v2 is based on Johan's suggestions about the previous patch set.
The main comments were:
- Replace EINVAL by ENODATA in a separated patch.
- Save the exact error code in struct hci_request instead of having just a
  flag to indicate an error has occurred.
- Check req->err before before empty queue check.

I also added a new patch (Patch 1) to fix a problem found in __hci_req_sync
while I was working on this patch set.

Regards,

Andre

Andre Guedes (6):
  Bluetooth: Fix __hci_req_sync
  Bluetooth: Return ENODATA in hci_req_run
  Bluetooth: Check hci_req_run returning value in __hci_req_sync
  Bluetooth: HCI request error handling
  Bluetooth: Make hci_req_add returning void
  Bluetooth: Check req->err in hci_req_add

 include/net/bluetooth/hci_core.h |  7 +++++-
 net/bluetooth/hci_core.c         | 46 +++++++++++++++++++++++++++-------------
 2 files changed, 37 insertions(+), 16 deletions(-)

-- 
1.8.1.2


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-03-08 14:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-07 21:48 [PATCH v2 0/6] Error handling in HCI request framework Andre Guedes
2013-03-07 21:48 ` [PATCH v2 1/6] Bluetooth: Fix __hci_req_sync Andre Guedes
2013-03-07 21:48 ` [PATCH v2 2/6] Bluetooth: Return ENODATA in hci_req_run Andre Guedes
2013-03-07 21:48 ` [PATCH v2 3/6] Bluetooth: Check hci_req_run returning value in __hci_req_sync Andre Guedes
2013-03-07 21:48 ` [PATCH v2 4/6] Bluetooth: HCI request error handling Andre Guedes
2013-03-08  7:49   ` Johan Hedberg
2013-03-07 21:48 ` [PATCH v2 5/6] Bluetooth: Make hci_req_add returning void Andre Guedes
2013-03-07 21:48 ` [PATCH v2 6/6] Bluetooth: Check req->err in hci_req_add Andre Guedes
2013-03-08  7:50   ` Johan Hedberg
2013-03-08 11:08     ` Andrei Emeltchenko
2013-03-08 11:25       ` Johan Hedberg
2013-03-08 11:34         ` Johan Hedberg
2013-03-08 14:07           ` Andre Guedes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).