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 74FBD14C5B0; Tue, 23 Jul 2024 18:30:12 +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=1721759412; cv=none; b=Dhm/t1/kj45GJedzofWuRkAZagm7V6Ovrz1S6C1BnkLDTUrh5ZVI65Uj+yMFZ5vrWn7EaOeOIi4sDBCMRoelcLvvwXKBRPtyFGfiTTOFeQEw+9aqzpySAfCUmdekzHLuIrFIeBqOk4PE4cpq3mw9txBKFpJaTzvsD5UzYbQZcBU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721759412; c=relaxed/simple; bh=aR6faF6fL6Tg4MZl4dofDXeOlIU1i1FgTifl3LwrRbk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DDsHm69TIX2uWnyVJWhEV3JkVS1opf8WKZqopyyTZHUCgAO5cXCqcXOC3fT4umYRMBd+89qvwMb5BOXb94MHlRToEc3J1543kv2l64pTqbE9Javib1JY/UuiUPvLLM1+MWClOfJ7MhaHKyV/1LNTSIvFT3ZQo3HY1tFKyE3XD80= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vv+hBWcC; 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="vv+hBWcC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB85CC4AF09; Tue, 23 Jul 2024 18:30:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721759412; bh=aR6faF6fL6Tg4MZl4dofDXeOlIU1i1FgTifl3LwrRbk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vv+hBWcCcK/Rp0FTwKQaBqPyVyYeL34ep5YTapiQCjTzqlISK/BGki6/EZeqRWWEJ rShheMVo9N/sivWQfQ5mAId1FT2P0lWiopRJff/lMa/Qqp8pLnHwC0sZlSyPu4qC/q 4Yi7owSiUADdaMWE6FWS55IZDMroilUm5GXVrZog= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, David Lechner , Mark Brown , Sasha Levin Subject: [PATCH 6.1 096/105] spi: mux: set ctlr->bits_per_word_mask Date: Tue, 23 Jul 2024 20:24:13 +0200 Message-ID: <20240723180406.945141598@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240723180402.490567226@linuxfoundation.org> References: <20240723180402.490567226@linuxfoundation.org> User-Agent: quilt/0.67 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.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Lechner [ Upstream commit c8bd922d924bb4ab6c6c488310157d1a27996f31 ] Like other SPI controller flags, bits_per_word_mask may be used by a peripheral driver, so it needs to reflect the capabilities of the underlying controller. Signed-off-by: David Lechner Link: https://patch.msgid.link/20240708-spi-mux-fix-v1-3-6c8845193128@baylibre.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-mux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-mux.c b/drivers/spi/spi-mux.c index 0709e987bd5ab..465d5b0e1d1a9 100644 --- a/drivers/spi/spi-mux.c +++ b/drivers/spi/spi-mux.c @@ -156,6 +156,7 @@ static int spi_mux_probe(struct spi_device *spi) /* supported modes are the same as our parent's */ ctlr->mode_bits = spi->controller->mode_bits; ctlr->flags = spi->controller->flags; + ctlr->bits_per_word_mask = spi->controller->bits_per_word_mask; ctlr->transfer_one_message = spi_mux_transfer_one_message; ctlr->setup = spi_mux_setup; ctlr->num_chipselect = mux_control_states(priv->mux); -- 2.43.0