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 213DD1586C4; Tue, 23 Jul 2024 18:35:57 +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=1721759757; cv=none; b=QWd90KOuAu5f/vIKuiENjIrlK1ZoaOHic0HYnTjttJKFrhvH4mRyN70r71PqJRxqx0Tt9Lm8ngEG9urC4E5a0VpQxBt+iYXjI65NI6Pb/mGNVKXJ4BGdvsl39ukfBjV2xiy5fezBHl8i7FdYQI2znYyS6y0QNMD7yKUKf7svWkI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721759757; c=relaxed/simple; bh=wJHvLNt6UPO2UkMJCC3pjLN0Za4G4JxifFJ7F3uui4A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MWXz88IFNj0f9bSuq8cRlV0I5v8ozcdcxBaOwNd8fmxfQvQLKRHX3W9M65BI2sCmPM4wmwz+9x5q/PIqeQJ/oZw3erQX72xdduEICu6hvwyaR1MOuZ1fBN1v3naaCWNjXs3W8ccvf6KFnSkH3molTEfxiVbKtCmMbok+KlEvkas= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nH6xHJFU; 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="nH6xHJFU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F9C2C4AF0A; Tue, 23 Jul 2024 18:35:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721759757; bh=wJHvLNt6UPO2UkMJCC3pjLN0Za4G4JxifFJ7F3uui4A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nH6xHJFU+gbZuLl2AUqWnsgcrtiTE1+yyx2vLH5IjAig/dvn86KK6mfx/KUUqdFh3 kTFLOmZX610yNFgD7BMGxmA0ZCO+u5QW/ZkhewH5iifNVOl9szpNR4N0phB83PCCQa fNhgGqjWymaoVmwMFVWduBVmbAki31yNCDfNpJJY= 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.6 117/129] spi: mux: set ctlr->bits_per_word_mask Date: Tue, 23 Jul 2024 20:24:25 +0200 Message-ID: <20240723180409.309572281@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240723180404.759900207@linuxfoundation.org> References: <20240723180404.759900207@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.6-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 fa8c1f740c702..804b911f2baf1 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