linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: hancockr@shaw.ca
Cc: IDE/ATA development list <linux-ide@vger.kernel.org>
Subject: Re: sata_nv: cleanup CPB and APRD initialization
Date: Mon, 26 Feb 2007 18:26:34 -0500	[thread overview]
Message-ID: <45E36CAA.2050809@garzik.org> (raw)
In-Reply-To: <200702262259.l1QMxKug009433@hera.kernel.org>

Linux Kernel Mailing List wrote:
> Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=41949ed5c11a9d6e7af1afd62957d8d1988c803e
> Commit:     41949ed5c11a9d6e7af1afd62957d8d1988c803e
> Parent:     08af7414786a3f35b686f68ada3de0b202c03d8c
> Author:     Robert Hancock <hancockr@shaw.ca>
> AuthorDate: Mon Feb 19 19:02:27 2007 -0600
> Committer:  Jeff Garzik <jeff@garzik.org>
> CommitDate: Wed Feb 21 04:58:19 2007 -0500
> 
>     sata_nv: cleanup CPB and APRD initialization
>     
>     Clean up the initialization of the CPB and APRD structures so that we
>     strictly follow the rules for ordering of writes to the CPB flags and
>     response flags, and prevent duplicate initialization.
>     
>     Signed-off-by: Robert Hancock <hancockr@shaw.ca>
>     Signed-off-by: Jeff Garzik <jeff@garzik.org>
> ---

> @@ -1199,6 +1196,8 @@ static void nv_adma_fill_sg(struct ata_queued_cmd *qc, struct nv_adma_cpb *cpb)
>  	}
>  	if (idx > 5)
>  		cpb->next_aprd = cpu_to_le64(((u64)(pp->aprd_dma + NV_ADMA_SGTBL_SZ * qc->tag)));
> +	else
> +		cpb->next_aprd = cpu_to_le64(0);

Note, there is no need to convert a zero to little endian.  There are no 
bits to swap :)

	Jeff



           reply	other threads:[~2007-02-26 23:26 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <200702262259.l1QMxKug009433@hera.kernel.org>]

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=45E36CAA.2050809@garzik.org \
    --to=jeff@garzik.org \
    --cc=hancockr@shaw.ca \
    --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).