public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Greg KH <gregkh@suse.de>
Cc: Jeff Garzik <jgarzik@pobox.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux-pci@atrey.karlin.mff.cuni.cz
Subject: Re: [PATCH 5/10] drivers/char: pci_find_device remove (drivers/char/specialix.c)
Date: Sat, 10 Sep 2005 23:35:10 +0200	[thread overview]
Message-ID: <4323518E.9060407@gmail.com> (raw)
In-Reply-To: <20050910211711.GA13660@suse.de>

Greg KH napsal(a):
> On Sat, Sep 10, 2005 at 11:00:34PM +0200, Jiri Slaby wrote:
> 
>>Jeff Garzik napsal(a):
>>
>>>Jiri Slaby wrote:
>>>
>>>
>>>>Signed-off-by: Jiri Slaby <xslaby@fi.muni.cz>
>>>>
>>>>specialix.c |    9 ++++++---
>>>>1 files changed, 6 insertions(+), 3 deletions(-)
>>>>
>>>>diff --git a/drivers/char/specialix.c b/drivers/char/specialix.c
>>>>--- a/drivers/char/specialix.c
>>>>+++ b/drivers/char/specialix.c
>>>>@@ -2502,9 +2502,9 @@ static int __init specialix_init(void)
>>>>                i++;
>>>>                continue;
>>>>            }
>>>>-            pdev = pci_find_device (PCI_VENDOR_ID_SPECIALIX, 
>>>>-                                    PCI_DEVICE_ID_SPECIALIX_IO8, 
>>>>-                                    pdev);
>>>>+            pdev = pci_get_device (PCI_VENDOR_ID_SPECIALIX,
>>>>+                    PCI_DEVICE_ID_SPECIALIX_IO8,
>>>>+                    pdev);
>>>>            if (!pdev) break;
>>>>
>>>>            if (pci_enable_device(pdev))
>>>>@@ -2517,7 +2517,10 @@ static int __init specialix_init(void)
>>>>            sx_board[i].flags |= SX_BOARD_IS_PCI;
>>>>            if (!sx_probe(&sx_board[i]))
>>>>                found ++;
>>>>+
>>>>        }
>>>>+        if (i >= SX_NBOARD)
>>>>+            pci_dev_put(pdev);
>>>
>>>
>>>should be converted to PCI probing, rather than this.
>>
>>I won't do that, i did that for 2 drivers and nobody was interested in 
>>that (and its much time left for nothing). These (unrewritten) drivers 
>>would be deleted in some time. Greg wants simply wipe this function out.
> 
> 
> No, I want it done correctly.  If I simply wanted the function removed,
> I would have done this kind of wholesale conversion a long time ago.
> 
> If the code needs to be converted to the proper pci probing logic,
> that's the better way to do it, and that's what should be done.
I think so too, but some drivers, that uses pci_find_device are broken 
for a long time and nobody uses it at all.

So what should I do? I want others not to use pci_find_device 
furthermore, so I sent patch that marks it deprecated. Greg sent, that 
he wants to remove them and wants to kill 'em all from the tree. When I 
rewrote the 2 drivers, nobody wanted to test them and nobody acked them, 
nobody did anything. So:
a) rewrite non-broken drivers, the rest kill (or not to kill, only mark 
find as deprecated and let them live for some next time)
b) rewrite all
c) change find to get + dev_put
d) others: ................
[What about oss drivers?]

So, Greg and Jeff, your opinions?

thanks,
-- 
Jiri Slaby         www.fi.muni.cz/~xslaby
~\-/~      jirislaby@gmail.com      ~\-/~
241B347EC88228DE51EE A49C4A73A25004CB2A10

  reply	other threads:[~2005-09-10 21:35 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-10 12:19 [PATCH 0/10] drivers/char: pci_find_device remove Jiri Slaby
2005-09-10 12:21 ` [PATCH 1/10] drivers/char: pci_find_device remove (drivers/char/ip2main.c) Jiri Slaby
2005-09-10 20:17   ` Jiri Slaby
2005-09-11 22:54     ` Jiri Slaby
2005-10-06 22:16       ` Jiri Slaby
2005-10-12 16:47         ` Jiri Slaby
2005-10-12 17:06           ` [PATCH 2.6.14-rc4] Maintainers one entry removed Jiri Slaby
2005-10-12 18:14             ` Michael Krufky
2005-10-12 18:56             ` Alan Cox
     [not found]               ` <4af2d03a0510121137h2c89ee1fw35109a41351a8b2e@mail.gmail.com>
2005-10-12 19:14                 ` Michael H. Warfield
2005-10-12 20:09                   ` Jiri Slaby
2005-10-12 20:46                     ` David S. Miller
2005-10-12 19:52                 ` Michael H. Warfield
2005-09-10 20:57   ` [PATCH 1/10] drivers/char: pci_find_device remove (drivers/char/ip2main.c) Jeff Garzik
2005-09-10 12:21 ` [PATCH 3/10] drivers/char: pci_find_device remove (drivers/char/mxser.c) Jiri Slaby
2005-09-10 12:21 ` [PATCH 2/10] drivers/char: pci_find_device remove (drivers/char/istallion.c) Jiri Slaby
2005-09-10 12:21 ` [PATCH 6/10] drivers/char: pci_find_device remove (drivers/char/stallion.c) Jiri Slaby
2005-09-10 20:56   ` Jeff Garzik
2005-09-10 12:21 ` [PATCH 7/10] drivers/char: pci_find_device remove (drivers/char/sx.c) Jiri Slaby
2005-09-10 12:21 ` [PATCH 9/10] drivers/char: pci_find_device remove (drivers/char/watchdog/alim7101_wdt.c) Jiri Slaby
2005-09-10 12:21 ` [PATCH 8/10] drivers/char: pci_find_device remove (drivers/char/watchdog/alim1535_wdt.c) Jiri Slaby
2005-09-10 12:21 ` [PATCH 4/10] drivers/char: pci_find_device remove (drivers/char/rocket.c) Jiri Slaby
2005-09-10 20:56   ` Jeff Garzik
2005-09-10 12:21 ` [PATCH 5/10] drivers/char: pci_find_device remove (drivers/char/specialix.c) Jiri Slaby
2005-09-10 20:19   ` Jiri Slaby
2005-10-06 22:20     ` Jiri Slaby
2005-09-10 20:56   ` Jeff Garzik
2005-09-10 21:00     ` Jiri Slaby
2005-09-10 21:17       ` Greg KH
2005-09-10 21:35         ` Jiri Slaby [this message]
2005-09-10 21:41           ` Jeff Garzik
2005-09-10 22:39             ` [PATCH] (i)stallion remove Jiri Slaby
2005-09-11  0:03               ` Alan Cox
2005-09-10 23:39                 ` Matthew Wilcox
2005-09-11  0:10                   ` Alan Cox
2005-09-12  1:39               ` Peter Chubb
2005-09-12  9:22                 ` Jiri Slaby
2005-09-12  9:31                 ` Christoph Hellwig
2005-09-10 21:38         ` [PATCH 5/10] drivers/char: pci_find_device remove (drivers/char/specialix.c) Jiri Slaby
2005-09-10 12:21 ` [PATCH 10/10] drivers/char: pci_find_device remove (drivers/char/watchdog/i8xx_tco.c) Jiri Slaby
2005-09-10 20:15   ` Jiri Slaby
2005-09-10 20:44     ` Nils Faerber
2005-09-10 20:58   ` Jeff Garzik
2005-09-10 22:00     ` Matthieu CASTET

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4323518E.9060407@gmail.com \
    --to=jirislaby@gmail.com \
    --cc=gregkh@suse.de \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@atrey.karlin.mff.cuni.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox