LKML Archive on lore.kernel.org help / color / mirror / Atom feed
* [PATCH] 2.6.25-rc1-git2: GDT SCSI: change drivers/scsi/gdth.c into using pci_get device @ 2008-02-12 14:31 Sergio Luis 2008-02-12 16:22 ` James Bottomley 0 siblings, 1 reply; 10+ messages in thread From: Sergio Luis @ 2008-02-12 14:31 UTC (permalink / raw) To: Achim Leubner; +Cc: linux-scsi, LKML Fix compilation warning in drivers/scsi/gdth.c, using deprecated pci_find_device. Change it into using pci_get_device instead: drivers/scsi/gdth.c:645: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:495) Signed-off-by: Sergio Luis <sergio@larces.uece.br> gdth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -urN linux-2.6.25-rc1-git2.orig/drivers/scsi/gdth.c linux-2.6.25-rc1-git2/drivers/scsi/gdth.c --- linux-2.6.25-rc1-git2.orig/drivers/scsi/gdth.c 2008-02-12 09:26:14.000000000 -0300 +++ linux-2.6.25-rc1-git2/drivers/scsi/gdth.c 2008-02-12 10:33:08.000000000 -0300 @@ -642,7 +642,7 @@ *cnt, vendor, device)); pdev = NULL; - while ((pdev = pci_find_device(vendor, device, pdev)) + while ((pdev = pci_get_device(vendor, device, pdev)) != NULL) { if (pci_enable_device(pdev)) continue; ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] 2.6.25-rc1-git2: GDT SCSI: change drivers/scsi/gdth.c into using pci_get device 2008-02-12 14:31 [PATCH] 2.6.25-rc1-git2: GDT SCSI: change drivers/scsi/gdth.c into using pci_get device Sergio Luis @ 2008-02-12 16:22 ` James Bottomley 2008-02-12 16:54 ` Boaz Harrosh 0 siblings, 1 reply; 10+ messages in thread From: James Bottomley @ 2008-02-12 16:22 UTC (permalink / raw) To: Sergio Luis; +Cc: Achim Leubner, linux-scsi, LKML On Tue, 2008-02-12 at 11:31 -0300, Sergio Luis wrote: > Fix compilation warning in drivers/scsi/gdth.c, using deprecated pci_find_device. > Change it into using pci_get_device instead: > drivers/scsi/gdth.c:645: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:495) > > Signed-off-by: Sergio Luis <sergio@larces.uece.br> > > gdth.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > > diff -urN linux-2.6.25-rc1-git2.orig/drivers/scsi/gdth.c linux-2.6.25-rc1-git2/drivers/scsi/gdth.c > --- linux-2.6.25-rc1-git2.orig/drivers/scsi/gdth.c 2008-02-12 09:26:14.000000000 -0300 > +++ linux-2.6.25-rc1-git2/drivers/scsi/gdth.c 2008-02-12 10:33:08.000000000 -0300 > @@ -642,7 +642,7 @@ > *cnt, vendor, device)); > > pdev = NULL; > - while ((pdev = pci_find_device(vendor, device, pdev)) > + while ((pdev = pci_get_device(vendor, device, pdev)) > != NULL) { > if (pci_enable_device(pdev)) > continue; This can't be correct without a matching put in the error leg. The difference between the two APIs is that pci_get_device returns a pci_device with a reference taken and pci_find_device doesn't. However, pci_get_device does drop the reference again so as long as you never exit the loop until it returns NULL, it is OK ... it's the exits before pci_get_device() returns NULL that need the put. James ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] 2.6.25-rc1-git2: GDT SCSI: change drivers/scsi/gdth.c into using pci_get device 2008-02-12 16:22 ` James Bottomley @ 2008-02-12 16:54 ` Boaz Harrosh [not found] ` <47B23033.1080100@larces.uece.br> 0 siblings, 1 reply; 10+ messages in thread From: Boaz Harrosh @ 2008-02-12 16:54 UTC (permalink / raw) To: James Bottomley; +Cc: Sergio Luis, Achim Leubner, linux-scsi, LKML On Tue, Feb 12 2008 at 18:22 +0200, James Bottomley <James.Bottomley@HansenPartnership.com> wrote: > On Tue, 2008-02-12 at 11:31 -0300, Sergio Luis wrote: >> Fix compilation warning in drivers/scsi/gdth.c, using deprecated pci_find_device. >> Change it into using pci_get_device instead: >> drivers/scsi/gdth.c:645: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:495) >> >> Signed-off-by: Sergio Luis <sergio@larces.uece.br> >> >> gdth.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> >> diff -urN linux-2.6.25-rc1-git2.orig/drivers/scsi/gdth.c linux-2.6.25-rc1-git2/drivers/scsi/gdth.c >> --- linux-2.6.25-rc1-git2.orig/drivers/scsi/gdth.c 2008-02-12 09:26:14.000000000 -0300 >> +++ linux-2.6.25-rc1-git2/drivers/scsi/gdth.c 2008-02-12 10:33:08.000000000 -0300 >> @@ -642,7 +642,7 @@ >> *cnt, vendor, device)); >> >> pdev = NULL; >> - while ((pdev = pci_find_device(vendor, device, pdev)) >> + while ((pdev = pci_get_device(vendor, device, pdev)) >> != NULL) { >> if (pci_enable_device(pdev)) >> continue; > > This can't be correct without a matching put in the error leg. > > The difference between the two APIs is that pci_get_device returns a > pci_device with a reference taken and pci_find_device doesn't. However, > pci_get_device does drop the reference again so as long as you never > exit the loop until it returns NULL, it is OK ... it's the exits before > pci_get_device() returns NULL that need the put. > > James > Yes you are right I have just realized that. Reinspecting pci_get_device() Sergio will you do it? or should I have a try? Boaz ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <47B23033.1080100@larces.uece.br>]
* Re: [PATCH] 2.6.25-rc1-git2: GDT SCSI: change drivers/scsi/gdth.c into using pci_get device [not found] ` <47B23033.1080100@larces.uece.br> @ 2008-02-13 0:17 ` James Bottomley 2008-02-13 8:57 ` Boaz Harrosh 0 siblings, 1 reply; 10+ messages in thread From: James Bottomley @ 2008-02-13 0:17 UTC (permalink / raw) To: Sergio Luis; +Cc: Boaz Harrosh, Achim Leubner, linux-scsi, LKML On Tue, 2008-02-12 at 20:48 -0300, Sergio Luis wrote: > reposting an updated version of it. Please check if it's ok. Looks fine, thanks! You added an extra space at the end of while ((pdev = pci_get_device(vendor, device, pdev)) Which I fixed. Unfortunately checkpatch isn't very helpful for this driver since it uses spaces not tabs everywhere, which checkpatch really hates. James ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] 2.6.25-rc1-git2: GDT SCSI: change drivers/scsi/gdth.c into using pci_get device 2008-02-13 0:17 ` James Bottomley @ 2008-02-13 8:57 ` Boaz Harrosh 2008-02-16 16:37 ` Matthew Wilcox 0 siblings, 1 reply; 10+ messages in thread From: Boaz Harrosh @ 2008-02-13 8:57 UTC (permalink / raw) To: James Bottomley Cc: Sergio Luis, Achim Leubner, linux-scsi, LKML, Matthew Wilcox On Wed, Feb 13 2008 at 2:17 +0200, James Bottomley <James.Bottomley@HansenPartnership.com> wrote: > On Tue, 2008-02-12 at 20:48 -0300, Sergio Luis wrote: >> reposting an updated version of it. Please check if it's ok. > > Looks fine, thanks! You added an extra space at the end of > > while ((pdev = pci_get_device(vendor, device, pdev)) > > Which I fixed. Unfortunately checkpatch isn't very helpful for this > driver since it uses spaces not tabs everywhere, which checkpatch really > hates. > > James > > James hi This patch is now obsolete. After Jeff's patch to convert it to hot plug API. Jeffs patch looks very good to me. I will try to push it through the testers. I still don't have a card for testing myself. Again anyone wants to send me a card. Intel people anybody home? I will add the missing Kconfig hunk to jeff's patch and will push it after it is tested. Thanks Boaz ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] 2.6.25-rc1-git2: GDT SCSI: change drivers/scsi/gdth.c into using pci_get device 2008-02-13 8:57 ` Boaz Harrosh @ 2008-02-16 16:37 ` Matthew Wilcox 2008-02-17 10:37 ` Boaz Harrosh 0 siblings, 1 reply; 10+ messages in thread From: Matthew Wilcox @ 2008-02-16 16:37 UTC (permalink / raw) To: Boaz Harrosh Cc: James Bottomley, Sergio Luis, Achim Leubner, linux-scsi, LKML On Wed, Feb 13, 2008 at 10:57:37AM +0200, Boaz Harrosh wrote: > I still don't have a card for testing myself. Again anyone > wants to send me a card. Intel people anybody home? Apparently Intel sold this line of cards to Adaptec. The copyright notice in the file backs this up: * Copyright (C) 1995-06 ICP vortex GmbH, Achim Leubner * * Copyright (C) 2002-04 Intel Corporation * * Copyright (C) 2003-06 Adaptec Inc. * * <achim_leubner@adaptec.com> * -- Intel are signing my paycheques ... these opinions are still mine "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] 2.6.25-rc1-git2: GDT SCSI: change drivers/scsi/gdth.c into using pci_get device 2008-02-16 16:37 ` Matthew Wilcox @ 2008-02-17 10:37 ` Boaz Harrosh 2008-02-17 16:42 ` Jeff Garzik 2008-03-04 7:48 ` Hannes Reinecke 0 siblings, 2 replies; 10+ messages in thread From: Boaz Harrosh @ 2008-02-17 10:37 UTC (permalink / raw) To: Matthew Wilcox, support Cc: James Bottomley, Sergio Luis, Achim Leubner, linux-scsi, LKML On Sat, Feb 16 2008 at 18:37 +0200, Matthew Wilcox <matthew@wil.cx> wrote: > On Wed, Feb 13, 2008 at 10:57:37AM +0200, Boaz Harrosh wrote: >> I still don't have a card for testing myself. Again anyone >> wants to send me a card. Intel people anybody home? > > Apparently Intel sold this line of cards to Adaptec. The copyright > notice in the file backs this up: > > * Copyright (C) 1995-06 ICP vortex GmbH, Achim Leubner * > * Copyright (C) 2002-04 Intel Corporation * > * Copyright (C) 2003-06 Adaptec Inc. * > * <achim_leubner@adaptec.com> * > OK I never got this guy to ping back. CCing support@adaptec.com. Who is the right contact person, regarding the HW that is supported by the gdth driver? Form what we see in driver commit logs (above), it was transfered to Adaptec from Intel in 2003. Is that still so? Boaz ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] 2.6.25-rc1-git2: GDT SCSI: change drivers/scsi/gdth.c into using pci_get device 2008-02-17 10:37 ` Boaz Harrosh @ 2008-02-17 16:42 ` Jeff Garzik 2008-03-04 7:48 ` Hannes Reinecke 1 sibling, 0 replies; 10+ messages in thread From: Jeff Garzik @ 2008-02-17 16:42 UTC (permalink / raw) To: Boaz Harrosh Cc: Matthew Wilcox, support, James Bottomley, Sergio Luis, Achim Leubner, linux-scsi, LKML, Andrew Morton, achim_leubner Boaz Harrosh wrote: > On Sat, Feb 16 2008 at 18:37 +0200, Matthew Wilcox <matthew@wil.cx> wrote: >> On Wed, Feb 13, 2008 at 10:57:37AM +0200, Boaz Harrosh wrote: >>> I still don't have a card for testing myself. Again anyone >>> wants to send me a card. Intel people anybody home? >> Apparently Intel sold this line of cards to Adaptec. The copyright >> notice in the file backs this up: >> >> * Copyright (C) 1995-06 ICP vortex GmbH, Achim Leubner * >> * Copyright (C) 2002-04 Intel Corporation * >> * Copyright (C) 2003-06 Adaptec Inc. * >> * <achim_leubner@adaptec.com> * >> > > OK I never got this guy to ping back. CCing support@adaptec.com. > > Who is the right contact person, regarding the HW that is supported > by the gdth driver? Form what we see in driver commit logs (above), > it was transfered to Adaptec from Intel in 2003. Is that still so? In my experience Achim does respond, but this driver is probably very low priority, so it might take a while... Jeff ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] 2.6.25-rc1-git2: GDT SCSI: change drivers/scsi/gdth.c into using pci_get device 2008-02-17 10:37 ` Boaz Harrosh 2008-02-17 16:42 ` Jeff Garzik @ 2008-03-04 7:48 ` Hannes Reinecke 2008-03-04 12:04 ` Boaz Harrosh 1 sibling, 1 reply; 10+ messages in thread From: Hannes Reinecke @ 2008-03-04 7:48 UTC (permalink / raw) To: Boaz Harrosh Cc: Matthew Wilcox, James Bottomley, Sergio Luis, linux-scsi, LKML Boaz Harrosh wrote: > On Sat, Feb 16 2008 at 18:37 +0200, Matthew Wilcox <matthew@wil.cx> wrote: >> On Wed, Feb 13, 2008 at 10:57:37AM +0200, Boaz Harrosh wrote: >>> I still don't have a card for testing myself. Again anyone >>> wants to send me a card. Intel people anybody home? >> Apparently Intel sold this line of cards to Adaptec. The copyright >> notice in the file backs this up: >> >> * Copyright (C) 1995-06 ICP vortex GmbH, Achim Leubner * >> * Copyright (C) 2002-04 Intel Corporation * >> * Copyright (C) 2003-06 Adaptec Inc. * >> * <achim_leubner@adaptec.com> * >> > > OK I never got this guy to ping back. CCing support@adaptec.com. > > Who is the right contact person, regarding the HW that is supported > by the gdth driver? Form what we see in driver commit logs (above), > it was transfered to Adaptec from Intel in 2003. Is that still so? > Yes, apparently. But gdth is the driver for the rather old ICP Vortex range; most of which are driven by aacraid nowadays. I thought I had one of these beasts; will check. But yes, this is Adaptec. Unless the person is Mark Salyzyn or Luben it's quite tricky to excite any response. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Markus Rex, HRB 16746 (AG Nürnberg) ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] 2.6.25-rc1-git2: GDT SCSI: change drivers/scsi/gdth.c into using pci_get device 2008-03-04 7:48 ` Hannes Reinecke @ 2008-03-04 12:04 ` Boaz Harrosh 0 siblings, 0 replies; 10+ messages in thread From: Boaz Harrosh @ 2008-03-04 12:04 UTC (permalink / raw) To: Hannes Reinecke, Christoph Hellwig Cc: Matthew Wilcox, James Bottomley, Sergio Luis, linux-scsi, LKML, Luben Tuikov On Tue, Mar 04 2008 at 9:48 +0200, Hannes Reinecke <hare@suse.de> wrote: > Boaz Harrosh wrote: >> On Sat, Feb 16 2008 at 18:37 +0200, Matthew Wilcox <matthew@wil.cx> wrote: >>> On Wed, Feb 13, 2008 at 10:57:37AM +0200, Boaz Harrosh wrote: >>>> I still don't have a card for testing myself. Again anyone >>>> wants to send me a card. Intel people anybody home? >>> Apparently Intel sold this line of cards to Adaptec. The copyright >>> notice in the file backs this up: >>> >>> * Copyright (C) 1995-06 ICP vortex GmbH, Achim Leubner * >>> * Copyright (C) 2002-04 Intel Corporation * >>> * Copyright (C) 2003-06 Adaptec Inc. * >>> * <achim_leubner@adaptec.com> * >>> >> OK I never got this guy to ping back. CCing support@adaptec.com. >> >> Who is the right contact person, regarding the HW that is supported >> by the gdth driver? Form what we see in driver commit logs (above), >> it was transfered to Adaptec from Intel in 2003. Is that still so? >> > Yes, apparently. But gdth is the driver for the rather old ICP Vortex > range; most of which are driven by aacraid nowadays. > I thought I had one of these beasts; will check. > > But yes, this is Adaptec. Unless the person is Mark Salyzyn or Luben > it's quite tricky to excite any response. > > Cheers, > > Hannes Thanks Hannes. I never got any response. I guess I'm not important enough. Christoph said he has a card, that he'll send once he gets to it. I'll wait for his card. I gave up on the Adaptec guys. Boaz ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-03-04 12:05 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-02-12 14:31 [PATCH] 2.6.25-rc1-git2: GDT SCSI: change drivers/scsi/gdth.c into using pci_get device Sergio Luis 2008-02-12 16:22 ` James Bottomley 2008-02-12 16:54 ` Boaz Harrosh [not found] ` <47B23033.1080100@larces.uece.br> 2008-02-13 0:17 ` James Bottomley 2008-02-13 8:57 ` Boaz Harrosh 2008-02-16 16:37 ` Matthew Wilcox 2008-02-17 10:37 ` Boaz Harrosh 2008-02-17 16:42 ` Jeff Garzik 2008-03-04 7:48 ` Hannes Reinecke 2008-03-04 12:04 ` Boaz Harrosh
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).