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 A0D24168CD for ; Mon, 8 May 2023 11:20:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E4EEC433D2; Mon, 8 May 2023 11:20:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1683544838; bh=hqR9NBU7VaQmbbTWi1w16gir0uIP3YlovBnJBhRyTQg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tUK72uJOlvMBGs2PCO1Udj/B/mDF+HCEv2lfFXG59I5d2bBQG935cs8AB290OZnsA Rch/z3ixdJZHivAel++htBorqRoZAQqKm7JhQKAjt+WY//MBuAtq4GSXvAPiYgorwX 03SRfURQOpl1o+jBRBPZMD55YLpyE92vQAxsC9n4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Tharun Kumar P , Mark Brown , Sasha Levin Subject: [PATCH 6.3 512/694] spi: mchp-pci1xxxx: Fix SPI transactions not working after suspend and resume Date: Mon, 8 May 2023 11:45:47 +0200 Message-Id: <20230508094450.799450012@linuxfoundation.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230508094432.603705160@linuxfoundation.org> References: <20230508094432.603705160@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Tharun Kumar P [ Upstream commit 4266d21669de62cf3fb6774f7d404c1eb95a5ab3 ] pci1xxxx_spi_resume API masks SPI interrupt bit which prohibits interrupt from coming to the host at the end of the transaction after suspend-resume. This patch unmasks this bit at resume. Fixes: 1cc0cbea7167 ("spi: microchip: pci1xxxx: Add driver for SPI controller of PCI1XXXX PCIe switch") Signed-off-by: Tharun Kumar P Link: https://lore.kernel.org/r/20230404171613.1336093-3-tharunkumar.pasumarthi@microchip.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-pci1xxxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-pci1xxxx.c b/drivers/spi/spi-pci1xxxx.c index 0805c441b4065..13efbfeff92ce 100644 --- a/drivers/spi/spi-pci1xxxx.c +++ b/drivers/spi/spi-pci1xxxx.c @@ -58,7 +58,7 @@ #define VENDOR_ID_MCHP 0x1055 #define SPI_SUSPEND_CONFIG 0x101 -#define SPI_RESUME_CONFIG 0x303 +#define SPI_RESUME_CONFIG 0x203 struct pci1xxxx_spi_internal { u8 hw_inst; -- 2.39.2