Files
kernel_xiaomi_sm8250/include/linux
Bartlomiej Zolnierkiewicz 2bbd57cad3 ide: switch to DMA-mapping API part #2
Follow-up to commit 5c05ff68b9
("ide: switch to DMA-mapping API"):

* pci_{alloc,free}_consistent() -> dma_{alloc,free}_coherent()
  in ide_{allocate,release}_dma_engine().

* Add ->prd_max_nents and ->prd_ent_size fields to ide_hwif_t
  (+ set default values in ide_allocate_dma_engine()).

* Make ide_{allocate,release}_dma_engine() available also
  for CONFIG_BLK_DEV_IDEDMA_SFF=n.  Then convert au1xxx-ide.c,
  scc_pata.c and sgiioc4.c to use them.

* Add missing ->init_dma method to scc_pata.

This patch also fixes:
- ->dmatable_cpu leak for au1xxx-ide
- too early realease of ->dmatable_cpu for scc_pata
- wrong amount of ->dmatable_cpu memory being freed for sgiioc4

While at it:
- remove superfluous ->dma_base check from ide_unregister()
- return -ENOMEM on error in ide_release_dma_engine()
- beautify error message in ide_release_dma_engine()

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2008-10-13 21:39:47 +02:00
..
2008-09-12 16:30:20 -07:00
2008-10-09 08:56:22 +02:00
2008-10-10 13:37:12 +01:00
2008-10-12 12:05:55 +02:00
2008-10-08 19:44:18 -04:00
2008-09-22 07:29:31 +01:00
2008-10-13 21:39:47 +02:00
2008-10-09 11:59:55 -07:00
2008-09-22 21:28:11 -07:00
2008-10-07 15:34:37 -07:00
2008-10-12 11:44:37 -07:00
2008-10-13 09:47:43 +11:00
2008-10-09 08:56:06 +02:00
2008-10-01 07:03:24 -07:00
2008-10-08 16:38:41 -07:00
2008-09-16 19:35:05 -07:00
2008-10-02 15:53:13 -07:00
2008-09-22 19:51:15 -07:00
2008-10-12 12:37:32 +02:00
2008-10-07 14:22:33 -07:00
2008-09-09 17:41:42 +02:00
2008-10-07 14:43:06 -07:00
2008-10-13 09:51:40 -07:00
2008-09-05 14:39:38 -07:00