From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH 5/13] cy82c693: add ->set_dma_mode method
Date: Sat, 16 Feb 2008 18:59:47 +0100 [thread overview]
Message-ID: <200802161859.47957.bzolnier@gmail.com> (raw)
In-Reply-To: <477E8FC6.3040107@ru.mvista.com>
[ Sorry for the late reply. ]
On Friday 04 January 2008, Sergei Shtylyov wrote:
> Bartlomiej Zolnierkiewicz wrote:
>
> > * Fix SWDMA/MWDMA masks in cy82c693_chipset.
>
> > * Add IDE_HFLAG_CY82C693 host flag and use it in ide_tune_dma() to
> > check whether the DMA should be enabled even if ide_max_dma_mode()
> > fails.
>
> I didn't get why this was necessary...
"paranoia" ;-)
Care to send a patch removing it?
> > * Convert cy82c693_dma_enable() to become cy82c693_set_dma_mode()
> > and remove no longer needed cy82c693_ide_dma_on(). Then set
> > IDE_HFLAG_CY82C693 instead of IDE_HFLAG_TRUST_BIOS_FOR_DMA in
> > cy82c693_chipset.
>
> > * Bump driver version.
>
> > As a result of this patch cy82c693 driver will configure and use DMA on
> > all SWDMA0-2 and MWDMA0-2 capable ATA devices instead of relying on BIOS.
>
> > Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
>
>
> > Index: b/drivers/ide/pci/cy82c693.c
> > ===================================================================
> > --- a/drivers/ide/pci/cy82c693.c
> > +++ b/drivers/ide/pci/cy82c693.c
> > @@ -1,5 +1,5 @@
> > /*
> > - * linux/drivers/ide/pci/cy82c693.c Version 0.43 Nov 7, 2007
> > + * linux/drivers/ide/pci/cy82c693.c Version 0.44 Nov 8, 2007
> > *
> > * Copyright (C) 1998-2000 Andreas S. Krebs (akrebs@altavista.net), Maintainer
> > * Copyright (C) 1998-2002 Andre Hedrick <andre@linux-ide.org>, Integrator
> > @@ -176,14 +176,12 @@ static void compute_clocks (u8 pio, pio_
> > * set DMA mode a specific channel for CY82C693
> > */
> >
> > -static void cy82c693_dma_enable (ide_drive_t *drive, int mode, int single)
> > +static void cy82c693_set_dma_mode(ide_drive_t *drive, const u8 mode)
> > {
> > - u8 index = 0, data = 0;
> > + ide_hwif_t *hwif = drive->hwif;
> > + u8 single = (mode & 0x10) >> 4, index = 0, data = 0;
>
> Useless intializers for 'index' and 'data'.
ditto
Thanks,
Bart
prev parent reply other threads:[~2008-02-16 17:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-12 23:01 [PATCH 5/13] cy82c693: add ->set_dma_mode method Bartlomiej Zolnierkiewicz
2008-01-04 19:57 ` Sergei Shtylyov
2008-02-16 17:59 ` 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=200802161859.47957.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 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).