* Pull request: bluetooth-2.6 2009-12-17
@ 2009-12-17 20:22 Marcel Holtmann
2009-12-17 20:22 ` [PATCH 1/5] Bluetooth: Fix PTR_ERR return of wrong pointer in hidp_setup_hid() Marcel Holtmann
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Marcel Holtmann @ 2009-12-17 20:22 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
Hi Dave,
here are a few fixes for inclusion into 2.6.33 kernel. They are all small
and mostly one-liners.
Regards
Marcel
Please pull from
git://git.kernel.org/pub/scm/linux/kernel/git/holtmann/bluetooth-2.6.git master
This will update the following files:
drivers/bluetooth/btusb.c | 1 +
net/bluetooth/hidp/core.c | 2 +-
net/bluetooth/l2cap.c | 5 +++--
3 files changed, 5 insertions(+), 3 deletions(-)
through these ChangeSets:
Andrei Emeltchenko (1):
Bluetooth: Fix L2CAP locking scheme regression
Gustavo F. Padovan (2):
Bluetooth: Fix unset of RemoteBusy flag for L2CAP
Bluetooth: Ack L2CAP I-frames before retransmit missing packet
Oliver Neukum (1):
Bluetooth: Prevent ill-timed autosuspend in USB driver
Roel Kluin (1):
Bluetooth: Fix PTR_ERR return of wrong pointer in hidp_setup_hid()
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/5] Bluetooth: Fix PTR_ERR return of wrong pointer in hidp_setup_hid()
2009-12-17 20:22 Pull request: bluetooth-2.6 2009-12-17 Marcel Holtmann
@ 2009-12-17 20:22 ` Marcel Holtmann
2009-12-17 20:22 ` [PATCH 2/5] Bluetooth: Fix unset of RemoteBusy flag for L2CAP Marcel Holtmann
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Marcel Holtmann @ 2009-12-17 20:22 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
From: Roel Kluin <roel.kluin@gmail.com>
Return the PTR_ERR of the correct pointer.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
---
net/bluetooth/hidp/core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index 5697500..18e7f5a 100644
--- a/net/bluetooth/hidp/core.c
+++ b/net/bluetooth/hidp/core.c
@@ -770,7 +770,7 @@ static int hidp_setup_hid(struct hidp_session *session,
hid = hid_allocate_device();
if (IS_ERR(hid))
- return PTR_ERR(session->hid);
+ return PTR_ERR(hid);
session->hid = hid;
session->req = req;
--
1.6.5.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/5] Bluetooth: Fix unset of RemoteBusy flag for L2CAP
2009-12-17 20:22 Pull request: bluetooth-2.6 2009-12-17 Marcel Holtmann
2009-12-17 20:22 ` [PATCH 1/5] Bluetooth: Fix PTR_ERR return of wrong pointer in hidp_setup_hid() Marcel Holtmann
@ 2009-12-17 20:22 ` Marcel Holtmann
2009-12-17 20:22 ` [PATCH 3/5] Bluetooth: Ack L2CAP I-frames before retransmit missing packet Marcel Holtmann
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Marcel Holtmann @ 2009-12-17 20:22 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
From: Gustavo F. Padovan <gustavo@las.ic.unicamp.br>
RemoteBusy flag need to be unset before l2cap_ertm_send(), otherwise
l2cap_ertm_send() will return without sending packets because it checks
that flag before start sending.
Signed-off-by: Gustavo F. Padovan <gustavo@las.ic.unicamp.br>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
---
net/bluetooth/l2cap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index 5129b88..7db9a1f 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -3435,8 +3435,8 @@ static inline int l2cap_data_channel_sframe(struct sock *sk, u16 rx_control, str
(pi->unacked_frames > 0))
__mod_retrans_timer();
- l2cap_ertm_send(sk);
pi->conn_state &= ~L2CAP_CONN_REMOTE_BUSY;
+ l2cap_ertm_send(sk);
}
break;
--
1.6.5.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/5] Bluetooth: Ack L2CAP I-frames before retransmit missing packet
2009-12-17 20:22 Pull request: bluetooth-2.6 2009-12-17 Marcel Holtmann
2009-12-17 20:22 ` [PATCH 1/5] Bluetooth: Fix PTR_ERR return of wrong pointer in hidp_setup_hid() Marcel Holtmann
2009-12-17 20:22 ` [PATCH 2/5] Bluetooth: Fix unset of RemoteBusy flag for L2CAP Marcel Holtmann
@ 2009-12-17 20:22 ` Marcel Holtmann
2009-12-17 20:22 ` [PATCH 4/5] Bluetooth: Fix L2CAP locking scheme regression Marcel Holtmann
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Marcel Holtmann @ 2009-12-17 20:22 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
From: Gustavo F. Padovan <gustavo@las.ic.unicamp.br>
Moving the Ack to before l2cap_retransmit_frame() we can avoid the
case where txWindow is full and the packet can't be retransmited.
Signed-off-by: Gustavo F. Padovan <gustavo@las.ic.unicamp.br>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
---
net/bluetooth/l2cap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index 7db9a1f..fb0f81d 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -3471,9 +3471,9 @@ static inline int l2cap_data_channel_sframe(struct sock *sk, u16 rx_control, str
pi->conn_state &= ~L2CAP_CONN_REMOTE_BUSY;
if (rx_control & L2CAP_CTRL_POLL) {
- l2cap_retransmit_frame(sk, tx_seq);
pi->expected_ack_seq = tx_seq;
l2cap_drop_acked_frames(sk);
+ l2cap_retransmit_frame(sk, tx_seq);
l2cap_ertm_send(sk);
if (pi->conn_state & L2CAP_CONN_WAIT_F) {
pi->srej_save_reqseq = tx_seq;
--
1.6.5.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 4/5] Bluetooth: Fix L2CAP locking scheme regression
2009-12-17 20:22 Pull request: bluetooth-2.6 2009-12-17 Marcel Holtmann
` (2 preceding siblings ...)
2009-12-17 20:22 ` [PATCH 3/5] Bluetooth: Ack L2CAP I-frames before retransmit missing packet Marcel Holtmann
@ 2009-12-17 20:22 ` Marcel Holtmann
2009-12-17 20:22 ` [PATCH 5/5] Bluetooth: Prevent ill-timed autosuspend in USB driver Marcel Holtmann
2009-12-19 4:09 ` Pull request: bluetooth-2.6 2009-12-17 David Miller
5 siblings, 0 replies; 7+ messages in thread
From: Marcel Holtmann @ 2009-12-17 20:22 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
From: Andrei Emeltchenko <andrei.emeltchenko@nokia.com>
When locking was introduced the error path branch was not taken
into account. Error was found in sparse code checking. Kudos to
Jani Nikula.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@nokia.com>
Acked-by: Gustavo F. Padovan <gustavo@las.ic.unicamp.br>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
---
net/bluetooth/l2cap.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index fb0f81d..1120cf1 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -1212,6 +1212,7 @@ static void l2cap_monitor_timeout(unsigned long arg)
bh_lock_sock(sk);
if (l2cap_pi(sk)->retry_count >= l2cap_pi(sk)->remote_max_tx) {
l2cap_send_disconn_req(l2cap_pi(sk)->conn, sk);
+ bh_unlock_sock(sk);
return;
}
--
1.6.5.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 5/5] Bluetooth: Prevent ill-timed autosuspend in USB driver
2009-12-17 20:22 Pull request: bluetooth-2.6 2009-12-17 Marcel Holtmann
` (3 preceding siblings ...)
2009-12-17 20:22 ` [PATCH 4/5] Bluetooth: Fix L2CAP locking scheme regression Marcel Holtmann
@ 2009-12-17 20:22 ` Marcel Holtmann
2009-12-19 4:09 ` Pull request: bluetooth-2.6 2009-12-17 David Miller
5 siblings, 0 replies; 7+ messages in thread
From: Marcel Holtmann @ 2009-12-17 20:22 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
From: Oliver Neukum <oliver@neukum.org>
The device must be marked busy as it receives data.
Signed-off-by: Oliver Neukum <oliver@neukum.org>
Tested-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
---
drivers/bluetooth/btusb.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 4d29059..a699f09 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -307,6 +307,7 @@ static void btusb_bulk_complete(struct urb *urb)
return;
usb_anchor_urb(urb, &data->bulk_anchor);
+ usb_mark_last_busy(data->udev);
err = usb_submit_urb(urb, GFP_ATOMIC);
if (err < 0) {
--
1.6.5.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: Pull request: bluetooth-2.6 2009-12-17
2009-12-17 20:22 Pull request: bluetooth-2.6 2009-12-17 Marcel Holtmann
` (4 preceding siblings ...)
2009-12-17 20:22 ` [PATCH 5/5] Bluetooth: Prevent ill-timed autosuspend in USB driver Marcel Holtmann
@ 2009-12-19 4:09 ` David Miller
5 siblings, 0 replies; 7+ messages in thread
From: David Miller @ 2009-12-19 4:09 UTC (permalink / raw)
To: marcel; +Cc: netdev
From: Marcel Holtmann <marcel@holtmann.org>
Date: Thu, 17 Dec 2009 12:22:42 -0800
> here are a few fixes for inclusion into 2.6.33 kernel. They are all small
> and mostly one-liners.
Pulled, thanks a lot!
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-12-19 4:09 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-17 20:22 Pull request: bluetooth-2.6 2009-12-17 Marcel Holtmann
2009-12-17 20:22 ` [PATCH 1/5] Bluetooth: Fix PTR_ERR return of wrong pointer in hidp_setup_hid() Marcel Holtmann
2009-12-17 20:22 ` [PATCH 2/5] Bluetooth: Fix unset of RemoteBusy flag for L2CAP Marcel Holtmann
2009-12-17 20:22 ` [PATCH 3/5] Bluetooth: Ack L2CAP I-frames before retransmit missing packet Marcel Holtmann
2009-12-17 20:22 ` [PATCH 4/5] Bluetooth: Fix L2CAP locking scheme regression Marcel Holtmann
2009-12-17 20:22 ` [PATCH 5/5] Bluetooth: Prevent ill-timed autosuspend in USB driver Marcel Holtmann
2009-12-19 4:09 ` Pull request: bluetooth-2.6 2009-12-17 David Miller
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).