Re: [PATCH 10/15] ide: add ide_set_dma() helper

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sergei Shtylyov
Date: Saturday, January 20, 2007 - 1:22 pm

Hello again. :-)

Bartlomiej Zolnierkiewicz wrote:


    Here are a few comments related to the code being patched:


    Isn't it better to just return -1?


    Ugh, this code looks like it's asking to be converted into calling 
ide_use_dma(). instead all of that...


    Ugh. Why not ask drive? :-/


    That must be the famous VDMA thing... :-)
    I wonder if it *actually* works on HPT36x/37x which seem to have support 
for it...


    The 2nd argument of that funtion is useless -- it basically does nothing 
if 0 is passed. Another case of mindless copy-paste. :-)


    That part is obsoleted by my recent fix...


    Will try to fix the tuneproc() nuisance RSN. :-)


    I have no idea why that function is so huge in this driver, i.e. why all 
this code is not in svwks_tune_chipset()...


    Ugh. This driver claims the full MW/SW DMA support while actually only 
supports MWDMA2.


    This also asks to be converted into ide_use_dma() call. The patch is 
cooking...


    The same promise about tuneproc() in this driver... :-)

MBR, Sergei
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/15] IDE quilt tree updated, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:30 pm)
[PATCH 1/15] ACPI support for IDE devices, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:31 pm)
[PATCH 2/15] via82cxxx/pata_via: correct PCI_DEVICE_ID_VIA ..., Bartlomiej Zolnierki ..., (Thu Jan 18, 5:31 pm)
[PATCH 3/15] it8213: fix build and ->ultra_mask, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:31 pm)
[PATCH 4/15] ide: convert ide_hwif_t.mmio into flag, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:31 pm)
[PATCH 5/15] hpt34x: hpt34x_tune_chipset() (->speedproc) fix, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:31 pm)
[PATCH 6/15] atiixp/jmicron/triflex: fix PIO fallback, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:31 pm)
[PATCH 7/15] piix: cleanup, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:31 pm)
[PATCH 8/15] ide: disable DMA in ->ide_dma_check for "no I ..., Bartlomiej Zolnierki ..., (Thu Jan 18, 5:31 pm)
[PATCH 9/15] sgiioc4: fix sgiioc4_ide_dma_check() to enabl ..., Bartlomiej Zolnierki ..., (Thu Jan 18, 5:32 pm)
[PATCH 10/15] ide: add ide_set_dma() helper, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:32 pm)
[PATCH 11/15] ide: make ide_hwif_t.ide_dma_{host_off,off_q ..., Bartlomiej Zolnierki ..., (Thu Jan 18, 5:32 pm)
[PATCH 12/15] ide: make ide_hwif_t.ide_dma_host_on void, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:32 pm)
[PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:32 pm)
[PATCH 14/15] ide: rework the code for selecting the best ..., Bartlomiej Zolnierki ..., (Thu Jan 18, 5:32 pm)
[PATCH 15/15] ide: add ide_tune_dma() helper, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:32 pm)
Re: [PATCH 10/15] ide: add ide_set_dma() helper, Sergei Shtylyov, (Sat Jan 20, 1:22 pm)
Re: [PATCH 12/15] ide: make ide_hwif_t.ide_dma_host_on void, Sergei Shtylyov, (Sat Jan 20, 1:46 pm)
Re: [PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks, Sergei Shtylyov, (Mon Jan 22, 9:19 am)
Re: [PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks, Sergei Shtylyov, (Mon Jan 22, 11:17 am)
Re: [PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks, Sergei Shtylyov, (Mon Jan 22, 1:28 pm)
Re: [PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks, Jeff Garzik, (Mon Jan 22, 3:39 pm)
Re: [PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks, Sergei Shtylyov, (Tue Jan 23, 7:51 am)
Re: [PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks, Sergei Shtylyov, (Thu Jan 25, 8:40 am)
Re: [PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks, Sergei Shtylyov, (Wed Jan 31, 1:38 pm)
Re: [PATCH 12/15] ide: make ide_hwif_t.ide_dma_host_on void, Sergei Shtylyov, (Mon Mar 26, 10:19 am)
Re: [PATCH 12/15] ide: make ide_hwif_t.ide_dma_host_on void, Sergei Shtylyov, (Fri Apr 20, 1:36 pm)