From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796480355; b=VyOhn6g7UQn4d81aVsPRxDDj4ug0lbmJwUE1G7Dz3eNNINbykbcoI++jArCiecyxhPy7 qXwSfRIbmr9jIBTfLJWwep5wfGADB2lTLOy7abTsH1JxVbn3L6Nyms3g8Vh1ApaRexhg7 k5fORfpbwqpC3vTZocmtXNwWzOpE0LkUipHQZuYUlf9j3ySyH7M/hz6dnsHLYwfCFvVdp BVlOTfrfNidGqWnhU6VwrKl/Flcbray2sL33GM3I1ne61oCdUA916G+eiLkj7R1fxO82o kcXcplnjgGt3mV5zpPhEKLKjfREkKn55Qu2hdaVKb2OFRqQ4990I4MUu+8EkbXZj7lA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796480355; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=YQUETUQQjvoEBMajV1R/YqVFn0kxiWO8Uqj7gPuZ2yI=; b=jm7Y8TtD905mTRn7eQxlzAJ7IMu6G7/+k+M+t+laet2pe5mT7Qcn2WyDFNwefyANrgiA snApIQzOsE3BbWk+3XhiLhhS1hSDl1l8AJAhVW99x91uXONRoc+TL7Rl12RXj9I++HvcZ TFoC+3SRs80MyoTb620OVuvrFnhV6gkmMcp4/EoIkv2SPh2G9FuiDBk9zbzbXGbFzLMnZ ZifqPI+mykSRRcFEgWsPbqDaCgUh+Ihg7Q+8zCyFBoZjIIv+slPRGrHQ0JTYhkzvegb8O jaJi7xAhLJHPx9Wni8ynLliSd0PoWR28+2D9tl5MRikwuyxpga5CJRuxYGzJxlGCPJg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="V/OpAuq+"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A395606A322 for ; Sat, 5 Dec 2026 14:19:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=V/OpAuq+ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55C7A1F00936; Sat, 5 Dec 2026 14:19:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796480355; bh=YQUETUQQjvoEBMajV1R/YqVFn0kxiWO8Uqj7gPuZ2yI=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=V/OpAuq+CZ+HkUhJCiKsT0zcUosI1+0XxEHZUmUFZassL1ez25DqIADMLCY7+IMPI 2aJ5DjPH9rZMivxbkIswhJiYJ1gAmp10L9OCNIfAymaE/uhc5GybpnbYyu8/34sFad 2gl31SC8BF8htlC+Fgq54HSY1hQENGEnwfrENs8nnRfG/tEmvHFDTmxUtg6IyHKNVK H8p+NmNslLeyq6rwvHgVaYr9bzNQiZnaxygMFDTvsZPpXnz1DHlP9bKulEnBOT7HBb KtddSwM2xo498PmwWXTXYWNdIAv0dEjVLiul5MmvL5gxmpyg4oUGTACGNZM3c27UVx ZAXDMhSMf0PPA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] pinctrl: qcom: lpass-lpi: Don't touch reserved pins Reply-To: sashiko-reviews@lists.linux.dev To: "Andrey Derkach" Cc: linux-gpio@vger.kernel.org In-Reply-To: <20261205140200.1120850-1-gabin278@gmail.com> References: <20261205140200.1120850-1-gabin278@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 14:19:14 +0000 X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] pinctrl: qcom: lpass-lpi: missing Fixes trailer on bug-fix commit -- commit c0ed20312d35bb1df93f12cd27f62883c1dcc84d Author: Andrey Derkach > pinctrl: qcom: lpass-lpi: Don't touch reserved pins > > Since commit a22d2598a563 ("dt-bindings: qcom: lpass-lpi-common: add > reserved GPIOs property") an LPI pin controller can have > gpio-reserved-ranges. On SDM670 phones such as the Pixel 3a these are > the sensor pins, which the firmware protects: reading their registers > hangs the bus and freezes the SoC. gpiolib leaves reserved lines alone, > but the LPI driver still reads them from the GPIO debugfs dump and from > the pinconf-groups debugfs file, and pinmux does not refuse to mux > them. > > Do what pinctrl-msm does since commit 691bf5d5a7bf ("pinctrl: qcom: > Don't allow protected pins to be requested") and > commit 27030ff78772 ("pinctrl: qcom: fail to retrieve configuration > from invalid pin groups"): refuse pinmux requests for reserved pins, > fail pinconf reads of them and leave them out of the GPIO debugfs dump. > > Unlike pinctrl-msm, keep the reserved pins in a bitmap of the driver's > own, filled from gpio-reserved-ranges before the pin controller is > registered. The pin controller is registered before the GPIO chip is > added and unregistered after it is removed. Before the GPIO chip is > added, gpiochip_line_is_valid() treats every pin as valid, and after it > is removed it uses the freed GPIO device. > > Tested on the Xiaomi Mi 9 SE (SDM712), which reserves <0 18>, <26 6>: > without this change reading /sys/kernel/debug/gpio freezes the SoC; > with it the dump lists only GPIOs 18-25, and pinconf-groups shows the > reserved groups without configs. > > Signed-off-by: Andrey Derkach [Severity: Low] This fixes a bus hang when accessing firmware-protected LPASS LPI pins. Should this include a Fixes tag for the commit that introduced the driver? Fixes: 6e261d1090d6 ("pinctrl: qcom: Add sm8250 lpass lpi pinctrl driver") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205140200.1120= 850-1-gabin278@gmail.com?part=3D1