Heiko Stuebner
12b827758f
of: also handle dma-noncoherent in of_dma_is_coherent()
...
of_dma_is_coherent() currently expects the architecture to be
non-coherent and some devices being coherent getting marked
as such with the dma-coherent devicetree property.
For PowerPC CONFIG_OF_DMA_DEFAULT_COHERENT was added which currently
makes of_dma_is_coherent() always return true but doesn't handle
the case of the architecture being coherent but some devices not.
So modify the function to also check for dma-noncoherent and
set a suitable default return value. If CONFIG_OF_DMA_DEFAULT_COHERENT
is set the value starts with true and finding dma-noncoherent will
set it to false and without CONFIG_OF_DMA_DEFAULT_COHERENT, the
behaviour is reversed.
Reviewed-by: Christoph Hellwig <hch@lst.de >
Reviewed-by: Rob Herring <robh@kernel.org >
Reviewed-by: Guo Ren <guoren@kernel.org >
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
Link: https://lore.kernel.org/r/20220706231536.2041855-2-heiko@sntech.de
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com >
2022-07-28 15:30:20 -07:00
..
2022-05-20 21:07:05 +02:00
2022-05-30 11:37:26 -07:00
2022-06-03 11:48:47 -07:00
2022-06-05 17:14:03 -07:00
2022-06-02 15:23:54 -07:00
2022-04-27 12:22:56 +01:00
2022-06-03 15:46:03 -07:00
2022-05-09 14:41:43 +03:00
2022-06-04 13:42:53 -07:00
2022-05-13 13:19:01 +02:00
2022-06-03 11:48:47 -07:00
2022-05-15 18:31:28 -06:00
2022-06-03 11:36:34 -07:00
2022-06-03 11:48:47 -07:00
2022-06-05 10:47:06 -07:00
2022-05-19 18:54:45 +02:00
2022-06-02 15:23:54 -07:00
2022-05-23 19:18:51 +02:00
2022-05-31 12:45:09 -04:00
2022-05-20 12:30:53 -07:00
2022-05-16 13:37:59 -07:00
2022-05-19 19:32:19 +02:00
2022-05-19 18:56:51 +02:00
2022-05-29 11:38:27 -07:00
2022-05-25 16:18:27 -07:00
2022-05-23 19:32:59 -07:00
2022-05-13 17:03:41 +09:00
2022-05-23 07:48:27 +02:00
2022-06-03 13:39:30 -07:00
2022-05-10 16:05:38 +08:00
2022-06-05 09:12:28 -07:00
2022-06-04 14:04:27 -07:00
2022-06-03 11:17:49 -07:00
2022-05-20 15:54:41 +02:00
2022-06-03 11:48:47 -07:00
2022-05-22 12:25:55 -07:00
2022-05-09 16:03:24 +01:00
2022-06-02 08:40:56 -07:00
2022-05-17 22:34:42 +02:00
2022-04-28 14:50:09 +02:00
2022-06-04 14:04:27 -07:00
2022-05-26 21:08:40 -07:00
2022-06-04 13:42:53 -07:00
2022-06-03 11:36:34 -07:00
2022-05-31 09:56:54 -07:00
2022-06-03 06:52:57 -07:00
2022-06-02 15:23:54 -07:00
2022-05-22 15:58:30 +10:00
2022-05-24 08:08:24 -05:00
2022-06-03 10:25:56 -07:00
2022-06-03 11:17:49 -07:00
2022-05-30 11:37:26 -07:00
2022-04-25 23:26:32 -04:00
2022-06-02 15:23:54 -07:00
2022-06-03 11:36:34 -07:00
2022-06-02 15:23:54 -07:00
2022-06-03 14:42:24 -07:00
2022-06-04 14:04:27 -07:00
2022-05-19 17:54:02 -07:00
2022-05-27 21:24:19 -07:00
2022-06-05 09:25:12 -07:00
2022-05-09 15:46:29 +02:00
2022-07-28 15:30:20 -07:00
2022-05-25 15:02:26 +02:00
2022-06-03 11:48:47 -07:00
2022-06-02 15:23:54 -07:00
2022-05-23 21:06:11 -07:00
2022-05-19 16:56:17 +02:00
2022-05-28 11:15:54 -07:00
2022-05-30 11:01:50 -07:00
2022-06-03 11:36:34 -07:00
2022-05-23 19:18:51 +02:00
2022-05-25 21:51:32 -07:00
2022-05-20 16:40:01 +02:00
2022-04-29 14:38:03 -07:00
2022-05-25 14:38:29 +02:00
2022-05-09 09:29:25 -06:00
2022-05-09 23:09:10 +02:00
2022-06-03 11:48:47 -07:00
2022-06-02 15:23:54 -07:00
2022-06-03 11:48:47 -07:00
2022-06-05 09:25:12 -07:00
2022-06-03 11:48:47 -07:00
2022-06-03 11:36:34 -07:00
2022-05-09 12:03:14 +05:30
2022-06-03 11:48:47 -07:00
2022-05-11 08:29:11 +03:00
2022-06-03 11:36:34 -07:00
2022-05-28 06:15:27 -06:00
2022-05-30 14:44:27 +02:00
2022-05-30 11:34:13 -07:00
2022-06-03 11:17:49 -07:00
2022-06-04 13:42:53 -07:00
2022-06-05 09:25:12 -07:00
2022-05-09 15:42:57 +02:00
2022-06-03 11:36:34 -07:00
2022-06-03 11:48:47 -07:00
2022-06-01 13:49:15 -07:00
2022-05-31 12:45:10 -04:00
2022-06-04 13:50:23 -07:00
2022-06-03 11:36:34 -07:00
2022-05-31 12:45:10 -04:00
2022-04-24 17:30:22 +02:00
2022-06-02 15:27:44 -07:00
2022-06-04 13:42:53 -07:00
2022-06-05 09:25:12 -07:00
2022-06-05 09:25:12 -07:00