Stefano Stabellini e058632670 xen/arm,arm64: fix xen_dma_ops after 815dd18 "Consolidate get_dma_ops..."
The following commit:

  commit 815dd18788fe0d41899f51b91d0560279cf16b0d
  Author: Bart Van Assche <bart.vanassche@sandisk.com>
  Date:   Fri Jan 20 13:04:04 2017 -0800

      treewide: Consolidate get_dma_ops() implementations

rearranges get_dma_ops in a way that xen_dma_ops are not returned when
running on Xen anymore, dev->dma_ops is returned instead (see
arch/arm/include/asm/dma-mapping.h:get_arch_dma_ops and
include/linux/dma-mapping.h:get_dma_ops).

Fix the problem by storing dev->dma_ops in dev_archdata, and setting
dev->dma_ops to xen_dma_ops. This way, xen_dma_ops is returned naturally
by get_dma_ops. The Xen code can retrieve the original dev->dma_ops from
dev_archdata when needed. It also allows us to remove __generic_dma_ops
from common headers.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Julien Grall <julien.grall@arm.com>
Suggested-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: <stable@vger.kernel.org>        [4.11+]
CC: linux@armlinux.org.uk
CC: catalin.marinas@arm.com
CC: will.deacon@arm.com
CC: boris.ostrovsky@oracle.com
CC: jgross@suse.com
CC: Julien Grall <julien.grall@arm.com>
2017-05-02 11:14:42 +02:00
..
2016-12-22 14:34:24 +01:00
2017-02-22 10:46:44 -08:00
2014-04-18 11:40:33 +02:00
2017-03-30 09:37:20 +02:00
2015-10-28 19:09:17 +00:00
2012-09-17 13:42:21 +01:00
2017-04-07 11:22:08 +01:00
2016-09-09 11:41:13 +01:00
2016-11-07 18:15:21 +00:00
2014-11-05 09:03:25 +01:00
2017-04-07 11:22:08 +01:00
2017-03-28 18:23:23 -04:00
2012-09-17 13:42:04 +01:00
2016-03-04 18:19:17 +00:00
2016-06-27 16:31:25 +01:00
2017-02-06 19:00:23 +00:00
2012-09-17 13:41:56 +01:00
2017-02-22 10:46:44 -08:00
2016-11-16 18:05:10 +00:00
2016-12-13 16:39:21 -08:00
2015-05-19 15:27:42 +01:00
2014-11-28 10:24:59 +00:00
2016-10-03 08:58:35 -07:00
2015-10-12 17:46:36 +01:00
2014-07-10 11:06:00 +01:00
2016-08-25 18:00:29 +01:00
2017-03-28 18:23:24 -04:00
2017-03-21 18:10:40 +00:00
2016-11-07 18:15:21 +00:00
2012-09-17 13:42:09 +01:00