Skip to contentSkip to conversation

Remove URB_ASYNC_UNLINK from last patch

PATCH In review Karsten Keil 2 participants 4 messages Sep 19, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Remove URB_ASYNC_UNLINK from last patch

Sorry, tested the wrong HEAD for compile.

- usb_unlink_urb is always async now, so URB_ASYNC_UNLINK was removed from core USB and we must do as well.

---

 drivers/isdn/hisax/st5481_b.c   |    2 --
 drivers/isdn/hisax/st5481_usb.c |    2 --
 2 files changed, 0 insertions(+), 4 deletions(-)

2eb47d73594e18ef894b94a26bea26962eca1374

drivers/isdn/hisax/st5481_b.c +0 -2
@@ -209,9 +209,7 @@ static void st5481B_mode(struct st5481_b
 	bcs->mode = mode;
 
 	// Cancel all USB transfers on this B channel
-	b_out->urb[0]->transfer_flags |= URB_ASYNC_UNLINK;
 	usb_unlink_urb(b_out->urb[0]);
-	b_out->urb[1]->transfer_flags |= URB_ASYNC_UNLINK;
 	usb_unlink_urb(b_out->urb[1]);
 	b_out->busy = 0;
 
drivers/isdn/hisax/st5481_usb.c +0 -2
@@ -645,9 +645,7 @@ void st5481_in_mode(struct st5481_in *in
 
 	in->mode = mode;
 
-	in->urb[0]->transfer_flags |= URB_ASYNC_UNLINK;
 	usb_unlink_urb(in->urb[0]);
-	in->urb[1]->transfer_flags |= URB_ASYNC_UNLINK;
 	usb_unlink_urb(in->urb[1]);
 
 	if (in->mode != L1_MODE_NULL) {
Signature · 3 lines
Karsten Keil
SuSE Labs
ISDN development
#1 lore raw
Quoted 8 lines · Karsten Keil

Sorry, tested the wrong HEAD for compile.

- usb_unlink_urb is always async now, so URB_ASYNC_UNLINK was removed from core USB and we must do as well.

Is here a way in git to "merge" these two patches ?

Signature · 3 lines
Karsten Keil
SuSE Labs
ISDN development
#2 lore raw
Quoted 2 lines · Karsten Keil

Is here a way in git to "merge" these two patches ?

Just do "git diff a..b" to generate the diff over both of them (where "a" is the commit before the two, and "b" is the last one, of course).

Btw, the patch doesn't apply any more. I already applied your earlier one.

Linus

#3 lore raw
Quoted 8 lines · Linus Torvalds
Quoted 2 lines · Karsten Keil

Is here a way in git to "merge" these two patches ?

Just do "git diff a..b" to generate the diff over both of them (where "a" is the commit before the two, and "b" is the last one, of course).

Thank you.

Quoted 3 lines

Btw, the patch doesn't apply any more. I already applied your earlier one.

You should only need the second part then, which removes the not longer needed URB_ASYNC_UNLINK settings, this is this one

Subject: [PATCH 2/2] Remove URB_ASYNC_UNLINK from last patch

Sorry, tested the wrong HEAD for compile.

- usb_unlink_urb is always async now, so URB_ASYNC_UNLINK was removed from core USB and we must do as well.

---

 drivers/isdn/hisax/st5481_b.c   |    2 --
 drivers/isdn/hisax/st5481_usb.c |    2 --
 2 files changed, 0 insertions(+), 4 deletions(-)

7c3b2c6e0875808314829f11d8a317af2b1b549c

drivers/isdn/hisax/st5481_b.c +0 -2
@@ -209,9 +209,7 @@ static void st5481B_mode(struct st5481_b
 	bcs->mode = mode;
 
 	// Cancel all USB transfers on this B channel
-	b_out->urb[0]->transfer_flags |= URB_ASYNC_UNLINK;
 	usb_unlink_urb(b_out->urb[0]);
-	b_out->urb[1]->transfer_flags |= URB_ASYNC_UNLINK;
 	usb_unlink_urb(b_out->urb[1]);
 	b_out->busy = 0;
 
drivers/isdn/hisax/st5481_usb.c +0 -2
@@ -645,9 +645,7 @@ void st5481_in_mode(struct st5481_in *in
 
 	in->mode = mode;
 
-	in->urb[0]->transfer_flags |= URB_ASYNC_UNLINK;
 	usb_unlink_urb(in->urb[0]);
-	in->urb[1]->transfer_flags |= URB_ASYNC_UNLINK;
 	usb_unlink_urb(in->urb[1]);
 
 	if (in->mode != L1_MODE_NULL) {
Signature · 3 lines
Karsten Keil
SuSE Labs
ISDN development