[PATCH 5/6] scsi : use class iteration api

2008-01-21 Thread Dave Young
Convert to use the class iteration api. Signed-off-by: Dave Young <[EMAIL PROTECTED]> --- drivers/scsi/hosts.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff -upr linux/drivers/scsi/hosts.c linux.new/drivers/scsi/hosts.c --- linux/drivers/scsi/h

Re: [PATCH 5/7] scsi : use class iteration api

2008-01-15 Thread Dave Young
update the patch with minor return path changes in match function: Convert to use the class iteration api. Signed-off-by: Dave Young <[EMAIL PROTECTED]> --- drivers/scsi/hosts.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff -upr linux/driver

[PATCH 5/7] scsi : use class iteration api

2008-01-12 Thread Dave Young
Convert to use the class iteration api. Signed-off-by: Dave Young <[EMAIL PROTECTED]> --- drivers/scsi/hosts.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff -upr linux/drivers/scsi/hosts.c linux.new/drivers/scsi/hosts.c --- linux/driver

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-11 Thread Dave Young
On Jan 11, 2008 4:23 PM, Cornelia Huck <[EMAIL PROTECTED]> wrote: > On Fri, 11 Jan 2008 10:33:16 +0800, > "Dave Young" <[EMAIL PROTECTED]> wrote: > > > > > > +struct device *class_find_device(struct class *class, void *data, > > > > +

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-10 Thread Dave Young
On Jan 11, 2008 2:39 AM, Greg KH <[EMAIL PROTECTED]> wrote: > On Thu, Jan 10, 2008 at 05:48:43PM +0800, Dave Young wrote: > > The patches are done on my side, please help to check. > > Along with all of the other comments from people, I have a few. > > > This is the

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-10 Thread Dave Young
On Jan 10, 2008 11:41 PM, Alan Stern <[EMAIL PROTECTED]> wrote: > On Thu, 10 Jan 2008, Dave Young wrote: > > > Hi, > > The patches are done on my side, please help to check. > > > > This is the first one of the series about driver core changes. > > If

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-10 Thread Dave Young
On Jan 10, 2008 9:23 PM, Cornelia Huck <[EMAIL PROTECTED]> wrote: > On Thu, 10 Jan 2008 17:48:43 +0800, > Dave Young <[EMAIL PROTECTED]> wrote: > > Please add a kerneldoc comment for each of the new interfaces. Will do. > > > +int class_for_each_devic

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-10 Thread Dave Young
On Jan 10, 2008 8:34 PM, Stefan Richter <[EMAIL PROTECTED]> wrote: > Dave Young wrote: > > This is the first one of the series about driver core changes. > > Please always provide kerneldoc comments when you add new API elements; > here: exported functions. > > It

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-10 Thread Dave Young
On Wed, Jan 09, 2008 at 02:39:23PM +0800, Dave Young wrote: > On Jan 9, 2008 2:37 PM, Dave Young <[EMAIL PROTECTED]> wrote: > > > > On Jan 9, 2008 2:13 PM, Dave Young <[EMAIL PROTECTED]> wrote: > > > > > > On Wed, Jan 09, 2008 at 09:32:48AM +0800, Dav

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-08 Thread Dave Young
On Jan 9, 2008 2:37 PM, Dave Young <[EMAIL PROTECTED]> wrote: > > On Jan 9, 2008 2:13 PM, Dave Young <[EMAIL PROTECTED]> wrote: > > > > On Wed, Jan 09, 2008 at 09:32:48AM +0800, Dave Young wrote: > > > On Jan 9, 2008 6:48 AM, Greg KH <[EMAIL PROTECTED]>

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-08 Thread Dave Young
On Jan 9, 2008 2:13 PM, Dave Young <[EMAIL PROTECTED]> wrote: > > On Wed, Jan 09, 2008 at 09:32:48AM +0800, Dave Young wrote: > > On Jan 9, 2008 6:48 AM, Greg KH <[EMAIL PROTECTED]> wrote: > > > On Tue, Jan 08, 2008 at 03:05:10PM +0800, Dave Young wrote: > &

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-08 Thread Dave Young
On Wed, Jan 09, 2008 at 09:32:48AM +0800, Dave Young wrote: > On Jan 9, 2008 6:48 AM, Greg KH <[EMAIL PROTECTED]> wrote: > > On Tue, Jan 08, 2008 at 03:05:10PM +0800, Dave Young wrote: > > > On Jan 8, 2008 1:20 AM, Greg KH <[EMAIL PROTECTED]> wrote: > > > >

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-08 Thread Dave Young
On Jan 9, 2008 6:48 AM, Greg KH <[EMAIL PROTECTED]> wrote: > On Tue, Jan 08, 2008 at 03:05:10PM +0800, Dave Young wrote: > > On Jan 8, 2008 1:20 AM, Greg KH <[EMAIL PROTECTED]> wrote: > > > On Mon, Jan 07, 2008 at 06:13:37PM +0100, Stefan Richter wrote: > > &g

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-07 Thread Dave Young
On Jan 8, 2008 1:20 AM, Greg KH <[EMAIL PROTECTED]> wrote: > On Mon, Jan 07, 2008 at 06:13:37PM +0100, Stefan Richter wrote: > > It's already in the driver core to the most part. It remains to be seen > > what is less complicated in the end: Transparent mutex-protected list > > accesses provided

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-07 Thread Dave Young
On Jan 7, 2008 4:45 PM, Greg KH <[EMAIL PROTECTED]> wrote: > On Mon, Jan 07, 2008 at 10:09:44AM +0800, Dave Young wrote: > > > > Thanks for your comment, I rewrite it for 2.6.24-rc7 as a all-in-one > > patch, please see following. Drop i2c maintainer and list in cc >

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-06 Thread Dave Young
On Sun, Jan 06, 2008 at 07:41:29PM +0100, Stefan Richter wrote: > Dave Young wrote: > > Convert semaphore to mutex in struct class. > > All the patches in this series should be applyed simultaneously > > Therefore you eventually need to repost it as a single patch. It can&#

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-02 Thread Dave Young
On Jan 3, 2008 3:24 PM, Jarek Poplawski <[EMAIL PROTECTED]> wrote: > On Thu, Jan 03, 2008 at 08:06:09AM +0100, Jarek Poplawski wrote: > > On Thu, Jan 03, 2008 at 01:50:20PM +0800, Dave Young wrote: > > > Convert semaphore to mutex in struct class. > > ... > &g

[PATCH 6/7] scsi : convert semaphore to mutex in struct class

2008-01-02 Thread Dave Young
Use mutex instead of semaphore in struct class. Signed-off-by: Dave Young <[EMAIL PROTECTED]> --- drivers/scsi/hosts.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -upr linux/drivers/scsi/hosts.c linux.new/drivers/scsi/hosts.c --- linux/drivers/scsi/hosts.c 2007-12-28

[PATCH 0/7] convert semaphore to mutex in struct class

2008-01-02 Thread Dave Young
Convert semaphore to mutex in struct class. All the patches in this series should be applyed simultaneously toc: --- 1-driver-core-struct-class-convert-semaphore-to-mutex.patch 2-i2c-struct-class-convert-semaphore-to-mutex.patch 3-ieee1394-struct-class-convert-semaphore-to-mutex.patch 4-power-stru

[PATCH 10/12] scsi : Use mutex instead of semaphore in driver core

2007-12-28 Thread Dave Young
Signed-off-by: Dave Young <[EMAIL PROTECTED]> --- drivers/scsi/hosts.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -upr linux/drivers/scsi/hosts.c linux.new/drivers/scsi/hosts.c --- linux/drivers/scsi/hosts.c 2007-12-28 10:45:46.0 +0800 +++ linux.new/driver