[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250624-k230-return-check-v1-0-6b4fc5ba0c41@whut.edu.cn>
Date: Tue, 24 Jun 2025 00:11:12 +0800
From: Ze Huang <huangze@...t.edu.cn>
To: Linus Walleij <linus.walleij@...aro.org>,
Ze Huang <18771902331@....com>
Cc: linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
Ze Huang <huangze@...t.edu.cn>, Yao Zi <ziyao@...root.org>
Subject: [PATCH 0/2] pinctrl: canaan: k230: Fix DT parsing and registration
order
This patch set fixes two issues in the Canaan K230 pinctrl driver:
1. Adds a NULL check for the "pinmux" property in the device tree parser to
prevent potential NULL pointer dereference, and fixes a typo in the
match table comment.
2. Moves the DT parsing step before pinctrl registration to ensure that
pin resources are fully initialized before being used.
Signed-off-by: Ze Huang <huangze@...t.edu.cn>
---
Ze Huang (2):
pinctrl: canaan: k230: add NULL check in DT parse
pinctrl: canaan: k230: Fix order of DT parse and pinctrl register
drivers/pinctrl/pinctrl-k230.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
---
base-commit: d9946fe286439c2aeaa7953b8c316efe5b83d515
change-id: 20250620-k230-return-check-d2ca51963064
Best regards,
--
Ze Huang <huangze@...t.edu.cn>
Powered by blists - more mailing lists