From nobody Sun Nov 24 09:28:49 2024 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4491D1F130B; Wed, 6 Nov 2024 02:13:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730859182; cv=none; b=SAA62L10GIjU2PgZnsjCVcCiF1BS02ZkKqG5sMeLUe5GENHaJLRFqGIuwpAUfcYdx+jm6w092DEWarUzonEsc9DlVoQ8kiEHCqbefBYdFw0Bya3OL7vK70BfLRLB+C6xxUw0T1bSfHPNUhXsiAj51IRpTzYPg7R1E5ftHIYsqg8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730859182; c=relaxed/simple; bh=ytml5/ObCCYewVIwOZEXNVA26Qp+fx50Smd9Qbj7Y4A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eu2uWCwSDYGjMSocyXx5sFEFSnDfjaU8rmzwujtAAKaAb4Ehu+rNL7JNszptkQL6JBZRHspxV29bhUkhqBm+fYgWTM0JMpP6RpT36BBSZtHiciYzanrU7Tzaa70/wtdvZLPKQEB+TR/SI56VNojcbzsCtiDpgGw/bguKm6dZgGk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fkSP9rh5; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fkSP9rh5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 701D0C4CECF; Wed, 6 Nov 2024 02:13:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1730859181; bh=ytml5/ObCCYewVIwOZEXNVA26Qp+fx50Smd9Qbj7Y4A=; h=From:To:Cc:Subject:Date:From; b=fkSP9rh5YbTsvYHH4PbZqtpluG5PS6y6RW1DeOTkZ+9ECilAFjR4RwDmnlnltHVb5 dhKOG51mWejGm6nVul3UjzG94mYxzC4wVtzLRyS7GsSUYGqTNp19nbhKgeuDvMcZe5 VmDiy311AwMb8bdymfSvbyXnL22uBsTUkhyFKMMYdhodShpkMdFLeSQ3A7ceS7JtfG nuiLJf9+Iocox20t6BAx0vX93LIeP0UmIabwP0X4+A2qd3PDAzSKoP0zIv9v+vgCVF ifb5vQSZ3x201Nti6WLB3de3R+oD11jD0aF8j26hLF2QGjVY7bh2OZZvsxJE/l75KK vYVa8pRKbtgSg== From: Sasha Levin To: stable@vger.kernel.org, johan+linaro@kernel.org Cc: Thierry Reding , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: FAILED: Patch "gpiolib: fix debugfs newline separators" failed to apply to v5.10-stable tree Date: Tue, 5 Nov 2024 21:12:58 -0500 Message-ID: <20241106021258.183293-1-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The patch below does not apply to the v5.10-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . Thanks, Sasha ------------------ original commit in Linus's tree ------------------ From 3e8b7238b427e05498034c240451af5f5495afda Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Mon, 28 Oct 2024 13:49:58 +0100 Subject: [PATCH] gpiolib: fix debugfs newline separators The gpiolib debugfs interface exports a list of all gpio chips in a system and the state of their pins. The gpio chip sections are supposed to be separated by a newline character, but a long-standing bug prevents the separator from being included when output is generated in multiple sessions, making the output inconsistent and hard to read. Make sure to only suppress the newline separator at the beginning of the file as intended. Fixes: f9c4a31f6150 ("gpiolib: Use seq_file's iterator interface") Cc: stable@vger.kernel.org # 3.7 Cc: Thierry Reding Signed-off-by: Johan Hovold Link: https://lore.kernel.org/r/20241028125000.24051-2-johan+linaro@kernel.= org Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpiolib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index d5952ab7752c2..e27488a90bc97 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -4926,6 +4926,8 @@ static void *gpiolib_seq_start(struct seq_file *s, lo= ff_t *pos) return NULL; =20 s->private =3D priv; + if (*pos > 0) + priv->newline =3D true; priv->idx =3D srcu_read_lock(&gpio_devices_srcu); =20 list_for_each_entry_srcu(gdev, &gpio_devices, list, --=20 2.43.0