[PATCH] qla1280: use DMA_64BIT_MASK instead of ~ 0ULL

2007-04-17 Thread Matthias Kaehlcke
QLA1280: call pci_set_dma_mask with DMA_64BIT_MASK instead of ~ 0ULL Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] --- diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c index 6777e8a..54d8bdf 100644 --- a/drivers/scsi/qla1280.c +++ b/drivers/scsi/qla1280.c @@ -4293,7 +4293,7

[PATCH] SBS ACPI: convert binary semaphore to mutex

2007-04-18 Thread Matthias Kaehlcke
. please let me know your comments if i misinterpreted the article or if you see something wrong in the patch -- Smart Battery System ACPI driver: convert binary semaphore to mutex Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c index

[PATCH] use mutex instead of binary semaphore in FORE Systems 200E-series driver for ATM

2007-04-19 Thread Matthias Kaehlcke
use mutex instead of binary semaphore in FORE Systems 200E-series driver for ATM Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] --- diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c index a7c0ed3..7ab827d 100644 --- a/drivers/atm/fore200e.c +++ b/drivers/atm/fore200e.c @@ -1502,9

[PATCH] drivers/base/attribute_container.c: use mutex instead of binary semaphore

2007-04-19 Thread Matthias Kaehlcke
use mutex instead of binary semaphore in drivers/base/attribute_container.c Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/base/attribute_container.c b/drivers/base/attribute_container.c index 073..1ec0654 100644 --- a/drivers/base/attribute_container.c +++ b

Re: [PATCH] fixed spinlock use in hysdn_log_close()

2007-04-21 Thread Matthias Kaehlcke
El Fri, Apr 20, 2007 at 05:41:46PM -0700 Andrew Morton ha dit: On Sat, 14 Apr 2007 07:09:07 +0200 Matthias Kaehlcke [EMAIL PROTECTED] wrote: fixed incorrect spinlock use in hysdn_log_close(). the function declared a spinlock on the stack and used it to 'protect' a shared driver

[PATCH] use spinlock instead of binary mutex in CDU-31A driver

2007-04-22 Thread Matthias Kaehlcke
use spinlock instead of binary mutex in CDU-31A driver Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/cdrom/cdu31a.c b/drivers/cdrom/cdu31a.c index 2157c58..d3649e4 100644 --- a/drivers/cdrom/cdu31a.c +++ b/drivers/cdrom/cdu31a.c @@ -263,7 +263,7 @@ static int

[PATCH] use spinlock instead of binary mutex in idt77252 driver

2007-04-22 Thread Matthias Kaehlcke
use spinlock instead of binary mutex in idt77252 driver Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c index b4b8014..e3cf141 100644 --- a/drivers/atm/idt77252.c +++ b/drivers/atm/idt77252.c @@ -2430,7 +2430,7 @@ idt77252_open

Re: [PATCH] use spinlock instead of binary mutex in CDU-31A driver

2007-04-22 Thread Matthias Kaehlcke
El Mon, Apr 23, 2007 at 01:25:58AM +0200 Andi Kleen ha dit: Matthias Kaehlcke [EMAIL PROTECTED] writes: -static DECLARE_MUTEX(sony_sem);/* Semaphore for drive hardware access */ +static DEFINE_MUTEX(sony_mtx); /* Mutex for drive hardware access */ That's

Re: [PATCH] use spinlock instead of binary mutex in idt77252 driver

2007-04-23 Thread Matthias Kaehlcke
El Sun, Apr 22, 2007 at 07:50:36PM -0400 Kyle Moffett ha dit: On Apr 22, 2007, at 17:39:59, Matthias Kaehlcke wrote: use spinlock instead of binary mutex in idt77252 driver I think you really meant: Use mutex instead of binary semaphore in idt77252 driver, since this is a binary semaphore

[PATCH] use mutex instead of binary semaphore in CDU-31A driver

2007-04-23 Thread Matthias Kaehlcke
use mutex instead of binary semaphore in CDU-31A driver Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/cdrom/cdu31a.c b/drivers/cdrom/cdu31a.c index 2157c58..d3649e4 100644 --- a/drivers/cdrom/cdu31a.c +++ b/drivers/cdrom/cdu31a.c @@ -263,7 +263,7 @@ static int

[PATCH] use mutex instead of binary semaphore in idt77252 driver

2007-04-23 Thread Matthias Kaehlcke
use mutex instead of binary semaphore in idt77252 driver Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c index b4b8014..e3cf141 100644 --- a/drivers/atm/idt77252.c +++ b/drivers/atm/idt77252.c @@ -2430,7 +2430,7 @@ idt77252_open

Re: [PATCH] use spinlock instead of binary mutex in idt77252 driver

2007-04-23 Thread Matthias Kaehlcke
itself. http://lwn.net/Articles/167034/ please correct me if i'm wrong, i'm just doing my first steps with linux kernel development regards -- Matthias Kaehlcke Linux Application Developer Barcelona C treats you like a consenting adult. Pascal treats you like a naughty child. Ada

Re: [PATCH] use spinlock instead of binary mutex in idt77252 driver

2007-04-23 Thread Matthias Kaehlcke
the mutex header nor implementation files handle things different for CONFIG_SMP. thanks for your comments On Mon, Apr 23, 2007 at 09:40:26AM +0200, Matthias Kaehlcke wrote: El Mon, Apr 23, 2007 at 09:16:08AM +0200 Eddie C. Dost ha dit: Please note that the semaphore is used to lock

Re: [PATCH] use spinlock instead of binary mutex in idt77252 driver

2007-04-23 Thread Matthias Kaehlcke
El Mon, Apr 23, 2007 at 09:17:53AM +0100 Christoph Hellwig ha dit: On Sun, Apr 22, 2007 at 07:50:36PM -0400, Kyle Moffett wrote: On Apr 22, 2007, at 17:39:59, Matthias Kaehlcke wrote: use spinlock instead of binary mutex in idt77252 driver I think you really meant: Use mutex instead

[PATCH] use mutex instead of semaphore in RocketPort driver

2007-04-24 Thread Matthias Kaehlcke
the RocketPort driver uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/char/rocket.c b/drivers/char/rocket.c index 76357c8..faa5dd5 100644 --- a/drivers/char/rocket.c +++ b/drivers/char

Re: [PATCH] use mutex instead of semaphore in RocketPort driver

2007-04-24 Thread Matthias Kaehlcke
El Tue, Apr 24, 2007 at 07:53:04PM +0200 Oliver Neukum ha dit: Am Dienstag, 24. April 2007 19:49 schrieb Matthias Kaehlcke: @@ -1706,7 +1706,7 @@ static int rp_write(struct tty_struct *tty, if (count = 0 || rocket_paranoia_check(info, rp_write)) return 0

[PATCH] use mutex instead of semaphore in SBPCD driver

2007-04-24 Thread Matthias Kaehlcke
the SBPCD driver uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/cdrom/sbpcd.c b/drivers/cdrom/sbpcd.c index a1283b1..5c6a8d3 100644 --- a/drivers/cdrom/sbpcd.c +++ b/drivers/cdrom/sbpcd.c

[PATCH] use mutex instead of semaphore in TPM driver

2007-04-24 Thread Matthias Kaehlcke
the TPM driver uses two semaphores as mutexes. use the mutex API instead of the (binary) semaphores Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/char/tpm/tpm.c b/drivers/char/tpm/tpm.c index e5a254a..0805d39 100644 --- a/drivers/char/tpm/tpm.c +++ b/drivers/char

[PATCH] use mutex instead of semaphore in Sony PI driver

2007-04-24 Thread Matthias Kaehlcke
the Sony Programmable I/O Control driver uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c index 7823757..878d8d0 100644 --- a/drivers/char/sonypi.c

[PATCH] use mutex instead of semaphore in DMA pool handler

2007-04-24 Thread Matthias Kaehlcke
the DMA pool handler uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/base/dmapool.c b/drivers/base/dmapool.c index cd467c9..9406259 100644 --- a/drivers/base/dmapool.c +++ b/drivers/base

Re: [PATCH] use mutex instead of semaphore in RocketPort driver

2007-04-25 Thread Matthias Kaehlcke
El Wed, Apr 25, 2007 at 10:36:38AM +0530 Satyam Sharma ha dit: Hi Matthias, On 4/25/07, Robert Hancock [EMAIL PROTECTED] wrote: Matthias Kaehlcke wrote: El Tue, Apr 24, 2007 at 07:53:04PM +0200 Oliver Neukum ha dit: Am Dienstag, 24. April 2007 19:49 schrieb Matthias Kaehlcke

[PATCH] use mutex instead of semaphore in RocketPort driver v2

2007-04-25 Thread Matthias Kaehlcke
the RocketPort driver uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/char/rocket.c b/drivers/char/rocket.c index 76357c8..7d23790 100644 --- a/drivers/char/rocket.c +++ b/drivers/char

[PATCH] include KERN_* constant in printk() calls in arch/i386/mach-default/setup.c

2007-04-14 Thread Matthias Kaehlcke
include KERN_* constant in printk() calls in arch/i386/mach-default/setup.c Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] --- diff --git a/arch/i386/mach-default/setup.c b/arch/i386/mach-default/setup.c index c788162..f1891b6 100644 --- a/arch/i386/mach-default/setup.c +++ b/arch/i386/mach

[PATCH] fixed spinlock use in hysdn_log_close()

2007-04-14 Thread Matthias Kaehlcke
fixed incorrect spinlock use in hysdn_log_close(). the function declared a spinlock on the stack and used it to 'protect' a shared driver structure. the patch removes the declaration of hysdn_lock and uses card-hysdn_lock instead. Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] --- diff

Re: Linux page cache issue?

2007-03-28 Thread Matthias Kaehlcke
according to the chapter Linux Kernel Overview of the kernelhacking-HOWTO the page cache holds pages associated with *open* files: The Page Cache The page cache is made up of pages, each of which refers to a 4kB portion of data associated with an open file. The data contained in a page may come

Re: On thread scheduling

2007-09-14 Thread Matthias Kaehlcke
be as short as possible, otherwise you risk starving of the rest of your systems processes. -- Matthias Kaehlcke Linux Application Developer Barcelona Representation of the world, like the world itself, is the work of men; they describe it from their own point of view, which

[PATCH] QLogic InfiniPath: convert ipath_eep_sem to mutex

2007-11-13 Thread Matthias Kaehlcke
QLogic InfiniPath: convert the semaphore ipath_eep_sem to the mutex API Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/infiniband/hw/ipath/ipath_eeprom.c b/drivers/infiniband/hw/ipath/ipath_eeprom.c index e7c25db..a5b6299 100644 --- a/drivers/infiniband/hw/ipath

[PATCH] TI 3410/5052 USB Serial: convert td_open_close_lock to mutex

2007-11-14 Thread Matthias Kaehlcke
TI 3410/5052 USB Serial: convert semaphore td_open_close_lock to the mutex API Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c index 1f01494..995fdf3 100644 --- a/drivers/usb/serial

[PATCH] Edgeport USB Serial Converter: convert es_sem to mutex

2007-12-04 Thread Matthias Kaehlcke
Edgeport USB Serial Converter: convert semaphore es_sem to the mutex API Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index b867090..f7fdf1c 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c

[PATCH] USB testing driver: convert dev-sem to mutex

2007-12-04 Thread Matthias Kaehlcke
USB testing driver: convert semaphore dev-sem to the mutex API Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c index ea31621..57260ab 100644 --- a/drivers/usb/misc/usbtest.c +++ b/drivers/usb/misc/usbtest.c @@ -6,6 +6,7

Re: [PATCH] USB testing driver: convert dev-sem to mutex

2007-12-04 Thread Matthias Kaehlcke
El Tue, Dec 04, 2007 at 11:09:02AM -0800 Daniel Walker ha dit: On Tue, 2007-12-04 at 17:55 +0100, Matthias Kaehlcke wrote: @@ -1990,7 +1991,7 @@ static void usbtest_disconnect (struct usb_interface *intf) { struct usbtest_dev *dev = usb_get_intfdata (intf

Re: [PATCH 3/3] printer port driver: semaphore to mutex

2007-12-06 Thread Matthias Kaehlcke
queue, and there still ~50 hopefully trivial ones still to be looked at.. Then another ~30 more difficult ones (that use init_MUTEX_LOCKED, or sema_init with 0 instead of 1) .. I've also more patches of this type on my list, though i work in a slower pace -- Matthias Kaehlcke Linux Application

Re: [PATCH 3/3] printer port driver: semaphore to mutex

2007-12-06 Thread Matthias Kaehlcke
. at the moment i'm having a look at usb drivers. 2007/12/6, Matthias Kaehlcke [EMAIL PROTECTED]: El Thu, Dec 06, 2007 at 08:34:06AM -0800 Daniel Walker ha dit: On Thu, 2007-12-06 at 11:23 +0100, Ingo Molnar wrote: * Daniel Walker [EMAIL PROTECTED] wrote: The port_mutex is actually

Re: Question regarding mutex locking

2007-11-28 Thread Matthias Kaehlcke
work, a mutex must not be released from another context than the one that acquired it. -- Matthias Kaehlcke Linux Application Developer Barcelona Don't walk behind me, I may not lead Don't walk in front of me, I may not follow Just walk beside me

Re: Question regarding mutex locking

2007-11-28 Thread Matthias Kaehlcke
El Wed, Nov 28, 2007 at 08:46:51AM -0600 Larry Finger ha dit: Matthias Kaehlcke wrote: El Tue, Nov 27, 2007 at 10:37:00PM -0600 Larry Finger ha dit: If a particular routine needs to lock a mutex, but it may be entered with that mutex already locked, would the following code be SMP

[PATCH] PLIP driver: convert killed_timer_sem to completion

2007-12-08 Thread Matthias Kaehlcke
PLIP driver: convert the semaphore killed_timer_sem to a completion Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/net/plip.c b/drivers/net/plip.c index 57c9866..fee3d7b 100644 --- a/drivers/net/plip.c +++ b/drivers/net/plip.c @@ -106,6 +106,7 @@ static const char

[PATCH] PPP synchronous tty: convert dead_sem to completion

2007-12-08 Thread Matthias Kaehlcke
PPP synchronous tty channel driver: convert the semaphore dead_sem to a completion Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/net/ppp_synctty.c b/drivers/net/ppp_synctty.c index f0c6a19..f7472c8 100644 --- a/drivers/net/ppp_synctty.c +++ b/drivers/net

[PATCH] qla2xxx driver: convert mbx_intr_sem to completion

2007-12-09 Thread Matthias Kaehlcke
QLA2XXX driver: convert the semaphore mbx_intr_sem to a completion Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 04e8cbc..ae3b3f4 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx

Re: [PATCH] PPP synchronous tty: convert dead_sem to completion

2007-12-09 Thread Matthias Kaehlcke
El Sun, Dec 09, 2007 at 12:04:48PM -0500 Charlie Brady ha dit: On Sat, 8 Dec 2007, Matthias Kaehlcke wrote: PPP synchronous tty channel driver: convert the semaphore dead_sem to a completion Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] Excuse my ignorance please, but why

[PATCH] acpi_pci_irq_find_prt_entry(): use list_for_each_entry() instead of list_for_each()

2007-12-10 Thread Matthias Kaehlcke
acpi_pci_irq_find_prt_entry(): use list_for_each_entry() instead of list_for_each() Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c index dd3186a..e51dac7 100644 --- a/drivers/acpi/pci_irq.c +++ b/drivers/acpi/pci_irq.c

[PATCH] fs/sysfs/file.c: use DEFINE_SPINLOCK for sysfs_open_dirent_lock definition

2007-12-10 Thread Matthias Kaehlcke
fs/sysfs/file.c: use DEFINE_SPINLOCK for definition of sysfs_open_dirent_lock instead of assigning SPIN_LOCK_UNLOCKED Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index 4045bdc..09a0611 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c

Re: [patch 0/3] MBCS: Convert semaphores to the mutex API

2007-10-24 Thread Matthias Kaehlcke
suggest that you grab and learn http://savannah.nongnu.org/projects/quilt/ - it takes care of all these things for you. i actually used quilt for this patchset but must have missed something. thanks for the pointer! -- Matthias Kaehlcke Linux Application Developer Barcelona Dreams

[PATCH] Parallel port: Convert port_mutex to the mutex API

2007-10-26 Thread Matthias Kaehlcke
Parallel port: Convert port_mutex to the mutex API Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/char/lp.c b/drivers/char/lp.c index c59e2a0..60aecf9 100644 --- a/drivers/char/lp.c +++ b/drivers/char/lp.c @@ -312,7 +312,7 @@ static ssize_t lp_write(struct file

[PATCH] MegaRAID SAS: Convert aen_mutex to the mutex API

2007-10-27 Thread Matthias Kaehlcke
MegaRAID SAS: Convert aen_mutex to the mutex API Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- index e3c5c52..3ad379f 100644 --- a/drivers/scsi/megaraid/megaraid_sas.c +++ b/drivers/scsi/megaraid/megaraid_sas.c @@ -31,6 +31,7 @@ #include linux/moduleparam.h #include linux/module.h

Re: kernel processes - are they really needed?

2007-10-31 Thread Matthias Kaehlcke
SW [aio/0] Kernel thread handling asynchronous IO. 85 rootSW [mtdblockd] 116 rootSWN [jffs2_gcd_mtd9] jffs2 specific - ask a maintainer :) (and mtdblockd has something to do with MTD devices so he may know that one as well). -- Matthias Kaehlcke Linux

[PATCH] Hardware Monitor LM70: Convert semaphore to mutex

2007-10-24 Thread Matthias Kaehlcke
Hardware Monitor LM70: Convert the semaphore lm70-sem to the mutex API Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/hwmon/lm70.c b/drivers/hwmon/lm70.c index dd36688..d435f00 100644 --- a/drivers/hwmon/lm70.c +++ b/drivers/hwmon/lm70.c @@ -31,14 +31,15 @@ #include

[PATCH] usbvision: Convert semaphore to mutex

2007-10-24 Thread Matthias Kaehlcke
usbvision: Convert the usbvision-lock semaphore to the mutex API Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/media/video/usbvision/usbvision-core.c b/drivers/media/video/usbvision/usbvision-core.c index c7d5f9e..2038d40 100644 --- a/drivers/media/video/usbvision

[patch 0/3] MBCS: Convert semaphores to the mutex API

2007-10-24 Thread matthias . kaehlcke
MBCS: Convert the semaphores algolock, dmareadlock and dmawritelock to the mutex API -- Matthias Kaehlcke Linux Application Developer Barcelona We build too many walls and not enough bridges (Isaac Newton

[patch 1/3] MBCS: Convert algolock to mutex

2007-10-24 Thread matthias . kaehlcke
MBCS: Convert the semaphore algolock to the mutex API Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] --- kernel.orig/linux-2.6/drivers/char/mbcs.c 2007-10-23 17:37:56.0 +0200 +++ kernel/linux-2.6/drivers/char/mbcs.c2007-10-23 17:40:16.0 +0200 @@ -24,6 +24,7

[patch 2/3] MBCS: Convert dmawritelock to mutex

2007-10-24 Thread matthias . kaehlcke
MBCS: Convert the semaphore dmawritelock to the mutex API Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] Index: kernel/linux-2.6/drivers/char/mbcs.h === --- kernel.orig/linux-2.6/drivers/char/mbcs.h 2007-10-23 17:50

[patch 3/3] MBCS: Convert dmareadlock to mutex

2007-10-24 Thread matthias . kaehlcke
MBCS: Convert the semaphore dmareadlock to the mutex API Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] --- kernel.orig/linux-2.6/drivers/char/mbcs.c 2007-10-23 17:43:36.0 +0200 +++ kernel/linux-2.6/drivers/char/mbcs.c2007-10-23 17:44:11.0 +0200 @@ -348,7 +348,7

[PATCH] Adaptec AACRAID: convert fibctx-wait_sem to completion

2008-02-13 Thread Matthias Kaehlcke
Adaptec AACRAID driver: The semaphore fibctx-wait_sem is used for signalling an event. Convert it to a completion. Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h index 3195d29..eef4939 100644 --- a/drivers/scsi

Re: [PATCH] Adaptec AACRAID: convert fibctx-wait_sem to completion

2008-02-13 Thread Matthias Kaehlcke
El Wed, Feb 13, 2008 at 01:09:00PM -0600 James Bottomley ha dit: On Wed, 2008-02-13 at 19:34 +0100, Matthias Kaehlcke wrote: Adaptec AACRAID driver: The semaphore fibctx-wait_sem is used for signalling an event. Convert it to a completion. What's the purpose of doing this? The aacraid

Re: linux-next: build failure after merge of the mfd tree

2012-09-25 Thread Matthias Kaehlcke
with the corrected license string later this day best regards -- Matthias Kaehlcke Embedded Linux Developer Amsterdam The only power to which man should aspire is that which he exercises over himself (Elie Wiesel

[PATCH 1/2] ELAN U132 Host Controller Driver: convert sw_lock to mutex

2007-09-06 Thread Matthias Kaehlcke
The ELAN U132 Host Controller Driver uses the semaphore sw_lock as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c index b88eb3c..1201ca4 100644 --- a/drivers

[PATCH 0/2] Use mutexes instead of semaphores in the ELAN U132 Host Controller Driver

2007-09-06 Thread Matthias Kaehlcke
This patchset converts sw_lock and scheduler_lock in the ELAN U132 Host Controller Driver from semaphores to the mutex API -- Matthias Kaehlcke Linux Application Developer Barcelona La libertad es como la maƱana. Hay quienes esperan dormidos a que llegue, pero hay quienes desvelan y

[PATCH 2/2] ELAN U132 Host Controller Driver: convert scheduler_lock to mutex

2007-09-06 Thread Matthias Kaehlcke
The ELAN U132 Host Controller Driver uses the semaphore scheduler_lock as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c index b88eb3c..e22 100644

Re: [PATCH 1/2] ELAN U132 Host Controller Driver: convert sw_lock to mutex

2007-09-07 Thread Matthias Kaehlcke
scheduler_lock; +struct mutex scheduler_lock; Are you sure, you have right patch sequence? my idea was to sent two independent patches, would it be better to have one patch based on the other? -- Matthias Kaehlcke Linux Application Developer Barcelona Insanity: doing

Re: [PATCH 2/2] ELAN U132 Host Controller Driver: convert scheduler_lock to mutex

2007-09-07 Thread Matthias Kaehlcke
A corrected version of the patch, the first one contained context removed by the first patch of this serie -- The ELAN U132 Host Controller Driver uses the semaphore scheduler_lock as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED

[PATCH 1/4] Generic AC97 mixer/modem (OSS): Use list_for_each_entry

2007-09-11 Thread Matthias Kaehlcke
Generic AC97 mixer/modem (OSS): Use list_for_each_entry instead of list_for_each Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/sound/oss/ac97_codec.c b/sound/oss/ac97_codec.c index fef56ca..0a3033b 100644 --- a/sound/oss/ac97_codec.c +++ b/sound/oss/ac97_codec.c @@ -815,7

[PATCH 0/4] Several sound drivers: Use list_for_each_entry(_safe)

2007-09-11 Thread Matthias Kaehlcke
Use list_for_each_entry(_safe) instead of list_for_each(_safe) in the following sound drivers/code: Generic AC97 mixer/modem module (OSS) ESS Maestro 1/2/2E Sound Card Intel HD Audio Routines for effect processor FX8010 -- Matthias Kaehlcke Linux Application Developer Barcelona La

[PATCH 2/4] ESS Maestro 1/2/2E Sound Card: Use list_for_each_entry

2007-09-11 Thread Matthias Kaehlcke
ESS Maestro 1/2/2E Sound Card: Use list_for_each_entry instead of list_for_each Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/sound/pci/es1968.c b/sound/pci/es1968.c index 2faf009..d69b11d 100644 --- a/sound/pci/es1968.c +++ b/sound/pci/es1968.c @@ -843,10 +843,9 @@ static

[PATCH 4/4] Routines for effect processor FX8010: Use list_for_each_entry

2007-09-11 Thread Matthias Kaehlcke
Routines for effect processor FX8010: Use list_for_each_entry instead of list_for_each Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/include/sound/emu10k1.h b/include/sound/emu10k1.h index 529d0a5..24399a0 100644 --- a/include/sound/emu10k1.h +++ b/include/sound/emu10k1.h

[PATCH 3/4] Intel HD Audio: Use list_for_each_entry(_safe)

2007-09-11 Thread Matthias Kaehlcke
Intel HD Audio: Use list_for_each_entry(_safe) instead of list_for_each(_safe) Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c index 000287f..5a96a8a 100644 --- a/sound/pci/hda/hda_generic.c +++ b/sound/pci/hda

[PATCH 0/5] Use list_for_each_entry(_safe) instead of list_for_each(_safe)

2007-07-22 Thread Matthias Kaehlcke
This patchset converts list_for_each(_safe) to list_for_each_entry(_safe) in the following files: kernel/exit.c kernel/time/clocksource.c kernel/user.c mm/oom_kill.c mm/page_alloc.c -- Matthias Kaehlcke Linux Application Developer Barcelona El trabajo es el refugio de los que no tienen

[PATCH 1/5] kernel/exit.c: Use list_for_each_entry(_safe) instead of list_for_each(_safe)

2007-07-22 Thread Matthias Kaehlcke
kernel/exit.c: Convert list_for_each(_safe) to list_for_each_entry(_safe) in forget_original_parent(), exit_notify() and do_wait() Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/kernel/exit.c b/kernel/exit.c index ca6a11b..ac84684 100644 --- a/kernel/exit.c +++ b/kernel

[PATCH 2/5] kernel/time/clocksource.c: Use list_for_each_entry instead of list_for_each

2007-07-22 Thread Matthias Kaehlcke
kernel/time/clocksource.c: Convert list_for_each to list_for_each_entry in clocksource_resume(), sysfs_override_clocksource() and show_available_clocksources() Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 51b6a6a

[PATCH 3/5] kernel/user.c: Use list_for_each_entry instead of list_for_each

2007-07-22 Thread Matthias Kaehlcke
kernel/user.c: Convert list_for_each to list_for_each_entry in uid_hash_find() Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/kernel/user.c b/kernel/user.c index 4869563..d0363d1 100644 --- a/kernel/user.c +++ b/kernel/user.c @@ -68,13 +68,9 @@ static inline void

[PATCH 4/5] mm/oom_kill.c: Use list_for_each_entry instead of list_for_each

2007-07-22 Thread Matthias Kaehlcke
mm/oom_kill.c: Convert list_for_each to list_for_each_entry in oom_kill_process() Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/mm/oom_kill.c b/mm/oom_kill.c index a700141..b1851c4 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -347,7 +347,6 @@ static int

[PATCH 5/5] mm/page_alloc.c: Use list_for_each_entry instead of list_for_each

2007-07-22 Thread Matthias Kaehlcke
mm/page_alloc.c: Convert list_for_each to list_for_each_entry in mark_free_pages() Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 05ace44..1f138fb 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -731,7 +731,7 @@ void

[PATCH 1/2] fs/sysfs/dir.c: use DEFINE_SPINLOCK for spinlock definition

2007-10-12 Thread Matthias Kaehlcke
fs/sysfs/dir.c: Define spinlock using DEFINE_SPINLOCK instead of assignment to SPIN_LOCK_UNLOCKED Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c index 83e76b3..94fd78f 100644 --- a/fs/sysfs/dir.c +++ b/fs/sysfs/dir.c @@ -15,9 +15,9

[PATCH 2/2] ieee1394_core.c: use DEFINE_SPINLOCK for spinlock definition

2007-10-12 Thread Matthias Kaehlcke
drivers/ieee1394/ieee1394_core.c: Define spinlock using DEFINE_SPINLOCK instead of assignment to SPIN_LOCK_UNLOCKED Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/ieee1394/ieee1394_core.c b/drivers/ieee1394/ieee1394_core.c index 98fd985..36c747b 100644 --- a/drivers

[PATCH] Videopix Frame Grabber: Convert device_lock_sem to mutex

2007-10-16 Thread Matthias Kaehlcke
Videopix Frame Grabber: Convert the semaphore device_lock_sem to the mutex API Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/sbus/char/vfc.h b/drivers/sbus/char/vfc.h index 63941a2..f1aa138 100644 --- a/drivers/sbus/char/vfc.h +++ b/drivers/sbus/char/vfc.h @@ -126,7

[PATCH] FTDI Elan driver: Convert ftdi-u132_lock to mutex

2007-10-16 Thread Matthias Kaehlcke
FTDI Elan driver: Convert the semaphore ftdi-u132_lock to the mutex API Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/usb/misc/ftdi-elan.c b/drivers/usb/misc/ftdi-elan.c index 538b535..d61e0ca 100644 --- a/drivers/usb/misc/ftdi-elan.c +++ b/drivers/usb/misc/ftdi

[PATCH 0/5] use mutex instead of semaphore in several drivers

2007-07-29 Thread Matthias Kaehlcke
This patchset converts semaphores that are used as mutexes to the mutex API in the following drivers/code: Host AP driver OnStream SCSI Tape driver SCSI Tape driver ISDN subsystem common functions DVB frontend tuning interface -- Matthias Kaehlcke Linux Application Developer Barcelona

[PATCH 1/5] Use mutex instead of semaphore in the Host AP driver

2007-07-29 Thread Matthias Kaehlcke
The Host AP driver uses a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- - res = down_interruptible(local-rid_bap_sem); + res = mutex_lock_interruptible(local-rid_bap_mtx); if (res

[PATCH 2/5] Use mutex instead of semaphore in the OnStream SCSI Tape driver

2007-07-29 Thread Matthias Kaehlcke
The OnStream SCSI Tape driver uses a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c index 08060fb..0e2452c 100644 --- a/drivers/scsi/osst.c +++ b/drivers/scsi

[PATCH 3/5] Use mutex instead of semaphore in the SCSI Tape driver

2007-07-29 Thread Matthias Kaehlcke
The SCSI Tape driver uses a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c index a4f7b84..73c44cb 100644 --- a/drivers/scsi/st.c +++ b/drivers/scsi/st.c @@ -1485,7

[PATCH 4/5] Use mutex instead of semaphore in ISDN subsystem common functions

2007-07-29 Thread Matthias Kaehlcke
The ISDN subsystem common functions use a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c index c97330b..a5d3db4 100644 --- a/drivers/isdn

[PATCH 5/5] Use mutex instead of semaphore in the DVB frontend tuning interface

2007-07-29 Thread Matthias Kaehlcke
The DVB frontend tuning interface uses a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c index b6c7f66..e35dd17

Re: [PATCH 1/5] Use mutex instead of semaphore in the Host AP driver

2007-07-29 Thread Matthias Kaehlcke
El Mon, Jul 30, 2007 at 09:17:25AM +0530 Satyam Sharma ha dit: Whoops ... On Mon, 30 Jul 2007, Satyam Sharma wrote: On Mon, 30 Jul 2007, Michael Buesch wrote: On Sunday 29 July 2007 23:34, Matthias Kaehlcke wrote: The Host AP driver uses a semaphore as mutex. Use the mutex API

[PATCH] use mutex instead of semaphore in EDAC core

2007-04-25 Thread Matthias Kaehlcke
the EDAC core code uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c index 7b62230..f217750 100644 --- a/drivers/edac/edac_mc.c +++ b/drivers/edac

[PATCH] use mutex instead of semaphore in hdaps driver

2007-04-25 Thread Matthias Kaehlcke
the hdaps driver uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/hwmon/hdaps.c b/drivers/hwmon/hdaps.c index bf759ea..f8e4952 100644 --- a/drivers/hwmon/hdaps.c +++ b/drivers/hwmon/hdaps.c

Re: [PATCH] use mutex instead of semaphore in RocketPort driver v2

2007-04-25 Thread Matthias Kaehlcke
El Wed, Apr 25, 2007 at 03:54:36PM +0200 Jiri Slaby ha dit: Matthias Kaehlcke napsal(a): the RocketPort driver uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] I think that ERESTARTSYS is appropriate

[PATCH] use mutex instead of semaphore for misc char devices

2007-04-25 Thread Matthias Kaehlcke
the misc character device driver uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/char/misc.c b/drivers/char/misc.c index 7e975f6..afd7cf5 100644 --- a/drivers/char/misc.c +++ b/drivers/char

[PATCH] use mutex instead of semaphore in tty_io.c

2007-04-25 Thread Matthias Kaehlcke
drivers/char/tty_io.c uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index 7a32df5..4496fd2 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char

[PATCH] use mutex instead of semaphore in RocketPort driver v3

2007-04-25 Thread Matthias Kaehlcke
the RocketPort driver uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/char/rocket.c b/drivers/char/rocket.c index 76357c8..af9379b 100644 --- a/drivers/char/rocket.c +++ b/drivers/char

Re: [PATCH] use mutex instead of semaphore in tty_io.c

2007-04-25 Thread Matthias Kaehlcke
El Wed, Apr 25, 2007 at 08:13:59PM +0100 Christoph Hellwig ha dit: On Wed, Apr 25, 2007 at 05:49:34PM +0200, Matthias Kaehlcke wrote: drivers/char/tty_io.c uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore This looks like it should be a spinlock

[PATCH] use spinlock instead of semaphore in tty_io.c

2007-04-25 Thread Matthias Kaehlcke
drivers/char/tty_io.c uses a semaphore to protect quick non-blocking operations. use a spinlock instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] Signed-off-by: Christoph Hellwig [EMAIL PROTECTED] -- diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c

[PATCH] use mutex instead of semaphore in Berkshire USB-PC Watchdog driver

2007-04-26 Thread Matthias Kaehlcke
the Berkshire USB-PC Watchdog driver uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/char/watchdog/pcwd_usb.c b/drivers/char/watchdog/pcwd_usb.c index 31037f9..1e7a671 100644 --- a/drivers

[PATCH] use mutex instead of semaphore in IDE driver

2007-04-26 Thread Matthias Kaehlcke
the IDE driver uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 8f15c23..34f79a5 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide

[PATCH] use mutex instead of semaphore in virtual console driver

2007-04-26 Thread Matthias Kaehlcke
the virtual console driver uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/char/vc_screen.c b/drivers/char/vc_screen.c index 7919303..032d4f1 100644 --- a/drivers/char/vc_screen.c +++ b

[PATCH] use mutex instead of semaphore in CAPI 2.0 interface

2007-04-26 Thread Matthias Kaehlcke
the CAPI 2.0 interface uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c index db1260f..b260bdc 100644 --- a/drivers/isdn/capi/capi.c +++ b/drivers

[PATCH 2/5] Kcopyd: use mutex instead of semaphore

2007-04-27 Thread Matthias Kaehlcke
Kcopyd uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/md/kcopyd.c b/drivers/md/kcopyd.c index b46f6c5..340272a 100644 --- a/drivers/md/kcopyd.c +++ b/drivers/md/kcopyd.c @@ -195,7 +195,7

[PATCH 1/5] Power Management: use mutexes instead of semaphores

2007-04-27 Thread Matthias Kaehlcke
the Power Management code uses semaphores as mutexes. use the mutex API instead of the (binary) semaphores Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index 973..297061c 100644 --- a/drivers/base/power/main.c +++ b

[PATCH 3/5] sysdev: use mutex instead of semaphore

2007-04-27 Thread Matthias Kaehlcke
the sysdev code use a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/base/sys.c b/drivers/base/sys.c index 04e5db4..82c41d1 100644 --- a/drivers/base/sys.c +++ b/drivers/base/sys.c @@ -155,7

[PATCH 0/5] use mutex instead of semaphore in several drivers

2007-04-27 Thread Matthias Kaehlcke
this patchset converts semaphores that are used as mutexes to the mutex API in the following drivers/code: Power Management Kcopyd sysdev pvrusb2 scx200 -- Matthias Kaehlcke Linux Application Developer Barcelona For to be free is not merely to cast off one's

[PATCH 4/5] pvrusb2: use mutex instead of semaphore

2007-04-27 Thread Matthias Kaehlcke
the pvrusb2 driver use a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 9916cf3..ea450b0 100644 --- a/drivers

[PATCH 5/5] scx200: use mutex instead of semaphore

2007-04-27 Thread Matthias Kaehlcke
the scx200 driver use a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] -- diff --git a/drivers/i2c/busses/scx200_acb.c b/drivers/i2c/busses/scx200_acb.c index 0b082c5..669d2ac 100644 --- a/drivers/i2c/busses/scx200_acb.c

[RESEND] Documentation of device tree bindings for mfd devices

2012-09-03 Thread Matthias Kaehlcke
tps65217.txt to the mfd directory and adding the backlight specific documentation. Please confirm whether this is the correct/preferred way to document device tree bindings of mfd devices -- Matthias Kaehlcke Embedded Linux Developer Amsterdam You can chain me, you can torture me, you

  1   2   3   4   5   6   7   8   9   10   >