* [PATCH V2] btsdio: fix tx error path
@ 2008-10-06 11:40 Tomas Winkler
2008-10-06 12:01 ` Marcel Holtmann
0 siblings, 1 reply; 5+ messages in thread
From: Tomas Winkler @ 2008-10-06 11:40 UTC (permalink / raw)
To: marcel; +Cc: linux-bluetooth, linux-kernel, Tomas Winkler
This patch fixes accumulating of the header
in case packet was requeued in the error path.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Cc: Marcel Holtmann <marcel@holtmann.org>
---
drivers/bluetooth/btsdio.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/bluetooth/btsdio.c b/drivers/bluetooth/btsdio.c
index 58630cc..c422e89 100644
--- a/drivers/bluetooth/btsdio.c
+++ b/drivers/bluetooth/btsdio.c
@@ -91,6 +91,7 @@ static int btsdio_tx_packet(struct btsdio_data *data, struct sk_buff *skb)
err = sdio_writesb(data->func, REG_TDAT, skb->data, skb->len);
if (err < 0) {
+ skb_pull(skb, 4);
sdio_writeb(data->func, 0x01, REG_PC_WRT, NULL);
return err;
}
--
1.5.4.3
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH V2] btsdio: fix tx error path
2008-10-06 11:40 [PATCH V2] btsdio: fix tx error path Tomas Winkler
@ 2008-10-06 12:01 ` Marcel Holtmann
2008-10-06 12:05 ` Winkler, Tomas
2009-02-02 14:15 ` Tomas Winkler
0 siblings, 2 replies; 5+ messages in thread
From: Marcel Holtmann @ 2008-10-06 12:01 UTC (permalink / raw)
To: Tomas Winkler; +Cc: linux-bluetooth, linux-kernel
Hi Tomas,
> This patch fixes accumulating of the header
> in case packet was requeued in the error path.
>
> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
> Cc: Marcel Holtmann <marcel@holtmann.org>
> ---
> drivers/bluetooth/btsdio.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/bluetooth/btsdio.c b/drivers/bluetooth/btsdio.c
> index 58630cc..c422e89 100644
> --- a/drivers/bluetooth/btsdio.c
> +++ b/drivers/bluetooth/btsdio.c
> @@ -91,6 +91,7 @@ static int btsdio_tx_packet(struct btsdio_data *data, struct sk_buff *skb)
>
> err = sdio_writesb(data->func, REG_TDAT, skb->data, skb->len);
> if (err < 0) {
> + skb_pull(skb, 4);
> sdio_writeb(data->func, 0x01, REG_PC_WRT, NULL);
> return err;
> }
thanks, but I already fixed that one manually in my tree :)
Regards
Marcel
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH V2] btsdio: fix tx error path
2008-10-06 12:01 ` Marcel Holtmann
@ 2008-10-06 12:05 ` Winkler, Tomas
2009-02-02 14:15 ` Tomas Winkler
1 sibling, 0 replies; 5+ messages in thread
From: Winkler, Tomas @ 2008-10-06 12:05 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: linux-bluetooth, linux-kernel
>-----Original Message-----
>From: Marcel Holtmann [mailto:marcel@holtmann.org]
>Sent: Monday, October 06, 2008 2:02 PM
>To: Winkler, Tomas
>Cc: linux-bluetooth@vger.kernel.org; linux-kernel@vger.kernel.org
>Subject: Re: [PATCH V2] btsdio: fix tx error path
>
>Hi Tomas,
>
>> This patch fixes accumulating of the header
>> in case packet was requeued in the error path.
>>
>> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
>> Cc: Marcel Holtmann <marcel@holtmann.org>
>> ---
>> drivers/bluetooth/btsdio.c | 1 +
>> 1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/drivers/bluetooth/btsdio.c b/drivers/bluetooth/btsdio.c
>> index 58630cc..c422e89 100644
>> --- a/drivers/bluetooth/btsdio.c
>> +++ b/drivers/bluetooth/btsdio.c
>> @@ -91,6 +91,7 @@ static int btsdio_tx_packet(struct btsdio_data
*data,
>struct sk_buff *skb)
>>
>> err =3D sdio_writesb(data->func, REG_TDAT, skb->data, skb->len);
>> if (err < 0) {
>> + skb_pull(skb, 4);
>> sdio_writeb(data->func, 0x01, REG_PC_WRT, NULL);
>> return err;
>> }
>
>thanks, but I already fixed that one manually in my tree :)
Yeah I guessed that, resubmitted just for the protocol.
Tomas
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH V2] btsdio: fix tx error path
2008-10-06 12:01 ` Marcel Holtmann
2008-10-06 12:05 ` Winkler, Tomas
@ 2009-02-02 14:15 ` Tomas Winkler
2009-02-02 15:29 ` Marcel Holtmann
1 sibling, 1 reply; 5+ messages in thread
From: Tomas Winkler @ 2009-02-02 14:15 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: linux-bluetooth, linux-kernel
On Mon, Oct 6, 2008 at 2:01 PM, Marcel Holtmann <marcel@holtmann.org> wrote:
> Hi Tomas,
>
>> This patch fixes accumulating of the header
>> in case packet was requeued in the error path.
>>
>> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
>> Cc: Marcel Holtmann <marcel@holtmann.org>
>> ---
>> drivers/bluetooth/btsdio.c | 1 +
>> 1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/drivers/bluetooth/btsdio.c b/drivers/bluetooth/btsdio.c
>> index 58630cc..c422e89 100644
>> --- a/drivers/bluetooth/btsdio.c
>> +++ b/drivers/bluetooth/btsdio.c
>> @@ -91,6 +91,7 @@ static int btsdio_tx_packet(struct btsdio_data *data, struct sk_buff *skb)
>>
>> err = sdio_writesb(data->func, REG_TDAT, skb->data, skb->len);
>> if (err < 0) {
>> + skb_pull(skb, 4);
>> sdio_writeb(data->func, 0x01, REG_PC_WRT, NULL);
>> return err;
>> }
>
> thanks, but I already fixed that one manually in my tree :)
>
> Regards
>
> Marcel
Would you mind to queue it for 27 stable? I'm always hitting this and
I guess I'm not only one.
http://marc.info/?l=linux-bluetooth&m=122513647106365&w=2
Thanks
Tomas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH V2] btsdio: fix tx error path
2009-02-02 14:15 ` Tomas Winkler
@ 2009-02-02 15:29 ` Marcel Holtmann
0 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2009-02-02 15:29 UTC (permalink / raw)
To: Tomas Winkler; +Cc: linux-bluetooth, linux-kernel
Hi Tomas,
> >> This patch fixes accumulating of the header
> >> in case packet was requeued in the error path.
> >>
> >> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
> >> Cc: Marcel Holtmann <marcel@holtmann.org>
> >> ---
> >> drivers/bluetooth/btsdio.c | 1 +
> >> 1 files changed, 1 insertions(+), 0 deletions(-)
> >>
> >> diff --git a/drivers/bluetooth/btsdio.c b/drivers/bluetooth/btsdio.c
> >> index 58630cc..c422e89 100644
> >> --- a/drivers/bluetooth/btsdio.c
> >> +++ b/drivers/bluetooth/btsdio.c
> >> @@ -91,6 +91,7 @@ static int btsdio_tx_packet(struct btsdio_data *data, struct sk_buff *skb)
> >>
> >> err = sdio_writesb(data->func, REG_TDAT, skb->data, skb->len);
> >> if (err < 0) {
> >> + skb_pull(skb, 4);
> >> sdio_writeb(data->func, 0x01, REG_PC_WRT, NULL);
> >> return err;
> >> }
> >
> > thanks, but I already fixed that one manually in my tree :)
> >
> > Regards
> >
> > Marcel
>
> Would you mind to queue it for 27 stable? I'm always hitting this and
> I guess I'm not only one.
> http://marc.info/?l=linux-bluetooth&m=122513647106365&w=2
since besides development hardware, nobody really has this issue and I
think it doesn't really justify pushing this to -stable. However this is
up to the -stable guys and you can just sent it to stable@kernel.org by
yourself if you wanna have it included. Just point them to
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff_plain;h=7644d63d1348ec044ccd8f775fefe5eb7cbcac69
and explain you reason for adding it to -stable.
Regards
Marcel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-02-02 15:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-06 11:40 [PATCH V2] btsdio: fix tx error path Tomas Winkler
2008-10-06 12:01 ` Marcel Holtmann
2008-10-06 12:05 ` Winkler, Tomas
2009-02-02 14:15 ` Tomas Winkler
2009-02-02 15:29 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox