[RESEND] Documentation of device tree bindings for mfd devices

2012-09-03 Thread Matthias Kaehlcke
oving 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

[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 ---

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 th

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

2012-09-24 Thread Matthias Kaehlcke
d a built-in driver, so i didn't see the problem. i will submit a patch 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

[PATCH] regulator: Add devm_regulator_get_exclusive()

2013-08-25 Thread Matthias Kaehlcke
Add a resource managed regulator_get_exclusive() Signed-off-by: Matthias Kaehlcke --- drivers/regulator/core.c | 30 ++ include/linux/regulator/consumer.h |2 ++ 2 files changed, 32 insertions(+) diff --git a/drivers/regulator/core.c b/drivers

Re: [PATCH 2/2] iio: ti_am335x_adc: Take touchscreen channels into account for conversion timeout

2013-09-15 Thread Matthias Kaehlcke
Hi Jonathan, thanks for your comments El Sun, Sep 15, 2013 at 05:17:30PM +0100 Jonathan Cameron ha dit: > On 09/10/13 22:02, Matthias Kaehlcke wrote: > > The calculation of the old conversion timeout value was based on the number > > of > > channels used by this driver. T

[PATCH v2] iio: ti_am335x_adc: Take touchscreen steps into account for conversion timeout

2013-09-16 Thread Matthias Kaehlcke
The calculation of the old conversion timeout value was based on the number of steps used by this driver. This doesn't take into account that other steps can be used by the touchscreen driver. Select the timeout value based on the steps used by both drivers Signed-off-by: Matthias Kae

[PATCH 1/2] mfd: ti_am335x_tscadc: Fix idle timeout value

2013-09-10 Thread Matthias Kaehlcke
Signed-off-by: Matthias Kaehlcke --- include/linux/mfd/ti_am335x_tscadc.h | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/include/linux/mfd/ti_am335x_tscadc.h b/include/linux/mfd/ti_am335x_tscadc.h index db1791b..9e6a775 100644 --- a/include/linux/mfd

[PATCH 2/2] iio: ti_am335x_adc: Take touchscreen channels into account for conversion timeout

2013-09-10 Thread Matthias Kaehlcke
ff-by: Matthias Kaehlcke --- drivers/iio/adc/ti_am335x_adc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c index 3ceac3e..898fc78 100644 --- a/drivers/iio/adc/ti_am335x_adc.c +++ b/drivers/iio/adc/ti_am335x_adc.c @@ -146,7 +1

Re: [PATCH v2] iio: ti_am335x_adc: Take touchscreen steps into account for conversion timeout

2013-09-22 Thread Matthias Kaehlcke
Hi, El Sat, Sep 21, 2013 at 01:25:42PM +0100 Jonathan Cameron ha dit: > On 09/16/13 22:17, Matthias Kaehlcke wrote: > > The calculation of the old conversion timeout value was based on the number > > of > > steps used by this driver. This doesn't take into account t

Re: [PATCH 2/2] iio: ti_am335x_adc: Take touchscreen channels into account for conversion timeout

2013-09-23 Thread Matthias Kaehlcke
Hi Sebastian, El Mon, Sep 23, 2013 at 03:31:14PM +0200 Sebastian Andrzej Siewior ha dit: > On 09/10/2013 11:02 PM, Matthias Kaehlcke wrote: > > The calculation of the old conversion timeout value was based on the number > > of > > channels used by this driver. This does

[PATCH] mfd: ti_am335x_tscadc: Restore clock divider on resume

2013-09-23 Thread Matthias Kaehlcke
The ADC clock divider needs to be restored on resume as the register content is lost when the ADC is powered down Signed-off-by: Matthias Kaehlcke --- drivers/mfd/ti_am335x_tscadc.c | 10 ++ include/linux/mfd/ti_am335x_tscadc.h |1 + 2 files changed, 7 insertions(+), 4

[PATCH] input: touchscreen: ti_am335x_tsc: Enable FIFO threshold interrupt on resume

2013-09-23 Thread Matthias Kaehlcke
When returning from suspend the FIFO threshold interrupt is disabled, re-enable it on resume Signed-off-by: Matthias Kaehlcke --- drivers/input/touchscreen/ti_am335x_tsc.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input

[PATCH] cyttsp: Fix swap of mfg_stat and mfg_cmd registers

2013-06-04 Thread Matthias Kaehlcke
The command and status register in the driver were swapped with respect to the order specified in the datasheet (CY8CTMA140). Confirmed with Cypress that the order in the datasheet is correct. Signed-off-by: Matthias Kaehlcke --- drivers/input/touchscreen/cyttsp_core.h |2 +- 1 file changed

Re: [PATCH v2] rtc: tps65910: Add RTC driver for TPS65910 PMIC RTC

2012-08-01 Thread Matthias Kaehlcke
+ return ret; > + } > + > + platform_set_drvdata(pdev, tps_rtc); the interrupt should be requested after this call. otherwise tps65910_rtc_interrupt() could be executed before the RTC device is registered and the driver data set. normally this shouldn't happen as the R

Re: [PATCH v2] rtc: tps65910: Add RTC driver for TPS65910 PMIC RTC

2012-08-02 Thread Matthias Kaehlcke
Hi Venu, thanks for you reply El Thu, Aug 02, 2012 at 10:28:47AM +0530 Venu Byravarasu ha dit: > > -Original Message- > > From: Matthias Kaehlcke [mailto:matthias.l...@kaehlcke.net] > > Sent: Thursday, August 02, 2012 1:48 AM > > To: Venu Byravarasu > >

[PATCH] ti-st: Fix check for pdata->chip_awake function pointer

2012-08-02 Thread Matthias Kaehlcke
ll_device_want_to_wakeup(): Fix the NULL pointer check on pdata->chip_awake, which is performed on the wrong function pointer Signed-off-by: Matthias Kaehlcke --- drivers/misc/ti-st/st_ll.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/ti-st/st_ll.

Re: [PATCH 2/5] MFD: ti_tscadc: Add support for TI's TSC/ADC MFDevice

2012-08-23 Thread Matthias Kaehlcke
gt; + struct resource *res; > + > + tscadc_writel(tscadc, REG_SE, 0x00); > + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > + iounmap(tscadc->tscadc_base); > + release_mem_region(res->start, resource_size(res)); > + > + pm_runtime_put_syn

Re: [PATCH 4/5] IIO : ADC: tiadc: Add support of TI's ADC driver

2012-08-23 Thread Matthias Kaehlcke
rm_device *pdev) > +{ > + struct ti_tscadc_dev *tscadc_dev = pdev->dev.platform_data; > + struct adc_device *adc_dev = tscadc_dev->adc; > + struct iio_dev *idev = adc_dev->idev; > + > + iio_device_unregister(idev); >

[PATCH] COSA/SRP: Convert channel_data.rsem to mutex

2008-02-17 Thread Matthias Kaehlcke
COSA/SRP driver: The semaphore channel_data.rsem is used as a mutex, convert it to the mutex API Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> -- Index: linux-2.6/drivers/net/wan/cosa.c === --- linux-2.6.orig/drivers/n

[PATCH] misc/st_kim: Free resources in the error path of probe()

2012-11-22 Thread Matthias Kaehlcke
Signed-off-by: Matthias Kaehlcke --- drivers/misc/ti-st/st_kim.c | 30 +- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/drivers/misc/ti-st/st_kim.c b/drivers/misc/ti-st/st_kim.c index 04a8199..9ff942a 100644 --- a/drivers/misc/ti-st/st_kim.c +++ b

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

2007-12-06 Thread Matthias Kaehlcke
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 Developer Barcelona You must have a plan. If you don't have a plan, you'll become

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

2007-12-06 Thread Matthias Kaehlcke
ary. 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: > > > > * Dani

[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 cons

[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/drive

[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/q

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]&

[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

[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/

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

[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/i

[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.

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 *d

Re: Question regarding mutex locking

2007-11-28 Thread Matthias Kaehlcke
_lock) > mutex_unlock() this is wont 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

[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

[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/

[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(struc

[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 #include #include +#include #i

Re: kernel processes - are they really needed?

2007-10-31 Thread Matthias Kaehlcke
SW [mtdblockd] > > 116 root SWN [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 Applicat

[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/

[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

[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 inlin

[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 @@ stat

[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 @

[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

[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

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

2007-09-06 Thread Matthias Kaehlcke
t; struct list_head u132_list; > > struct semaphore sw_lock; > >-struct semaphore 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

[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_m

[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/driver

[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/scs

[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/d

[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..e

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: > > > &

[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,

[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/me

[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

[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

[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

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

2007-10-24 Thread Matthias Kaehlcke
> --- linux-2.6/drivers/char/mbcs.c > +++ linux-2.6/drivers/char/mbcs.c > > I'd 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 so

[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

[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

[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

[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/

[PATCH] Prism54: Convert mgmt_sem to the mutex API

2007-11-04 Thread Matthias Kaehlcke
Prism54: Convert mgmt_sem to the mutex API Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> -- diff --git a/drivers/net/wireless/prism54/islpci_dev.c b/drivers/net/wireless/prism54/islpci_dev.c index 219dd65..dbb538c 100644 --- a/drivers/net/wireless/prism54/islpci_dev.c +++ b/drive

Re: [PATCH] Prism54: Convert mgmt_sem to the mutex API

2007-11-05 Thread Matthias Kaehlcke
El Mon, Nov 05, 2007 at 12:36:13AM +0100 Michael Buesch ha dit: > On Thursday 01 November 2007 08:19:02 Matthias Kaehlcke wrote: > > Prism54: Convert mgmt_sem to the mutex API > > > > Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> > > > > Uhm, so th

Re: How do you allocate huge pages.

2007-06-19 Thread Matthias Kaehlcke
age* of 4M, what afaik is impossible with a standard kernel. vmalloc() allocates virtually contiguous memory, as opposed to kmalloc() which allocates physically contiguous memory. -- Matthias Kaehlcke Linux Application Developer Barcelona La libertad es como la mañana. Hay quienes espera

Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3

2007-06-13 Thread Matthias Kaehlcke
t's prudence. Let's stop wasting time recreating wheels we both need to roll forward. I wanted you to hear this from me directly. We want to work together, we want to join hands and communities - we have no intention of holding anything back, or pulling patent nonsense. And to prove the

Re: heartbeat problems on linux 2.6.21.[34]

2007-06-14 Thread Matthias Kaehlcke
e is not loaded, I'm just testing heartbeat on it. you're writing to the wrong list, your problem seems to be a *heartbeat* issue and not a *kernel* one -- Matthias Kaehlcke Linux Application Developer Barcelona Yo soy como soy y tú eres como eres, construyamos un mundo donde yo

[PATCH 1/2] use list_for_each_entry() for iteration in hostap_ap.c

2007-05-27 Thread Matthias Kaehlcke
El Fri, May 25, 2007 at 03:30:05PM +0100 Christoph Hellwig ha dit: > On Fri, May 25, 2007 at 03:03:08PM +0200, Matthias Kaehlcke wrote: > > Use list_for_each() in the Host AP driver to iterate over the MAC > > restrictions and the STA info lists > > please go al

[PATCH 2/2] use list_for_each_entry() for iteration in Prism 54 driver

2007-05-27 Thread Matthias Kaehlcke
El Fri, May 25, 2007 at 03:04:44PM +0200 Matthias Kaehlcke ha dit: > Use list_for_each() in the Prism54 driver to iterate over the MAC list In response to a similar patch Christoph Hellwig suggests the use of list_for_each_entry() instead of list_for_each(). Here is a evolution of the patch t

[PATCH] Block device elevator: use list_for_each_entry() instead of list_for_each()

2007-05-27 Thread Matthias Kaehlcke
Use list_for_each_entry() instead of list_for_each() in the block device elevator Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> -- diff --git a/block/elevator.c b/block/elevator.c index ce866eb..4769a25 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -112,12 +112,8 @@

Re: [PATCH 1/2] use list_for_each_entry() for iteration in hostap_ap.c

2007-05-27 Thread Matthias Kaehlcke
Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> -- Matthias Kaehlcke Linux Application Developer Barcelona La posibilidad de realizar un suenyo es lo que hace que la vida sea inter

[PATCH] kernel/sched.c: use list_for_each_entry_safe() in __wake_up_common()

2007-05-28 Thread Matthias Kaehlcke
Use list_for_each_entry_safe() instead of list_for_each_safe() in __wake_up_common() Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> -- diff --git a/kernel/sched.c b/kernel/sched.c index 799d23b..38723b7 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -3775,10 +3775,9 @@ EXPORT_

[PATCH] drivers/block/ub.c: use list_for_each_entry()

2007-05-30 Thread Matthias Kaehlcke
Low performance USB storage driver: Use list_for_each_entry() instead of list_for_each() Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> -- diff --git a/drivers/block/ub.c b/drivers/block/ub.c index 746a118..18c8b6c 100644 --- a/drivers/block/ub.c +++ b/drivers/block/ub.c @@ -1

[PATCH] fs/block_dev.c: use list_for_each_entry()

2007-05-30 Thread Matthias Kaehlcke
fs/block_dev.c: Use list_for_each_entry() instead of list_for_each() in nr_blockdev_pages() Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> -- diff --git a/fs/block_dev.c b/fs/block_dev.c index 7428992..a63faab 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -590,12 +

Re: [PATCH] drivers/block/ub.c: use list_for_each_entry()

2007-05-30 Thread Matthias Kaehlcke
El Wed, May 30, 2007 at 12:38:40PM -0700 Pete Zaitcev ha dit: > On Wed, 30 May 2007 10:47:52 +0200, Matthias Kaehlcke <[EMAIL PROTECTED]> > wrote: > > > @@ -1608,8 +1605,7 @@ static void ub_reset_task(struct work_struct *work) > > spin_lock_irqsave(sc->lock,

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

2007-05-31 Thread Matthias Kaehlcke
drivers/char/tty_io.c: Use spinlock instead of a (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..ff27587 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c @@ -137,7

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

2007-06-01 Thread Matthias Kaehlcke
El Thu, May 31, 2007 at 03:37:12PM -0700 Andrew Morton ha dit: > On Thu, 31 May 2007 15:42:26 +0200 > Matthias Kaehlcke <[EMAIL PROTECTED]> wrote: > > > drivers/char/tty_io.c: Use spinlock instead of a (binary) semaphore > > > > hm. > > > > >

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

2007-07-13 Thread Matthias Kaehlcke
This patchset converts semaphores that are used as mutexes to the mutex API in the following drivers/code: SPI core/init code USB gadget serial ELAN U132 adapter Adutux FTDI ELAN -- Matthias Kaehlcke Linux Application Developer Barcelona You must have a plan. If you don't h

[PATCH 1/5] use mutex instead of semaphore in SPI core/init code

2007-07-13 Thread Matthias Kaehlcke
The SPI core/init 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/spi/spi.c b/drivers/spi/spi.c index 4831edb..018884d 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi

[PATCH 2/5] use mutex instead of semaphore in the USB gadget serial driver

2007-07-13 Thread Matthias Kaehlcke
The USB gadget serial 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/usb/gadget/serial.c b/drivers/usb/gadget/serial.c index dd33ff0..4192d24 100644 --- a/drivers/usb/

[PATCH 3/5] use mutex instead of semaphore in the ELAN U132 adapter driver

2007-07-13 Thread Matthias Kaehlcke
The ELAN U132 adapter driver uses the semaphore u132_module_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 e98df2e..7f765ec 100644

[PATCH 4/5] use mutex instead of semaphore in the Adutux driver

2007-07-13 Thread Matthias Kaehlcke
The Adutux 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/usb/misc/adutux.c b/drivers/usb/misc/adutux.c index d72c42e..274d08e 100644 --- a/drivers/usb/misc/adutux.c

[PATCH 5/5] use mutex instead of semaphore in the FTDI ELAN driver

2007-07-13 Thread Matthias Kaehlcke
The FTDI ELAN 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/usb/misc/ftdi-elan.c b/drivers/usb/misc/ftdi-elan.c index e0f122e..7cc6883 100644 --- a/drivers/usb/misc/ftdi-

PATCH [0/5] file system core: use list_for_each_entry() instead of list_for_each()

2007-07-15 Thread Matthias Kaehlcke
This patchset replaces some list_for_each() loops by list_for_each_entry() loops in the following file system functions: fs_may_remount_ro() ep_poll_safewake(() sget() posix_locks_deadlock() get_locks_status() nr_blockdev_pages() -- Matthias Kaehlcke Linux Application Developer Barcelona

PATCH [1/5] fs/file_table.c: use list_for_each_entry() instead of list_for_each()

2007-07-15 Thread Matthias Kaehlcke
fs/file_table.c: use list_for_each_entry() instead of list_for_each() in fs_may_remount_ro() Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> -- diff --git a/fs/file_table.c b/fs/file_table.c index d17fd69..3ddd993 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -264,12 +

PATCH [2/5] fs/eventpoll.c: use list_for_each_entry() instead of list_for_each()

2007-07-15 Thread Matthias Kaehlcke
fs/eventpoll.c: use list_for_each_entry() instead of list_for_each() in ep_poll_safewake() Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> -- diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 0b73cd4..fada1f9 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -325,15 +325,14 @@

PATCH [3/5] fs/super.c: use list_for_each_entry() instead of list_for_each()

2007-07-15 Thread Matthias Kaehlcke
fs/super.c: use list_for_each_entry() instead of list_for_each() in sget() Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> -- diff --git a/fs/super.c b/fs/super.c index 5260d62..6866c92 100644 --- a/fs/super.c +++ b/fs/super.c @@ -335,14 +335,12 @@ struct super_block *sget(

PATCH [4/5] fs/locks.c: use list_for_each_entry() instead of list_for_each()

2007-07-15 Thread Matthias Kaehlcke
fs/locks.c: use list_for_each_entry() instead of list_for_each() in posix_locks_deadlock() and get_locks_status() Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> -- diff --git a/fs/locks.c b/fs/locks.c index 431a8b8..d09c6bd 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -702,13 +

PATCH [5/5] fs/block_dev.c: use list_for_each_entry() instead of list_for_each()

2007-07-15 Thread Matthias Kaehlcke
fs/block_dev.c: use list_for_each_entry() instead of list_for_each() in nr_blockdev_pages() Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> -- diff --git a/fs/block_dev.c b/fs/block_dev.c index b3e9bfa..da5f051 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -588,12 +

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

2007-05-14 Thread Matthias Kaehlcke
This patchset converts semaphores that are used as mutexes to the mutex API in the following drivers/code: I2O IDE CAPI 2.0 ST M25Pxx MTD DataFlash MTD -- Matthias Kaehlcke Linux Application Developer Barcelona You must have a plan. If you don't have a plan, y

[PATCH 1/5] Use mutexes instead of semaphores in I2O driver

2007-05-14 Thread Matthias Kaehlcke
The I2O 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/message/i2o/device.c b/drivers/message/i2o/device.c index b9df143..80e35e8 100644 --- a/drivers/message/i2o/de

[PATCH 2/5] Use mutex instead of semaphore in IDE driver

2007-05-14 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-disk.c b/drivers/ide/ide-disk.c index 7fff773..af67fd2 100644 --- a/drivers/ide/ide-disk.c +++ b/drivers/i

[PATCH 3/5] Use mutex instead of semaphore in CAPI 2.0 driver

2007-05-14 Thread Matthias Kaehlcke
The CAPI 2.0 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/isdn/capi/kcapi.c b/drivers/isdn/capi/kcapi.c index 3ed34f7..9f73bc2 100644 --- a/drivers/isdn/capi/kcapi.c

[PATCH 4/5] Use mutex instead of semaphore in the MTD ST M25Pxx driver

2007-05-14 Thread Matthias Kaehlcke
The MTD ST M25Pxx 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/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index 78c2511..b32806a 100644 --- a/drivers/mtd/devices/

[PATCH 5/5] Use mutex instead of semaphore in the MTD DataFlash driver

2007-05-14 Thread Matthias Kaehlcke
The MTD DataFlash 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/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c index a987e91..a5ed6d2 100644 --- a/drive

  1   2   3   4   5   6   7   8   9   10   >