]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
of: address: Expand nonposted-mmio to non-Apple Silicon platforms
authorKonrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Wed, 19 Mar 2025 14:25:57 +0000 (15:25 +0100)
committerRob Herring (Arm) <robh@kernel.org>
Fri, 21 Mar 2025 16:27:56 +0000 (11:27 -0500)
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>
Link: https://lore.kernel.org/r/20250319-topic-nonposted_mmio-v1-1-dfb886fbd15f@oss.qualcomm.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/address.c

index 125833e5ce52ec57af1b804437bd41146393bb4f..0ed35a4f92053bcd985da11d9fa6b4f8c6a39d29 100644 (file)
@@ -1028,15 +1028,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;