linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/5] scc_pata: add ->dma_host_set and ->dma_start methods
Date: Tue, 22 Apr 2008 20:28:53 +0400	[thread overview]
Message-ID: <480E1245.4000300@ru.mvista.com> (raw)
In-Reply-To: <200804122104.26846.bzolnier@gmail.com>

Bartlomiej Zolnierkiewicz wrote:

> Add ->dma_host_set and ->dma_start methods (+ __scc_dma_end() helper)
> so scc_ide_{in,out}b() can be used directly.

    In fact, you could have used in/out_be32() instead like the rest of the 
code in this driver...

> There should be no functional changes caused by this patch.

> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>

> Index: b/drivers/ide/pci/scc_pata.c
> ===================================================================
> --- a/drivers/ide/pci/scc_pata.c
> +++ b/drivers/ide/pci/scc_pata.c
> @@ -260,6 +260,20 @@ static void scc_set_dma_mode(ide_drive_t
>  	out_be32((void __iomem *)udenvt_port, reg);
>  }
>  
> +static void scc_dma_host_set(ide_drive_t *drive, int on)
> +{
> +	ide_hwif_t *hwif = drive->hwif;
> +	u8 unit = (drive->select.b.unit & 0x01);

    Needless parens.

> +	u8 dma_stat = scc_ide_inb(hwif->dma_status);
> +
> +	if (on)
> +		dma_stat |= (1 << (5 + unit));

   Again...

MBR, Sergei

      reply	other threads:[~2008-04-22 16:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-12 19:04 [PATCH 3/5] scc_pata: add ->dma_host_set and ->dma_start methods Bartlomiej Zolnierkiewicz
2008-04-22 16:28 ` Sergei Shtylyov [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=480E1245.4000300@ru.mvista.com \
    --to=sshtylyov@ru.mvista.com \
    --cc=bzolnier@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@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).