From: Tejun Heo <htejun@gmail.com>
To: "Robin H. Johnson" <robbat2@gentoo.org>
Cc: Jeff Garzik <jgarzik@pobox.com>, linux-ide@vger.kernel.org
Subject: Re: [PATCH 2/2 #upstream] ahci: honor PORTS_IMPL on ICH8s
Date: Tue, 07 Nov 2006 18:54:11 +0900 [thread overview]
Message-ID: <455057C3.2040905@gmail.com> (raw)
In-Reply-To: <20061106010505.GJ15897@curie-int.orbis-terrarum.net>
Robin H. Johnson wrote:
> On Thu, Nov 02, 2006 at 12:20:59PM +0900, Tejun Heo wrote:
>> @@ -1439,7 +1453,7 @@ static int ahci_host_init(struct ata_pro
>> struct ahci_host_priv *hpriv = probe_ent->private_data;
>> struct pci_dev *pdev = to_pci_dev(probe_ent->dev);
>> void __iomem *mmio = probe_ent->mmio_base;
>> - unsigned int i, using_dac;
>> + unsigned int i, cap_n_ports, using_dac;
>> int rc;
>>
>> rc = ahci_reset_controller(mmio, pdev);
>> @@ -1448,10 +1462,34 @@ static int ahci_host_init(struct ata_pro
>>
>> hpriv->cap = readl(mmio + HOST_CAP);
>> hpriv->port_map = readl(mmio + HOST_PORTS_IMPL);
>> - probe_ent->n_ports = ahci_nr_ports(hpriv->cap);
>> + cap_n_ports = ahci_nr_ports(hpriv->cap);
>>
>> VPRINTK("cap 0x%x port_map 0x%x n_ports %d\n",
>> - hpriv->cap, hpriv->port_map, probe_ent->n_ports);
>> + hpriv->cap, hpriv->port_map, n_ports);
> n_ports is undefined here. Should be cap_n_ports instead.
>
> Other than that, the two patches work perfectly.
Thanks. Forgot to drop that part again. I'll post updated patch in a
few hours.
--
tejun
next prev parent reply other threads:[~2006-11-07 9:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-02 3:17 [PATCH 1/2 #upstream] ahci: preserve PORTS_IMPL over host resets Tejun Heo
2006-11-02 3:20 ` [PATCH 2/2 #upstream] ahci: honor PORTS_IMPL on ICH8s Tejun Heo
2006-11-06 1:05 ` Robin H. Johnson
2006-11-07 9:54 ` Tejun Heo [this message]
2006-11-09 6:08 ` Tejun Heo
2006-11-11 2:37 ` Tejun Heo
2006-11-14 18:45 ` Jeff Garzik
2006-11-07 9:46 ` [PATCH 1/2 #upstream] ahci: preserve PORTS_IMPL over host resets 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=455057C3.2040905@gmail.com \
--to=htejun@gmail.com \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
--cc=robbat2@gentoo.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).