Kishon Vijay Abraham I
b330104fa7
PCI: endpoint: Use EPC's device in dma_alloc_coherent()/dma_free_coherent()
...
After commit 7232888366 ("of: restrict DMA configuration"),
of_dma_configure() doesn't configure the coherent_dma_mask/dma_mask
of endpoint function device (since it doesn't have a DT node associated
with and hence no dma-ranges property), resulting in
dma_alloc_coherent() (used in pci_epf_alloc_space()) to fail.
Fix it by making dma_alloc_coherent() use EPC's device for allocating
memory address.
Link: http://lkml.kernel.org/r/64d63468-d28f-8fcd-a6f3-cf2a6401c8cb@ti.com
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com >
[lorenzo.pieralisi@arm.com: tweaked commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Tested-by: Cyrille Pitchen <cyrille.pitchen@free-electrons.com>
Tested-by: Niklas Cassel <niklas.cassel@axis.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
2018-01-11 10:06:34 +00:00
..
2017-11-02 11:10:55 +01:00
2017-12-11 14:32:56 +01:00
2017-11-14 16:54:12 -08:00
2017-11-28 16:54:45 +01:00
2017-12-04 13:57:03 -08:00
2017-11-29 13:10:25 -08:00
2017-11-27 12:36:45 -08:00
2017-12-11 14:32:56 +01:00
2017-11-15 11:56:19 -08:00
2017-12-01 08:05:45 -05:00
2017-11-04 09:26:51 +09:00
2017-12-04 17:15:20 +00:00
2017-11-14 15:32:19 -08:00
2017-12-11 17:01:59 -08:00
2017-11-17 20:04:24 -08:00
2017-11-23 16:29:05 +01:00
2017-10-22 02:22:39 +01:00
2017-11-22 00:00:14 +01:00
2017-11-16 12:47:46 -08:00
2017-11-16 12:47:46 -08:00
2017-11-29 18:40:42 -08:00
2017-11-13 01:41:39 +01:00
2017-11-02 11:10:55 +01:00
2017-12-15 09:53:04 +05:30
2017-11-17 14:58:01 -08:00
2017-11-15 13:46:33 -08:00
2017-11-02 11:10:55 +01:00
2017-11-13 21:14:07 -08:00
2017-11-13 17:56:58 -08:00
2017-12-10 08:26:59 -08:00
2017-11-02 11:10:55 +01:00
2017-11-16 09:10:59 -08:00
2017-10-04 10:32:42 +02:00
2017-12-02 22:41:43 +01:00
2017-12-14 16:35:20 -08:00
2017-11-21 15:57:07 -08:00
2017-11-15 13:35:43 -08:00
2017-11-28 16:56:26 +01:00
2017-11-30 13:12:44 -08:00
2017-11-17 20:16:20 -08:00
2017-12-04 07:14:30 -05:00
2017-12-12 23:27:04 +01:00
2017-11-19 08:04:41 -10:00
2017-11-13 01:34:14 +01:00
2017-12-02 11:15:14 +00:00
2017-12-16 13:43:08 -08:00
2017-11-21 16:35:54 -08:00
2017-12-06 10:53:02 -08:00
2017-11-26 14:39:20 -08:00
2017-11-21 15:57:09 -08:00
2017-11-14 18:09:31 -08:00
2017-11-21 15:46:44 -08:00
2017-11-13 17:56:58 -08:00
2017-11-15 13:39:18 -08:00
2017-11-02 11:10:55 +01:00
2017-12-15 12:53:37 -08:00
2017-12-08 13:18:47 -08:00
2017-11-16 16:05:01 -08:00
2017-11-21 15:57:07 -08:00
2017-11-15 13:46:33 -08:00
2017-11-21 15:57:07 -08:00
2017-12-17 13:54:31 -08:00
2017-12-11 13:43:27 +01:00
2017-11-27 13:05:09 -08:00
2017-12-15 15:46:19 -05:00
2017-11-21 15:57:09 -08:00
2017-11-21 15:57:07 -08:00
2017-11-13 12:10:24 -08:00
2017-11-17 09:51:57 -08:00
2017-11-28 08:49:26 -08:00
2017-11-16 09:10:59 -08:00
2017-12-13 15:01:47 -05:00
2017-10-14 00:54:41 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-16 09:10:59 -08:00
2018-01-11 10:06:34 +00:00
2017-11-17 16:10:04 -08:00
2017-11-15 10:56:56 -08:00
2017-11-13 21:14:07 -08:00
2017-11-30 16:50:43 +01:00
2017-12-11 17:26:03 -08:00
2017-11-02 11:10:55 +01:00
2017-11-15 13:37:15 -08:00
2017-11-21 15:57:07 -08:00
2017-11-16 13:06:27 -08:00
2017-11-22 21:09:18 -10:00
2017-11-17 16:56:17 -08:00
2017-11-13 17:56:58 -08:00
2017-11-16 09:15:57 -08:00
2017-11-17 20:14:10 -08:00
2017-11-16 16:05:01 -08:00
2017-11-17 20:12:08 -08:00
2017-11-25 08:37:16 -10:00
2017-12-15 11:29:43 -05:00
2017-11-17 20:21:44 -08:00
2017-12-15 12:51:42 -08:00
2017-11-14 16:54:12 -08:00
2017-11-30 15:29:44 -08:00
2017-11-10 21:33:51 +00:00
2017-11-02 11:10:55 +01:00
2017-12-15 12:59:48 -08:00
2017-11-25 08:37:16 -10:00
2017-11-29 10:24:57 +01:00
2017-11-17 14:31:27 -08:00
2017-11-16 09:10:59 -08:00
2017-11-28 16:00:50 +01:00
2017-11-02 11:10:55 +01:00
2017-12-13 12:28:43 +01:00
2017-11-21 15:57:07 -08:00
2017-11-14 16:47:47 -08:00
2017-12-02 21:31:03 -05:00
2017-11-20 21:50:24 -10:00
2017-09-22 23:14:18 -04:00
2017-12-14 21:01:40 +02:00
2017-11-16 09:10:59 -08:00
2017-11-16 09:10:59 -08:00
2017-11-21 15:57:07 -08:00
2017-12-15 11:32:09 -08:00
2017-11-02 11:10:55 +01:00
2017-11-13 01:40:52 +01:00
2017-11-28 15:17:49 +01:00