From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.11.138.130 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796127238; b=nnfGcY6nZuR7ysurLGdnNhzqa6b+f4r/y9OXMZ++eu3MsiZBHoDownABfmBLcZ3firtP goKzupLOhcsGqJ9x3yyhxoUWGtuSOzD+esjtNYbUHBlheG+7pStYtJywmrEBMOAfPqzpi U4iD/ZlFelxDWUf+dLIKcYVaaRSd39nVBfhRuH6NM7RwM5f93LzpCoEcYdUauDnuGpILp g/DlxIvP8Vcg5ZGg/bgDDlw9O9Vxl+TtsOyxVB5gxjIuNZdnAljlFj9+9k4D04t7A/Qqf n9o+b1ddwMtG6T146N6/YGSysOSBqofIGArhmeQc9xeaskT//QdT8SVglIWsVLUbXSA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796127238; h=DMARC-Filter:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding: Content-Type; bh=61UpztRgpoe/BGZz3x+2WtMBhKApkMaNQdAx4keqekw=; b=zFTD1K1p2mlm6l8ezmlqZ8vsYjzVv+ai6pIJm8hqLdTWu/d/sQFdb4M/B+WjB5lL9hQD aOlZze3Ko69vemPu8jMo8qJcXsZgBsQdNbBZ2Il4aj9zhJmMkt7D4YD8c7fu/O2kR48lu hvhMKFc4uHKt8GXz14B2jS/i3ep+aiva43kUby+pmmoSzh+WZi17xIzWd0zLFN291Mkht TKWDGM6EpV/0fBV3yrqvY+0MqXrS3+4/xugoFC2MUriqnR5+DvYAc7ePV0kabsZY/ipXP hfg1vGuGh1ylJ+TApTg+ErA56iF8ANsr7j/uSLI+Ogo5aU8qz5EG5gn/aJ/aXeUwROA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; dkim=pass header.d=sntech.de header.i=@sntech.de header.a=rsa-sha256 header.s=gloria202408 header.b=p0rZ0X1F; arc=none smtp.remote-ip=185.11.138.130 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD80B606A31A; Tue, 1 Dec 2026 12:13:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BD80B606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=sntech.de header.i=@sntech.de header.a=rsa-sha256 header.s=gloria202408 header.b=p0rZ0X1F DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sntech.de; s=gloria202408; h=Content-Type:Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Reply-To; bh=61UpztRgpoe/BGZz3x+2WtMBhKApkMaNQdAx4keqekw=; b=p0rZ0X1FTatp8Bz20xIw7+Wk4b v4jmVo5dRewPcLPmKbLT+ceWZW6nGVaD3ggklsOqo7+O8LWBvZvbZ/6f5Eh1Srd4ejllXKrFolrb9 tWdO8h8J5CCb+gF2J4xMxw23BYDe/m5vz0cQw7QoII7nkpXvWnVpboMDQ2HRbepgVvKJmlQrlEtd6 Pa/g123pj3UApaiavA5fLNnZAWqdrk0GdazAjddht6c/iPdLQ+w/Q2BICdpYDfTuJqyQfBuSEYSIh Mpw8bBWL9v/ujdcTPzKUn4HAHWgvjWZPnsdUw17LmXrm9ISB5eflH1f15AQ+UJWHBd8RWPlgjl8sm SPwH4A4w==; From: Heiko =?UTF-8?B?U3TDvGJuZXI=?= To: Linus Walleij , Ye Zhang , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Anton Protopopov Cc: Anton Protopopov , Bjorn Helgaas Subject: Re: [PATCH] pinctrl: rockchip: Check the error of the pmu syscon lookup Date: Tue, 01 Dec 2026 13:13:46 +0100 Message-ID: In-Reply-To: <20261201113351.342509-1-a.s.protopopov@gmail.com> References: <20261201113351.342509-1-a.s.protopopov@gmail.com> X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Am Dienstag, 1. Dezember 2026, 12:33:49 Mitteleurop=C3=A4ische Normalzeit s= chrieb Anton Protopopov: > The syscon_regmap_lookup_by_phandle_optional() function returns NULL > only when the property is missing (-ENODEV). On other errors it > returns an error pointer. Before commit dbd2317d7b9f ("pinctrl: > rockchip: Add rk3506 pinctrl support") the probe returned the error > of the "rockchip,pmu" lookup. Now it stores the error pointer in > info->regmap_pmu. The pin configuration code then uses an error > pointer as a regmap, which leads to an oops. >=20 > The lookup may fail with a correct device tree too: it returns > -EPROBE_DEFER when the hwspinlock of the syscon or the driver which > registers its regmap is not probed yet. Return the error from the > probe, so that it is retried. >=20 > Fixes: dbd2317d7b9f ("pinctrl: rockchip: Add rk3506 pinctrl support") > Suggested-by: Bjorn Helgaas > Signed-off-by: Anton Protopopov Looked up the behaviour of syscon_regmap_lookup_by_phandle_optional(), so for the change itself: Reviewed-by: Heiko Stuebner (had a bit of fun, remembering that the 2nd syscon handling was removed by commit 9884c330dd80 ("pinctrl: rockchip: Fix RK3506 pinctrl support") ) Thanks Heiko