From patchwork Thu Oct 10 13:33:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 13830150 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 44CB6CF11F5 for ; Thu, 10 Oct 2024 13:37:11 +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=esXsrZ2YS/C1yT+ZzCtwwQ+71ddeQi/llzx1JUf1z3k=; b=iBf5pmeK7pa0pIk/V3p3d33mys AG2SPdHCMTkkDOs68n1z6ECM0kyTft5YKLB62k0rOG+LrPfPUbqrIGxX9O7NDKGHvPPcd4T4gONKJ /MwNE7cAjdU0WMOIPWtRHpNc3FdzwSQey4dJKEGeYtBrfUQIhWAD9u5BB5Xv1uxlYUzdZsdfEk5ma +VzWFPd5iHuETJOFG2l70dtKLN205QPclFokjeKsmw5HC7e5bNY88SWsQo7K9IutO9HyTZ0YWFDpO mubDCa0rIhWYuypfdFBv3//lGox9csdaPx2ZEY/cQrV1Hj/8AHtP7gXykMZWlglNsSSImc+Di1YCa xColM5ng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sytLi-0000000Cw3B-13td; Thu, 10 Oct 2024 13:37:02 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sytKK-0000000Cvkb-0Ls4 for linux-arm-kernel@lists.infradead.org; Thu, 10 Oct 2024 13:35:38 +0000 Received: from pps.filterd (m0369458.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49A8i8eS000480; Thu, 10 Oct 2024 15:35:30 +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=esXsrZ2YS/C1yT+ZzCtwwQ +71ddeQi/llzx1JUf1z3k=; b=Gik41LHLW8cAdrTWQZPOWhGCFI6nzYcgmi1DaG 9kPZUEmwdN6NCEyWT7ASCbYOCaLN2yGp4OeouROtgJjGqPtFrV3M2YzwKZQ57VXB z2Awu2xTKSSTku7lQK0Q1MO7nKTxqiy1XYlOtckf0eoCPdOzxAixvTMC+q5J4KpT ak7lVGIGpXpjOIQiDg/2SU987UOpXugM+S2QLQWWnOnSYBgHYcJYC7bKXB0XUTKo 5vvgv9w1rpvTgKWPfRPKx3hzUOlOLb1s/O8X4P75va4y3W2REWGVCF4vju5AuU4k 4qsu8/gpy6lUKqC+oQeSwlMrx0DkY/j9Uaz3RCXPS/OZQabg== 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 423f1175hd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Oct 2024 15:35:30 +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 1AA014005D; Thu, 10 Oct 2024 15:34:40 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D6E7E273516; Thu, 10 Oct 2024 15:33:15 +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; Thu, 10 Oct 2024 15:33:15 +0200 From: Alain Volmat Date: Thu, 10 Oct 2024 15:33:03 +0200 Subject: [PATCH v2] spi: stm32: fix missing device mode capability in stm32mp25 MIME-Version: 1.0 Message-ID: <20241010-spi-mp25-device-fix-v2-1-d13920de473d@foss.st.com> X-B4-Tracking: v=1; b=H4sIAI/XB2cC/32NTQ6CMBBGr0Jm7ZBpAamsvIdhgWWQWUBJhxAN4 e5WDuDyvXw/OyhHYYUm2yHyJiphTmAvGfixm1+M0icGS7Y0RDfURXBabIV9SnvGQd7IVJR0tY4 8WUjNJXLS5+qjTTyKriF+zpPN/Oz/vc2gQceV7+r+WbvC3Yegmuua+zBBexzHF3thBSm4AAAA 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-20241010_063536_469130_FEFE63C6 X-CRM114-Status: UNSURE ( 9.56 ) 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: f6cd66231aa5 ("spi: stm32: add st,stm32mp25-spi compatible supporting STM32MP25 soc") Cc: stable@vger.kernel.org Signed-off-by: Alain Volmat --- Changes in v2: - correct Fixes commit sha1 - Link to v1: https://lore.kernel.org/r/20241009-spi-mp25-device-fix-v1-1-8e5ca7db7838@foss.st.com --- 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[] = {