All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH] ide: remove ->ide_dma_check (take 2)
Date: Mon, 24 Sep 2007 22:33:06 +0200	[thread overview]
Message-ID: <200709242233.06851.bzolnier@gmail.com> (raw)
In-Reply-To: <46F7F156.4000201@ru.mvista.com>

On Monday 24 September 2007, Sergei Shtylyov wrote:
> Bartlomiej Zolnierkiewicz wrote:

[...]

> > @@ -783,6 +783,23 @@ int ide_tune_dma(ide_drive_t *drive)
> >  
> >  EXPORT_SYMBOL_GPL(ide_tune_dma);
> 
>     You're converting it to static and yet leaving exportable -- what for?

Oversight, export should be removed (already spotted/fixed by Adrian).

> > Index: b/drivers/ide/ide-probe.c
> > ===================================================================
> > --- a/drivers/ide/ide-probe.c
> > +++ b/drivers/ide/ide-probe.c
> > @@ -844,7 +844,7 @@ static void probe_hwif(ide_hwif_t *hwif,
> >  			 * Move here to prevent module loading clashing.
> >  			 */
> >  	//		drive->autodma = hwif->autodma;
> 
>     I hope this gets killed by the "autodma" patch?

Yep.

> > Index: b/drivers/ide/pci/hpt34x.c
> > ===================================================================
> > --- a/drivers/ide/pci/hpt34x.c
> > +++ b/drivers/ide/pci/hpt34x.c
> > @@ -80,16 +80,6 @@ static void hpt34x_set_pio_mode(ide_driv
> >  	hpt34x_set_mode(drive, XFER_PIO_0 + pio);
> >  }
> >  
> > -static int hpt34x_config_drive_xfer_rate (ide_drive_t *drive)
> > -{
> > -	if (ide_tune_dma(drive))
> > -		return -1;
> 
>     Hm, why -1 in this driver and 0 in all the others? Looks like a 
> functionality change?..

-1 is wrong (commit 76e1faa7cfd464fa06a9c2cafd633d643daafeae is to blame),
not a big issue since according to Alan this driver is broken ATM

I'll address this in "pre-patch".

Thanks,
Bart

      reply	other threads:[~2007-09-24 20:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-20 23:18 [PATCH] ide: remove ->ide_dma_check (take 2) Bartlomiej Zolnierkiewicz
2007-09-24 17:18 ` Sergei Shtylyov
2007-09-24 20:33   ` Bartlomiej Zolnierkiewicz [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=200709242233.06851.bzolnier@gmail.com \
    --to=bzolnier@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=sshtylyov@ru.mvista.com \
    /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.