]> git.baikalelectronics.ru Git - kernel.git/commit
s390/dma: Allow per device dma ops
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 3 Feb 2016 05:46:34 +0000 (21:46 -0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 2 Mar 2016 15:01:56 +0000 (17:01 +0200)
commit6585ce7fe2392bed4ea36b01e072505686537043
tree58a5bb902a9ee27cf0a4242ba3fcdf86fa60a315
parentd351497a0699d4857af7865d73eb7049aa43be62
s390/dma: Allow per device dma ops

As virtio-ccw will have dma ops, we can no longer default to the
zPCI ones. Make use of dev_archdata to keep the dma_ops per device.
The pci devices now use that to override the default, and the
default is changed to use the noop ops for everything that does not
specify a device specific one.
To compile without PCI support we will enable HAS_DMA all the time,
via the default config in lib/Kconfig.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Joerg Roedel <jroedel@suse.de>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
arch/s390/Kconfig
arch/s390/include/asm/device.h
arch/s390/include/asm/dma-mapping.h
arch/s390/pci/pci.c
arch/s390/pci/pci_dma.c