Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

of: address: Expand nonposted-mmio to non-Apple Silicon platforms

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>

authored by

Konrad Dybcio and committed by
Rob Herring (Arm)
7f623466 18d00558

-6
-6
drivers/of/address.c
··· 1028 1028 * 1029 1029 * Returns true if the "nonposted-mmio" property was found for 1030 1030 * the device's bus. 1031 - * 1032 - * This is currently only enabled on builds that support Apple ARM devices, as 1033 - * an optimization. 1034 1031 */ 1035 1032 static bool of_mmio_is_nonposted(const struct device_node *np) 1036 1033 { 1037 - if (!IS_ENABLED(CONFIG_ARCH_APPLE)) 1038 - return false; 1039 - 1040 1034 struct device_node *parent __free(device_node) = of_get_parent(np); 1041 1035 if (!parent) 1042 1036 return false;