From: Jeff Garzik <jgarzik@pobox.com>
To: Tejun Heo <htejun@gmail.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH] ahci: separate out ahci_fill_cmd_slot()
Date: Fri, 10 Feb 2006 07:05:44 -0500 [thread overview]
Message-ID: <43EC8198.4090302@pobox.com> (raw)
In-Reply-To: <20060210082547.GA17734@htj.dyndns.org>
Tejun Heo wrote:
> Separate out ahci_fill_cmd_slot() from ahci_qc_prep().
> ahci_fill_cmd_slot() can later be used to issue non-standard commands.
> (e.g. softreset)
>
> Signed-off-by: Tejun Heo <htejun@gmail.com>
applied, with comment:
> +static void ahci_fill_cmd_slot(struct ata_port *ap, u32 opts)
> +{
> + struct ahci_port_priv *pp = ap->private_data;
> + pp->cmd_slot[0].opts = cpu_to_le32(opts);
> + pp->cmd_slot[0].status = 0;
> + pp->cmd_slot[0].tbl_addr = cpu_to_le32(pp->cmd_tbl_dma & 0xffffffff);
> + pp->cmd_slot[0].tbl_addr_hi = cpu_to_le32((pp->cmd_tbl_dma >> 16) >> 16);
> +}
Probably should just pass 'pp' directly to ahci_fill_cmd_slot() as an
argument, rather than 'ap'.
Jeff
prev parent reply other threads:[~2006-02-10 12:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-23 8:16 [PATCH] ahci: separate out ahci_fill_cmd_slot() Tejun Heo
2006-01-27 4:08 ` Jeff Garzik
2006-02-01 17:04 ` Tejun Heo
2006-02-10 8:25 ` Tejun Heo
2006-02-10 12:05 ` Jeff Garzik [this message]
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=43EC8198.4090302@pobox.com \
--to=jgarzik@pobox.com \
--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.