linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH 6/6] ide-pmac: use custom hwif->sg_max_nents only if DMA support is enabled
Date: Wed, 28 Nov 2007 10:36:15 +1100	[thread overview]
Message-ID: <1196206575.7157.65.camel@pasglop> (raw)
In-Reply-To: <200711280000.14973.bzolnier@gmail.com>


On Wed, 2007-11-28 at 00:00 +0100, Bartlomiej Zolnierkiewicz wrote:
> Move setting hwif->sg_max_nents from pmac_ide_setup_device()
> to pmac_ide_setup_dma().
> 
> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

Ack.

> ---
>  drivers/ide/ppc/pmac.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> Index: b/drivers/ide/ppc/pmac.c
> ===================================================================
> --- a/drivers/ide/ppc/pmac.c
> +++ b/drivers/ide/ppc/pmac.c
> @@ -1133,8 +1133,6 @@ pmac_ide_setup_device(pmac_ide_hwif_t *p
>  		hwif->noprobe = 0;
>  #endif /* CONFIG_PMAC_MEDIABAY */
>  
> -	hwif->sg_max_nents = MAX_DCMDS;
> -
>  #ifdef CONFIG_BLK_DEV_IDEDMA_PMAC
>  	/* has a DBDMA controller channel */
>  	if (pmif->dma_regs)
> @@ -1751,6 +1749,8 @@ pmac_ide_setup_dma(pmac_ide_hwif_t *pmif
>  		return;
>  	}
>  
> +	hwif->sg_max_nents = MAX_DCMDS;
> +
>  	hwif->dma_host_set = &pmac_ide_dma_host_set;
>  	hwif->dma_setup = &pmac_ide_dma_setup;
>  	hwif->dma_exec_cmd = &pmac_ide_dma_exec_cmd;


  reply	other threads:[~2007-11-27 23:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-27 23:00 [PATCH 6/6] ide-pmac: use custom hwif->sg_max_nents only if DMA support is enabled Bartlomiej Zolnierkiewicz
2007-11-27 23:36 ` Benjamin Herrenschmidt [this message]
2007-11-28 11:43 ` Sergei Shtylyov

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=1196206575.7157.65.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=bzolnier@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 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).