From nobody Sun Nov 24 08:55:37 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 D75421D7E31; Wed, 6 Nov 2024 02:14:43 +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=1730859283; cv=none; b=Gb8slbe59PICAh/ovQ5TgEZGDHaH3WqwYFsWmyIy64SlECZFzaJ1W5O62QQ6mvm9q9uJQgIEZLbjm4wCDFAYCeQsPfXU66OsYHzM0S/cV7N2em94x4TXbKPIhMAoZAKtIwuFccGdcdEyKmLbBnbHNXHpTtke3lqK2LQDo8/iUiQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730859283; c=relaxed/simple; bh=a1fx9W5C2Y8DIeSPoUZDAcxu4n24EELzZtYvi7JTuWs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rJd/vyEsz90A7QWluSiBGx/VQeJDs+6f/7krT28jC+eXLlQUf4gFQkP6wiPgQc9+h5HQKOdJF2NoZPGuqf35d1xrZI2F8kq+rpm8pVuLNXWx/N4L+WCW7nmD2pyuaRY6dJvR9qNgjtl5QudFTtDqZVgD/Tu34M1U7RRV3wSrVgY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=G6RYVlk3; 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="G6RYVlk3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04D32C4CECF; Wed, 6 Nov 2024 02:14:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1730859283; bh=a1fx9W5C2Y8DIeSPoUZDAcxu4n24EELzZtYvi7JTuWs=; h=From:To:Cc:Subject:Date:From; b=G6RYVlk3mEPqkiUBh5Tc5XkG1RSYmsESh8UJiPbjpp5XXniTQrzmuRDj9dHFHZ+c4 XYEgMnqoKTUsAiS+KjiZN4O6UKzBdNHEFr2qY+ldoZuAZkNcpE5bbZCS+gBLU5NgoC 8Ajb0x3hWLG+Ae2RT2HSE7b308S8zHwlqxFxXUKAhprjV6DZKgQt0hWc54vaaOP518 iEqwvIv60NeVbo1N/m0KFyd6sEObE9dG+Uw8TF0WQFrItc3AeTsVOPEfhxQ2rD4T+S vhI5zhJ/lniGb9TdflFuRdFT1d2VPFrKHD5K7BwaP3db+3oO3WPQXGmzT23gz49xsy yBsXwFz6ra4lw== 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 v4.19-stable tree Date: Tue, 5 Nov 2024 21:14:40 -0500 Message-ID: <20241106021440.184439-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 v4.19-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