From mboxrd@z Thu Jan 1 00:00:00 1970 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 059062C3749; Mon, 27 Oct 2025 19:21:26 +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=1761592886; cv=none; b=n7N5J/QM6GfqMErfo8tD+jUmOmt5cXYySUtM5vYoSTT1qgwBJO+eD01gbFfWpf4HJ+HUA6BGDvYDYHCYxGNuqMzWqM/ld9mgZyPDWe0byZJOH5YpJBtjHCT+m6uYdhUe29sZVPg3+kygkvFzH89Y5wImEAKsRmc86LEnlPhYeE0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761592886; c=relaxed/simple; bh=0LH0nJ3ZBHIpmfe85oZjh35LkmXKkwhUGGap5ZW5zFY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YRHa5cd1+ygMfvGmFRfZmIcDR8hV4lBUOMfqWYxrBftXCELFlJdhNSdoV8OgTTIDJoRu+uV1pCz13pwr2+fU4DdSmMx9zRuOyiBZ7xDn6vrJpPCk8VrqupLEU8E14h+TdckNFS2GjvEAFa0YB/mu75fDE+UNWv+HOKx39DxPNvU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=a5S5Nc4y; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="a5S5Nc4y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C2D6C4CEF1; Mon, 27 Oct 2025 19:21:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761592885; bh=0LH0nJ3ZBHIpmfe85oZjh35LkmXKkwhUGGap5ZW5zFY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a5S5Nc4yBeMpJJpfEF6Uuij3uJ4D5J7/iOMDQvKpHW3xmx6VDli9VgFx3fgSncc4/ 44YW4RX8p2/lafnF0SCyKoLvqH7JFmZ7T8qIzhjkxkZyUfYgWR0ihssn0aiUNferYx 128aTmi+49k//AqHLIwFtgO/0WPthOoxwukXwLrg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Mark Cave-Ayland , Andy Shevchenko , William Breathitt Gray , Linus Walleij , Bartosz Golaszewski Subject: [PATCH 6.12 049/117] gpio: pci-idio-16: Define maximum valid register address offset Date: Mon, 27 Oct 2025 19:36:15 +0100 Message-ID: <20251027183455.322579805@linuxfoundation.org> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251027183453.919157109@linuxfoundation.org> References: <20251027183453.919157109@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: William Breathitt Gray commit d37623132a6347b4ab9e2179eb3f2fa77863c364 upstream. Attempting to load the pci-idio-16 module fails during regmap initialization with a return error -EINVAL. This is a result of the regmap cache failing initialization. Set the idio_16_regmap_config max_register member to fix this failure. Fixes: 73d8f3efc5c2 ("gpio: pci-idio-16: Migrate to the regmap API") Reported-by: Mark Cave-Ayland Closes: https://lore.kernel.org/r/9b0375fd-235f-4ee1-a7fa-daca296ef6bf@nutanix.com Suggested-by: Mark Cave-Ayland Cc: stable@vger.kernel.org Reviewed-by: Andy Shevchenko Signed-off-by: William Breathitt Gray Reviewed-by: Linus Walleij Link: https://lore.kernel.org/r/20251020-fix-gpio-idio-16-regmap-v2-2-ebeb50e93c33@kernel.org Signed-off-by: Bartosz Golaszewski Signed-off-by: Greg Kroah-Hartman --- drivers/gpio/gpio-pci-idio-16.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpio/gpio-pci-idio-16.c +++ b/drivers/gpio/gpio-pci-idio-16.c @@ -41,6 +41,7 @@ static const struct regmap_config idio_1 .reg_stride = 1, .val_bits = 8, .io_port = true, + .max_register = 0x7, .wr_table = &idio_16_wr_table, .rd_table = &idio_16_rd_table, .volatile_table = &idio_16_rd_table,