You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
ide: use PIO/MMIO operations directly where possible (v2)
This results in smaller/faster/simpler code and allows future optimizations.
Also remove no longer needed ide[_mm]_{inl,outl}() and ide_hwif_t.{INL,OUTL}.
v2:
* updated for scc_pata
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
@@ -565,7 +565,10 @@ int ide_dma_setup(ide_drive_t *drive)
|
||||
}
|
||||
|
||||
/* PRD table */
|
||||
hwif->OUTL(hwif->dmatable_dma, hwif->dma_prdtable);
|
||||
if (hwif->mmio == 2)
|
||||
writel(hwif->dmatable_dma, (void __iomem *)hwif->dma_prdtable);
|
||||
else
|
||||
outl(hwif->dmatable_dma, hwif->dma_prdtable);
|
||||
|
||||
/* specify r/w */
|
||||
hwif->OUTB(reading, hwif->dma_command);
|
||||
|
||||
Reference in New Issue
Block a user