From patchwork Wed Oct 9 16:15:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 13828769 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 82028CEE32D for ; Wed, 9 Oct 2024 16:26:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:CC:To:Message-ID: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=qJUiUHmWLUtzihvXk8d46fme/yOPE6VGUx1rsJMri60=; b=3iBJhi/5hMxdJ7KzR1OWHAZjwV qMUzSNFYOhGCycSCpyp+Qmi3dEMDWzG3cVTeYsnmgjJqbj2aJfafitJo/HE0YJz8zGpLlcGH1rMF2 ePq9GS3yCsFhIieoe0MMhjMNIoH2HcTxQdDpTD+ABS+xWjamU8U13sOFTTcIqozeO9FOQXnFLj2x4 yk/PdOdLAikqETjASNq0y0QwUJZOiW2iwOLgh1nLKXANHQJPWN3U95mC7cC57MoQWmDjIv8agg8Se Kfj+5e/R1oS5p9JlGduxOmF9G9dQxWoAGLJ8jQoiBP8qvO6ZtW+ITU+b60hXt2ms1zg7rx9ZBqAut 6yW7dvMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syZW2-00000009x8Y-2Nek; Wed, 09 Oct 2024 16:26:22 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syZNY-00000009uiw-3OrC for linux-arm-kernel@bombadil.infradead.org; Wed, 09 Oct 2024 16:17:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=CC:To:Message-ID: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender: Reply-To:Content-ID:Content-Description:In-Reply-To:References; bh=qJUiUHmWLUtzihvXk8d46fme/yOPE6VGUx1rsJMri60=; b=ptTkife8DrX/XAP8+QrhUoCI90 IlB9qSUTvM3wmiGpXFUErGKi6xEoV07HYYG+hSr+6wzpSHfpVuzdJygn/oL8wsOOoqpQ+CRF3TKZR ArBjLXwW0fk3uTBsszBbTRDKernaIZI9mmSqhbSeHB35F9LS1vICfx1RDV6qzBRO/qlTXGKq0DjdW r2HpXLEBZkdk5l9CEP24ODrHo4aCKD+QwsjtA23F3dmpJ5El2GsoAySWArXllrnyu8Bxz/igreqa5 MVvJ2AAhfGuWmPqTN5VipChZqkgauLIUEIyBbCuuGbpkFhlLJAI8TwKLZBANYPFQmRhKJmnt5hmR4 pHIAHR9A==; Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syZNV-000000051Da-2Bhl for linux-arm-kernel@lists.infradead.org; Wed, 09 Oct 2024 16:17:35 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 499E6MDB005053; Wed, 9 Oct 2024 18:17:23 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=selector1; bh=qJUiUHmWLUtzihvXk8d46f me/yOPE6VGUx1rsJMri60=; b=Y+cRSKzoOrOCLIA9ZT2HglYnCNh1nFBZX+kZkJ 9BszGM8BdRB3PKMb6CaPFs/Mj2glyqKe7CfEMjmwtfb2wbyvfUhOOSTEs4rFmkFX I7sG6z+ROw+ZVYFrLZ6S0Kka3pGIJuVxXB+4Jt0nPjzrvETtnBkAA677vQIGkeQB l+mbHUQkkfVquZnrAIlDqVmLKNZ0LOp9UIV8kfvH5tHEIZangTWi/Viivam7IFG/ egGufHn5g24VUQOe98YNlYGmXpNLvHqXW/4DSZ+7pIocCC3seCzJXO74VIAyJgZ8 v1bWrBNf5w9fKfl7R7QcVvrk5HxgAeYEAQw2j7GjWFOaYsWQ== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 425q97t0uw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Oct 2024 18:17:23 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id DEB4240044; Wed, 9 Oct 2024 18:16:28 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 9284726AF2B; Wed, 9 Oct 2024 18:15:58 +0200 (CEST) Received: from localhost (10.129.178.213) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.37; Wed, 9 Oct 2024 18:15:58 +0200 From: Alain Volmat Date: Wed, 9 Oct 2024 18:15:52 +0200 Subject: [PATCH] spi: stm32: fix missing device mode capability in stm32mp25 MIME-Version: 1.0 Message-ID: <20241009-spi-mp25-device-fix-v1-1-8e5ca7db7838@foss.st.com> X-B4-Tracking: v=1; b=H4sIADesBmcC/x2MSwqAMAwFryJZG4jxg3oVcSE1ahbW0oIIxbsbX M5j3mRIElUSjEWGKLcmvbxBVRbgjsXvgroaAxM3FdGAKSiegVtczXaCmz4oVDfUcU+OGOwZotj 8V6f5fT+gnhfSZQAAAA== X-Change-ID: 20241009-spi-mp25-device-fix-e03406280c02 To: Mark Brown , Maxime Coquelin , Alexandre Torgue , Valentin Caron CC: , , , , , Alain Volmat X-Mailer: b4 0.14.2 X-Originating-IP: [10.129.178.213] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241009_171734_039785_040BD4EA X-CRM114-Status: UNSURE ( 8.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The STM32MP25 SOC has capability to behave in device mode however missing .has_device_mode within its stm32mp25_spi_cfg structure leads to not being able to enable the device mode. Fixes: a4e7908abf0c ("spi: stm32: add st,stm32mp25-spi compatible supporting STM32MP25 soc") Cc: stable@vger.kernel.org Signed-off-by: Alain Volmat --- drivers/spi/spi-stm32.c | 1 + 1 file changed, 1 insertion(+) --- base-commit: c2a59c892f20379a3e48124a83491a12374cd7e0 change-id: 20241009-spi-mp25-device-fix-e03406280c02 Best regards, diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c index f2dd8ab12df831d54758d21ec1a68ffc40e2f0a6..da3517d7102dce5f830cdf0dbdee3e19184f69c5 100644 --- a/drivers/spi/spi-stm32.c +++ b/drivers/spi/spi-stm32.c @@ -2044,6 +2044,7 @@ static const struct stm32_spi_cfg stm32mp25_spi_cfg = { .baud_rate_div_max = STM32H7_SPI_MBR_DIV_MAX, .has_fifo = true, .prevent_dma_burst = true, + .has_device_mode = true, }; static const struct of_device_id stm32_spi_of_match[] = {