[PATCH 1/2] of: address: Expand nonposted-mmio to non-Apple Silicon platforms

Konrad Dybcio posted 2 patches 9 months ago
[PATCH 1/2] of: address: Expand nonposted-mmio to non-Apple Silicon platforms
Posted by Konrad Dybcio 9 months ago
From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

The nE memory attribute may be utilized by various implementations,
not limited to Apple Silicon platforms.

Drop the early CONFIG_ARCH_APPLE check.

Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
---
 drivers/of/address.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/of/address.c b/drivers/of/address.c
index d177a2b9edaf8de28b1b132156e9a951763c4e79..2041ea112ded70e11d3831b403901c36c8c29a93 100644
--- a/drivers/of/address.c
+++ b/drivers/of/address.c
@@ -1031,15 +1031,9 @@ EXPORT_SYMBOL_GPL(of_dma_is_coherent);
  *
  * Returns true if the "nonposted-mmio" property was found for
  * the device's bus.
- *
- * This is currently only enabled on builds that support Apple ARM devices, as
- * an optimization.
  */
 static bool of_mmio_is_nonposted(const struct device_node *np)
 {
-	if (!IS_ENABLED(CONFIG_ARCH_APPLE))
-		return false;
-
 	struct device_node *parent __free(device_node) = of_get_parent(np);
 	if (!parent)
 		return false;

-- 
2.48.1
Re: [PATCH 1/2] of: address: Expand nonposted-mmio to non-Apple Silicon platforms
Posted by Rob Herring (Arm) 9 months ago
On Wed, 19 Mar 2025 15:25:57 +0100, Konrad Dybcio wrote:
> From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
> 
> The nE memory attribute may be utilized by various implementations,
> not limited to Apple Silicon platforms.
> 
> Drop the early CONFIG_ARCH_APPLE check.
> 
> Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
> ---
>  drivers/of/address.c | 6 ------
>  1 file changed, 6 deletions(-)
> 

Applied, thanks!