Files
twx-linux/include/linux
Zijun Hu 791de7357b of: property: Increase NR_FWNODE_REFERENCE_ARGS
[ Upstream commit eb50844d72 ]

Currently, the following two macros have different values:

// The maximal argument count for firmware node reference
 #define NR_FWNODE_REFERENCE_ARGS	8
// The maximal argument count for DT node reference
 #define MAX_PHANDLE_ARGS 16

It may cause firmware node reference's argument count out of range if
directly assign DT node reference's argument count to firmware's.

drivers/of/property.c:of_fwnode_get_reference_args() is doing the direct
assignment, so may cause firmware's argument count @args->nargs got out
of range, namely, in [9, 16].

Fix by increasing NR_FWNODE_REFERENCE_ARGS to 16 to meet DT requirement.
Will align both macros later to avoid such inconsistency.

Fixes: 3e3119d308 ("device property: Introduce fwnode_property_get_reference_args")
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Link: https://lore.kernel.org/r/20250225-fix_arg_count-v4-1-13cdc519eb31@quicinc.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-04-10 14:31:59 +02:00
..
2023-07-23 13:46:54 +02:00
2024-01-25 14:52:51 -08:00
2022-08-17 14:23:11 +02:00
2022-10-26 12:35:12 +02:00
2024-07-05 09:14:50 +02:00
2023-12-20 15:17:37 +01:00
2023-03-30 12:47:50 +02:00
2024-12-14 19:51:34 +01:00
2024-04-10 16:19:07 +02:00
2022-08-17 14:24:08 +02:00
2024-04-10 16:18:55 +02:00
2022-07-12 16:35:08 +02:00
2024-04-10 16:19:00 +02:00
2023-08-26 14:23:39 +02:00
2024-01-25 14:52:33 -08:00
2022-07-02 16:41:17 +02:00
2025-03-13 12:50:47 +01:00
2024-06-16 13:39:27 +02:00
2025-04-10 14:31:55 +02:00
2023-11-28 16:56:21 +00:00
2023-10-19 23:05:33 +02:00
2023-10-19 23:05:33 +02:00
2025-02-01 18:23:59 +01:00
2022-07-12 16:35:08 +02:00
2025-04-10 14:31:49 +02:00
2023-12-13 18:36:35 +01:00
2022-07-29 17:25:32 +02:00
2024-10-17 15:11:06 +02:00