From: Tejun Heo <tj@kernel.org>
To: JosephChan@via.com.tw
Cc: alan@lxorguk.ukuu.org.uk, linux-ide@vger.kernel.org,
sshtylyov@ru.mvista.com
Subject: Re: [PATCH 1/2 v1] pata_via.c: support VX855 and future chips whose IDE controller use 0x0571.
Date: Thu, 22 Jan 2009 10:19:26 +0900 [thread overview]
Message-ID: <4977C99E.1000102@kernel.org> (raw)
In-Reply-To: <C80EF34A3D2E494DBAF9AC29C7AE4EB808831374@exchtp03.taipei.via.com.tw>
Hello, Joseph.
JosephChan@via.com.tw wrote:
>> Also, you can just bypass whole southbridge thing. Add
>> another flag, say, VIA_IDFLAG_IGN_SOUTH or something and just
>> skip the whole thing if the flags is set.
>>
>
> This is our next goal for this. :)
:-)
> @@ -97,8 +101,14 @@
> u8 rev_max;
> u16 flags;
> } via_isa_bridges[] = {
> + { "vtxxxx", PCI_DEVICE_ID_VIA_ANON, 0x00, 0x2f, VIA_UDMA_133 |
> + VIA_BAD_AST },
More usual line breaking / indenting style would be...
{ "vtxxxx", PCI_DEVICE_ID_VIA_ANON, 0x00, 0x2f,
VIA_UDMA_133 | VIA_BAD_AST },
> @@ -460,6 +470,7 @@
> static int printed_version;
> u8 enable;
> u32 timing;
> + unsigned long flags = id->driver_data;
> int rc;
>
> if (!printed_version++)
> @@ -469,6 +480,9 @@
> if (rc)
> return rc;
>
> + if (flags & VIA_IDFLAG_SINGLE)
> + ppi[1] = &ata_dummy_port_info;
> +
Yay.
> @@ -483,10 +497,10 @@
> }
>
> if (!config->id) {
> - printk(KERN_WARNING "via: Unknown VIA SouthBridge, disabling.\n");
> - return -ENODEV;
> - }
> - pci_dev_put(isa);
> + printk(KERN_WARNING "via: Unknown VIA SouthBridge.\n");
> + config = via_isa_bridges;
Heh.. a bit confusing. Can you please put the wildcard entry at the
end of the list and make the loop condition
for (config = via_isa_bridges; config->id != PCI_DEVICE_ID_VIA_ANON; config++)
That way, you won't need any special handling and just use "UNKNOWN"
as the name of the wildcard entry.
Thanks.
--
tejun
next prev parent reply other threads:[~2009-01-22 1:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-16 11:46 [PATCH 1/2 v1] pata_via.c: support VX855 and future chips whose IDE controller use 0x0571 JosephChan
2009-01-16 14:34 ` Tejun Heo
2009-01-19 11:26 ` JosephChan
2009-01-22 1:19 ` Tejun Heo [this message]
2009-01-22 11:37 ` JosephChan
2009-01-22 23:35 ` Tejun Heo
2009-01-23 3:15 ` JosephChan
2009-01-23 3:33 ` Tejun Heo
-- strict thread matches above, loose matches on Subject: below --
2009-01-15 13:04 JosephChan
2009-01-15 13:40 ` Alan Cox
2009-01-16 0:57 ` JosephChan
2009-01-16 12:15 ` Sergei Shtylyov
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=4977C99E.1000102@kernel.org \
--to=tj@kernel.org \
--cc=JosephChan@via.com.tw \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-ide@vger.kernel.org \
--cc=sshtylyov@ru.mvista.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.