summaryrefslogtreecommitdiff
path: root/tools/lib/python/__init__.py
diff options
context:
space:
mode:
authorJudith Mendez <jm@ti.com>2026-05-13 18:11:53 -0500
committerLinus Walleij <linusw@kernel.org>2026-05-25 09:50:48 +0200
commit8473c3a197b57ff01396f7a2ec6ddf65383820d4 (patch)
treeec6e1f5d9d059468ba600aecd449f9015453607e /tools/lib/python/__init__.py
parente7ae89a0c97ce2b68b0983cd01eda67cf373517d (diff)
downloadlwn-8473c3a197b57ff01396f7a2ec6ddf65383820d4.tar.gz
lwn-8473c3a197b57ff01396f7a2ec6ddf65383820d4.zip
pinctrl: mcp23s08: Initialize mcp->dev and mcp->addr before regmap init
Regmap initialization triggers regcache_maple_populate() which attempts SPI read to populate cache. SPI read requires mcp->dev and mcp->addr to be set, without them, NULL pointer dereference occurs during probe. Move initialization before mcp23s08_spi_regmap_init() call. Cc: stable@vger.kernel.org Fixes: f9f4fda15e72 ("pinctrl: mcp23s08: init reg_defaults from HW at probe and switch cache type") Signed-off-by: Judith Mendez <jm@ti.com> Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'tools/lib/python/__init__.py')
0 files changed, 0 insertions, 0 deletions