Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 272045 Details for
Bug 165399
sci-libs/linux-gpib (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for agilent 82357 card
patch_agilent_82357 (text/plain), 1.73 KB, created by
Joop Stakenborg
on 2011-05-04 09:41:49 UTC
(
hide
)
Description:
patch for agilent 82357 card
Filename:
MIME Type:
Creator:
Joop Stakenborg
Created:
2011-05-04 09:41:49 UTC
Size:
1.73 KB
patch
obsolete
>--- linux-gpib-3.2.15/drivers/gpib/agilent_82357a/agilent_82357a.c 2010-08-23 18:02:36.000000000 +0200 >+++ linux-gpib-3.2.15-0-orig/drivers/gpib/agilent_82357a/agilent_82357a.c 2011-05-04 10:56:29.029807784 +0200 >@@ -31,7 +31,7 @@ > > #define MAX_NUM_82357A_INTERFACES 128 > static struct usb_interface *agilent_82357a_driver_interfaces[MAX_NUM_82357A_INTERFACES]; >-static DECLARE_MUTEX(agilent_82357a_hotplug_lock); >+static DEFINE_SEMAPHORE(agilent_82357a_hotplug_lock); > > static void agilent_82357a_bulk_complete(struct urb *urb PT_REGS_ARG) > { >@@ -80,7 +80,7 @@ > } > usb_dev = interface_to_usbdev(a_priv->bus_interface); > out_pipe = usb_sndbulkpipe(usb_dev, a_priv->bulk_out_endpoint); >- init_MUTEX_LOCKED(&context.complete); >+ sema_init(&context.complete, 0); > context.timed_out = 0; > usb_fill_bulk_urb(a_priv->bulk_urb, usb_dev, out_pipe, data, data_length, > &agilent_82357a_bulk_complete, &context); >@@ -170,7 +170,7 @@ > } > usb_dev = interface_to_usbdev(a_priv->bus_interface); > in_pipe = usb_rcvbulkpipe(usb_dev, AGILENT_82357_BULK_IN_ENDPOINT); >- init_MUTEX_LOCKED(&context.complete); >+ sema_init(&context.complete, 0); > context.timed_out = 0; > usb_fill_bulk_urb(a_priv->bulk_urb, usb_dev, in_pipe, data, data_length, > &agilent_82357a_bulk_complete, &context); >@@ -1142,10 +1142,10 @@ > return -ENOMEM; > a_priv = board->private_data; > memset(a_priv, 0, sizeof(agilent_82357a_private_t)); >- init_MUTEX(&a_priv->bulk_transfer_lock); >- init_MUTEX(&a_priv->bulk_alloc_lock); >- init_MUTEX(&a_priv->control_alloc_lock); >- init_MUTEX(&a_priv->interrupt_alloc_lock); >+ sema_init(&a_priv->bulk_transfer_lock,1); >+ sema_init(&a_priv->bulk_alloc_lock,1); >+ sema_init(&a_priv->control_alloc_lock,1); >+ sema_init(&a_priv->interrupt_alloc_lock,1); > return 0; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 165399
:
109189
|
109190
|
109192
|
109303
|
109305
|
109306
|
109307
|
116590
|
116591
|
116593
|
116595
|
118700
|
118701
|
118703
|
118705
|
135320
|
135322
|
135324
|
143853
|
143854
|
143855
|
143857
|
165577
|
165579
|
165581
| 272045 |
272047