* [PATCH 10/13] ide-cris: fix DMA methods
@ 2007-11-12 23:02 Bartlomiej Zolnierkiewicz
2007-11-14 16:41 ` Sergei Shtylyov
2007-12-07 16:52 ` Sergei Shtylyov
0 siblings, 2 replies; 4+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2007-11-12 23:02 UTC (permalink / raw)
To: linux-ide; +Cc: Mikael Starvik
* Rename cris_dma_{on,off}() to cris_dma_host_{on,off}().
* Remove no longer needed ->dma_off_quietly
(IDE core has the needed code now).
* Make cris_dma_host_on() void.
Cc: Mikael Starvik <starvik@axis.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
drivers/ide/cris/ide-cris.c | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
Index: b/drivers/ide/cris/ide-cris.c
===================================================================
--- a/drivers/ide/cris/ide-cris.c
+++ b/drivers/ide/cris/ide-cris.c
@@ -673,9 +673,12 @@ static void cris_ide_input_data (ide_dri
static void cris_ide_output_data (ide_drive_t *drive, void *, unsigned int);
static void cris_atapi_input_bytes(ide_drive_t *drive, void *, unsigned int);
static void cris_atapi_output_bytes(ide_drive_t *drive, void *, unsigned int);
-static int cris_dma_on (ide_drive_t *drive);
-static void cris_dma_off(ide_drive_t *drive)
+static void cris_dma_host_off(ide_drive_t *drive)
+{
+}
+
+static void cris_dma_host_on(ide_drive_t *drive)
{
}
@@ -798,9 +801,8 @@ init_e100_ide (void)
hwif->OUTBSYNC = &cris_ide_outbsync;
hwif->INB = &cris_ide_inb;
hwif->INW = &cris_ide_inw;
- hwif->dma_host_off = &cris_dma_off;
- hwif->dma_host_on = &cris_dma_on;
- hwif->dma_off_quietly = &cris_dma_off;
+ hwif->dma_host_off = &cris_dma_host_off;
+ hwif->dma_host_on = &cris_dma_host_on;
hwif->cbl = ATA_CBL_PATA40;
hwif->host_flags |= IDE_HFLAG_NO_ATAPI_DMA;
hwif->pio_mask = ATA_PIO4,
@@ -822,12 +824,6 @@ init_e100_ide (void)
cris_ide_set_speed(TYPE_UDMA, ATA_UDMA2_CYC, ATA_UDMA2_DVS, 0);
}
-static int cris_dma_on (ide_drive_t *drive)
-{
- return 0;
-}
-
-
static cris_dma_descr_type mydescr __attribute__ ((__aligned__(16)));
/*
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 10/13] ide-cris: fix DMA methods
2007-11-12 23:02 [PATCH 10/13] ide-cris: fix DMA methods Bartlomiej Zolnierkiewicz
@ 2007-11-14 16:41 ` Sergei Shtylyov
2007-11-15 20:51 ` Bartlomiej Zolnierkiewicz
2007-12-07 16:52 ` Sergei Shtylyov
1 sibling, 1 reply; 4+ messages in thread
From: Sergei Shtylyov @ 2007-11-14 16:41 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz; +Cc: linux-ide, Mikael Starvik
Bartlomiej Zolnierkiewicz wrote:
> * Rename cris_dma_{on,off}() to cris_dma_host_{on,off}().
Haven't you killed dma_on/dma_off_quietly() methods in the previosu patch?
> * Remove no longer needed ->dma_off_quietly
> (IDE core has the needed code now).
> * Make cris_dma_host_on() void.
> Cc: Mikael Starvik <starvik@axis.com>
> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
MBR, Sergei
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 10/13] ide-cris: fix DMA methods
2007-11-14 16:41 ` Sergei Shtylyov
@ 2007-11-15 20:51 ` Bartlomiej Zolnierkiewicz
0 siblings, 0 replies; 4+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2007-11-15 20:51 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: linux-ide, Mikael Starvik
On Wednesday 14 November 2007, Sergei Shtylyov wrote:
> Bartlomiej Zolnierkiewicz wrote:
>
> > * Rename cris_dma_{on,off}() to cris_dma_host_{on,off}().
>
> Haven't you killed dma_on/dma_off_quietly() methods in the previosu patch?
Yes, I did.
I left fixing ide-cris after "kill dma_on/dma_off_quietly() methods"
patch because:
* Currently this driver is broken: cris_dma_on() (returns 'int')
is assigned to hwif->dma_host_on (returns 'void') so the driver
won't build.
* ->ide_dma_on method was missing so the driver OOPS-es on attempt
to enable DMA.
* drive->using_dma was never set/cleared so DMA wouldn't be used anyway.
Unfortunately it seems that ide-cris stays broken even after this patch:
* V10: <asm/arch-v10/ide.h> needs fixing
- ide_init_default_hwifs() should be removed
(IDE core no longer uses it)
- same for ide_init_hwif_ports() and ide_default_{irq,io_base}()
(they shouldn't be needed for ide-cris host driver)
* V32: I'm unable to find a place which defines ETRAX_ARCH_V32
but I'm leaving fixing this to CRIS gurus. :)
[ I added the above explanation to the patch description. ]
> > * Remove no longer needed ->dma_off_quietly
> > (IDE core has the needed code now).
>
> > * Make cris_dma_host_on() void.
>
> > Cc: Mikael Starvik <starvik@axis.com>
> > Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 10/13] ide-cris: fix DMA methods
2007-11-12 23:02 [PATCH 10/13] ide-cris: fix DMA methods Bartlomiej Zolnierkiewicz
2007-11-14 16:41 ` Sergei Shtylyov
@ 2007-12-07 16:52 ` Sergei Shtylyov
1 sibling, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2007-12-07 16:52 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz; +Cc: linux-ide, Mikael Starvik
Bartlomiej Zolnierkiewicz wrote:
> * Rename cris_dma_{on,off}() to cris_dma_host_{on,off}().
> * Remove no longer needed ->dma_off_quietly
> (IDE core has the needed code now).
> * Make cris_dma_host_on() void.
> Cc: Mikael Starvik <starvik@axis.com>
> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
MBR, Sergei
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-12-07 16:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-12 23:02 [PATCH 10/13] ide-cris: fix DMA methods Bartlomiej Zolnierkiewicz
2007-11-14 16:41 ` Sergei Shtylyov
2007-11-15 20:51 ` Bartlomiej Zolnierkiewicz
2007-12-07 16:52 ` Sergei Shtylyov
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).