diff options
| author | Frank Li <Frank.Li@nxp.com> | 2026-03-10 15:07:38 -0400 |
|---|---|---|
| committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2026-03-11 16:34:22 +0100 |
| commit | f7bd1948a5461df9e1027d5bd9a511e754146689 (patch) | |
| tree | 3ee061ace4fb3655a98fc9ff0f517ad82a49a108 /include/linux/timerqueue_types.h | |
| parent | 3a6e21ea57c8118d3095f073aeaf9362dc2c3865 (diff) | |
mtd: rawnand: mxc: set chip->of_node to nand@0 child node if present
The nand-controller.yaml binding requires a child node (e.g. nand@0) under
the NAND controller. However, the driver currently assigns the controller's
of_node directly to the NAND chip.
Search for the first child node with the "nand" prefix and assign it to
chip->of_node. This filters out properties such as "partition" that may be
placed under the controller node in some older DTS files.
Fall back to using the controller's of_node if no suitable child node is
found to maintain backward compatibility.
This issue went unnoticed because the default behavior works for most NAND
chips.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'include/linux/timerqueue_types.h')
0 files changed, 0 insertions, 0 deletions
