From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: Daniel Drake <dsd@gentoo.org>
Cc: jgarzik@pobox.com, linux-kernel@vger.kernel.org,
linux-ide@vger.kernel.org, posting@blx4.net, vsu@altlinux.ru
Subject: Re: [PATCH] via82cxxx IDE: Support multiple controllers
Date: Tue, 27 Sep 2005 15:20:53 +0200 [thread overview]
Message-ID: <58cb370e050927062049be32f8@mail.gmail.com> (raw)
In-Reply-To: <43179CC9.8090608@gentoo.org>
On 9/2/05, Daniel Drake <dsd@gentoo.org> wrote:
> Bartlomiej Zolnierkiewicz wrote:
> > Same thing as with VT6420 support:
> >
> > I'm still concerned about VIA IDE chipset + VT6410 combo
> > (AFAIR I've also seen VT6410 on PCI add-on card but I can be wrong).
> >
> > via82cxxx.c needs to be fixed to support multiple controllers first.
>
> Hows this? I don't have any hardware with two VIA controllers, however I have
> tested this on a pc which has a single vt8233a controller.
>
> ---
>
> Support multiple controllers in the via82cxxx IDE driver
>
> Signed-off-by: Daniel Drake <dsd@gentoo.org>
--- linux/drivers/ide/pci/via82cxxx.c.orig 2005-08-31 01:32:05.000000000 +0100
+++ linux/drivers/ide/pci/via82cxxx.c 2005-09-02 01:16:59.000000000 +0100
@@ -101,11 +101,19 @@ static struct via_isa_bridge {
{ NULL }
};
-static struct via_isa_bridge *via_config;
-static unsigned int via_80w;
-static unsigned int via_clock;
static char *via_dma[] = { "MWDMA16", "UDMA33", "UDMA66", "UDMA100",
"UDMA133" };
I would really prefer not to add per host struct via82xxx_dev,
(making it per hwif and doing extra match in ->init_hwif() is acceptable).
+struct via82cxxx_dev
+{
+ struct pci_dev *pci_dev, *isa_dev;
pci_dev is needed only for /proc/via and I would prefer /proc/via
to vanish because it complicates driver needlessly (could you do
this in separate patch?).
isa_dev has no relevance for vt6410 and won't be needed if
/proc/via goes away
+ struct via_isa_bridge *via_config;
Please instead add via_config_find() which would
find proper via_config given PCI ID.
+ unsigned int via_clock;
Global via_clock is OK as IDE core doesn't
support per bus PCI clocks anyway.
+ unsigned int via_80w;
Cable detection code should be moved to separate function
and be called from ->init_hwif() (required for future hotplug support).
Otherwise patch looks fine.
Thanks and sorry for the delay,
Bartlomiej
next prev parent reply other threads:[~2005-09-27 13:20 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-30 14:27 [PATCH] Add VIA VT6410 support Daniel Drake
2005-08-30 15:12 ` Bartlomiej Zolnierkiewicz
2005-09-02 0:28 ` [PATCH] via82cxxx IDE: Support multiple controllers Daniel Drake
2005-09-09 22:19 ` Daniel Drake
2005-09-27 13:20 ` Bartlomiej Zolnierkiewicz [this message]
2005-09-28 22:18 ` [PATCH] via82cxxx IDE: Remove /proc/via entry Daniel Drake
2005-09-28 22:37 ` Al Viro
2005-09-28 23:00 ` [PATCH] via82cxxx IDE: Remove /proc/ide/via entry Daniel Drake
2005-09-29 7:26 ` Bartlomiej Zolnierkiewicz
2005-09-28 22:48 ` [PATCH] via82cxxx IDE: Remove /proc/via entry Grzegorz Kulewski
2005-09-29 7:27 ` Bartlomiej Zolnierkiewicz
2005-10-09 15:18 ` Grzegorz Kulewski
2005-10-13 22:52 ` Daniel Drake
2005-11-18 20:39 ` Bartlomiej Zolnierkiewicz
2005-09-28 22:22 ` [PATCH] via82cxxx IDE: Support multiple controllers (v2) Daniel Drake
2005-11-04 10:52 ` Daniel Drake
2005-11-18 20:41 ` Bartlomiej Zolnierkiewicz
2005-10-12 15:38 ` [PATCH] via82cxxx IDE: Support multiple controllers Daniel Drake
2005-10-12 15:49 ` Jeff Garzik
2005-10-12 15:57 ` Daniel Drake
2005-10-12 17:52 ` Alan Cox
2005-10-13 11:45 ` Alan Cox
2005-10-13 14:41 ` Mark Lord
2005-10-13 15:29 ` Alan Cox
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=58cb370e050927062049be32f8@mail.gmail.com \
--to=bzolnier@gmail.com \
--cc=dsd@gentoo.org \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=posting@blx4.net \
--cc=vsu@altlinux.ru \
/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;
as well as URLs for NNTP newsgroup(s).