linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Albert Lee" <albertcc@tw.ibm.com>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
	IDE Linux <linux-ide@vger.kernel.org>
Subject: Re: [PATCH/RFC] Port of pdc202xx_new driver to libata
Date: Thu, 21 Oct 2004 16:36:08 +0800	[thread overview]
Message-ID: <001601c4b749$04f49550$7301a8c0@tw.ibm.com> (raw)
In-Reply-To: 4173F6AC.7090409@pobox.com

Hi, Jeff:

 Please see my reply below.
I'll resend the patch according to your review/comments later.
Thanks for your patience for newbie like me. :-)

Thanks,
Albert

----- Original Message ----- 
From: "Jeff Garzik" <jgarzik@pobox.com>
To: "Albert Lee" <albertcc@tw.ibm.com>
Cc: "Bartlomiej Zolnierkiewicz" <bzolnier@gmail.com>; "IDE Linux"
<linux-ide@vger.kernel.org>
Sent: Tuesday, October 19, 2004 1:00 AM
Subject: Re: [PATCH/RFC] Port of pdc202xx_new driver to libata


> I'm applying to libata-dev, but won't push this upstream for a while.
>
> My comments:
>
> 1) why is ROM enabled?  Normally you don't want to do this.
>
> +       /* Enable the ROM */
> +       /*
> +       if (pdev->resource[PCI_ROM_RESOURCE].start) {
> +               pci_write_config_dword(pdev, PCI_ROM_ADDRESS,
> +                       pdev->resource[PCI_ROM_RESOURCE].start |
> PCI_ROM_ADDRESS
> _ENABLE);
>

Ported from the original driver blindly. I'll remove this stuff.

>
>
> 2) why does this quirk exist?  if pata_pdc2027x (libata) will work with
> this hardware, then remove this code (and quirk) completely.  It is up
> to the user to choose the correct driver, if multiple drivers will
> function properly on the hardware.
>
> +#ifdef PDC_20276_QUIRK
> +       /*
> +        * Skip Promise PDC20276 attached to I2O RAID controller
> +        */
> +       if ((pdev->device == PCI_DEVICE_ID_PROMISE_20276) &&
> +           (pdev->bus->self) &&
> +           (pdev->bus->self->vendor == PCI_VENDOR_ID_INTEL) &&
> +           ((pdev->bus->self->device == PCI_DEVICE_ID_INTEL_I960) ||
> +            (pdev->bus->self->device == PCI_DEVICE_ID_INTEL_I960RM))) {
> +               printk(KERN_INFO DRV_NAME ": Skipping Promise PDC20276 "
> +                      "attached to I2O RAID controller.\n");
> +               return -ENODEV;
> +       }
> +#endif
>

  Ported from the original driver blindly, too.  :-(
I don't know why the original driver doesn't support it.
I'll remove it, too.

>
>
> 3) the quirk PDC_20270_QUIRK needs work to conform to current PCI API
> standards.
>
>

  Could this also be removed?
This is also ported blindly from the original driver. :-(
It seems to be a bug of DEC21150 PCI south bridge chip,
but there is no detail about the actual problem.
(I've searched the archive, but no clue found.)


>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ide" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


  parent reply	other threads:[~2004-10-21  8:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-13 10:06 [PATCH/RFC] Port of pdc202xx_new driver to libata Albert Lee
2004-10-13 19:32 ` Bartlomiej Zolnierkiewicz
2004-10-13 19:58   ` Jeff Garzik
2004-10-13 20:16     ` Bartlomiej Zolnierkiewicz
2004-10-18 10:30     ` Albert Lee
2004-10-18 17:00       ` Jeff Garzik
2004-10-18 17:26         ` Jeff Garzik
2004-10-21  8:36         ` Albert Lee [this message]
2004-10-21 23:10           ` Jeff Garzik
2004-10-22  2:32             ` Albert Lee
2004-10-27 14:46               ` Jeff Garzik

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='001601c4b749$04f49550$7301a8c0@tw.ibm.com' \
    --to=albertcc@tw.ibm.com \
    --cc=bzolnier@gmail.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    /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).