From: Jeff Garzik <jeff@garzik.org>
To: Tejun Heo <htejun@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>, linux-ide@vger.kernel.org
Subject: Re: [PATCH libata-dev#upstream 3/3] libata: implement and use ata_port_desc() to report port configuration
Date: Wed, 15 Aug 2007 04:48:46 -0400 [thread overview]
Message-ID: <46C2BDEE.7060705@garzik.org> (raw)
In-Reply-To: <20070730052527.GJ22374@htj.dyndns.org>
Tejun Heo wrote:
> Currently, port configuration reporting has the following problems.
>
> * iomapped address is reported instead of raw address
> * report contains irrelevant fields or lacks necessary fields for
> non-SFF controllers.
> * host->irq/irq2 are there just for reporting and hacky.
>
> This patch implements and uses ata_port_desc() and
> ata_port_pbar_desc(). ata_port_desc() is almost identical to
> ata_ehi_push_desc() except that it takes @ap instead of @ehi, has no
> locking requirement, can only be used during host initialization and "
> " is used as separator instead of ", ". ata_port_pbar_desc() is a
> helper to ease reporting of a PCI BAR or an offsetted address into it.
>
> LLD pushes whatever description it wants using the above two
> functions. The accumulated description is printed on host
> registration after "[S/P]ATA max MAX_XFERMODE ".
>
> SFF init helpers and ata_host_activate() automatically add
> descriptions for addresses and irq respectively, so only LLDs which
> isn't standard SFF need to add custom descriptions. In many cases,
> such controllers need to report different things anyway.
>
> Signed-off-by: Tejun Heo <htejun@gmail.com>
> ---
> pata_hpt3x3 fixed as pointed out by Alan.
>
> drivers/ata/ahci.c | 4 ++
> drivers/ata/libata-core.c | 27 +++++++----------
> drivers/ata/libata-eh.c | 67 +++++++++++++++++++++++++++++++++++++++++++
> drivers/ata/libata-sff.c | 23 +++++++++++---
> drivers/ata/pata_cs5520.c | 23 +++++++++-----
> drivers/ata/pata_hpt3x3.c | 6 +++
> drivers/ata/pata_icside.c | 19 ++++++++++--
> drivers/ata/pata_isapnp.c | 4 ++
> drivers/ata/pata_ixp4xx_cf.c | 13 +++++++-
> drivers/ata/pata_legacy.c | 2 +
> drivers/ata/pata_mpc52xx.c | 7 +++-
> drivers/ata/pata_mpiix.c | 16 ++++++----
> drivers/ata/pata_pcmcia.c | 2 +
> drivers/ata/pata_pdc2027x.c | 17 +++++++---
> drivers/ata/pata_platform.c | 4 ++
> drivers/ata/pata_qdi.c | 5 ++-
> drivers/ata/pata_scc.c | 3 +
> drivers/ata/pata_winbond.c | 7 +++-
> drivers/ata/pdc_adma.c | 13 ++++++--
> drivers/ata/sata_inic162x.c | 14 +++++++-
> drivers/ata/sata_mv.c | 8 ++++-
> drivers/ata/sata_promise.c | 11 +++++--
> drivers/ata/sata_qstor.c | 11 +++++--
> drivers/ata/sata_sil.c | 6 +++
> drivers/ata/sata_sil24.c | 7 +++-
> drivers/ata/sata_svw.c | 12 +++++--
> drivers/ata/sata_sx4.c | 19 +++++++-----
> drivers/ata/sata_uli.c | 13 ++++++++
> drivers/ata/sata_via.c | 3 +
> drivers/ata/sata_vsc.c | 12 +++++--
> include/linux/libata.h | 12 ++++++-
> 31 files changed, 309 insertions(+), 81 deletions(-)
ACK, request rediff once #upstream mirrors out
next prev parent reply other threads:[~2007-08-15 8:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-30 5:23 [PATCH libata-dev#upstream 1/3] libata: use ata_port_printk() in ata_wait_idle() Tejun Heo
2007-07-30 5:24 ` [PATCH libata-dev#upstream 2/3] libata: add printf format attribute to ehi desc functions Tejun Heo
2007-07-30 5:25 ` [PATCH libata-dev#upstream 3/3] libata: implement and use ata_port_desc() to report port configuration Tejun Heo
2007-07-30 12:55 ` Alan Cox
2007-08-15 8:48 ` Jeff Garzik [this message]
2007-08-18 4:14 ` [PATCH libata-dev#upstream 3/3 REGENERATED] " Tejun Heo
2007-08-31 9:35 ` Jeff Garzik
2007-08-15 8:49 ` [PATCH libata-dev#upstream 1/3] libata: use ata_port_printk() in ata_wait_idle() 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=46C2BDEE.7060705@garzik.org \
--to=jeff@garzik.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=htejun@gmail.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 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.