From patchwork Tue Jun 18 13:29:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrice CHOTARD X-Patchwork-Id: 13702240 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 0C900C2BA18 for ; Tue, 18 Jun 2024 13:30:51 +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:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To: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=11DwoO2SWX8eyBwLh+xLeuRA7wZ4nhz85Dd9E+yYocs=; b=Nol6sP6pVPDM4Arf5b49TVQpIh 2NWJ1oUQ7ZWor8mOs1F2yu272UfbnNQZtcswiHt85xo9QuV9a1WpXGy18XOEz6LN9/4Pu5XXR0CS8 HElHRjzFLR8Fl2GJiEimG2/eGMz9mamSTms34CHrjLWVEiNl+gS4HhIzyRbIh6uG3R4StucbLwp7p NZobDcgIRgabFIwh3IAM1dyDX3cI6xfzVdSpZHAX3vfB+1oSakSpgBgFINN4jsWERqp5pJb9iATHB dFAZzsh/dBANzo6SPWPtdHJaRll+vI58wHOHx4tz4Ze03tMnLH9o0zxGsRGR11MhnjjeyFtP/xJpR GMPF7Wyg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJYuw-0000000F8hM-25P9; Tue, 18 Jun 2024 13:30:34 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJYus-0000000F8dB-3L6C for linux-arm-kernel@lists.infradead.org; Tue, 18 Jun 2024 13:30:32 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45IAQ9b4022142; Tue, 18 Jun 2024 15:30:22 +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=11DwoO2SWX8eyBwLh+xLeu RA7wZ4nhz85Dd9E+yYocs=; b=783wEJQ0aDuSD566NOC+elkNLZSaRBKE+g+HWr 3fZ3QtqkAZlac6oCfEq/pKh/VyCPMQv5XeMYdbn6CEMxL7dQ709Mhh6rKjvnpS5/ SmVepiMBuD5ScHT/AM4NoTbFOzAcydfoi9rDSs9d+FImL88fKAZbckcF/lrpWBAj 1zIfx/p3i64+3brjUUWonY6z+bIpdqSqFfcLyrbgIMA1E8hcCoGriQqwDohusSeR JGJgHywLADt2CSWMH+XbhwIC+Qj/5/co9HLbmCNj/j79j9OWj4prfqO7vAiTwjdj 4TvqPJcMM7SndjnjzSFOMbz1r2q6+I/8wodYYeh1xhqnn5dA== 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 3ys1ucueju-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Jun 2024 15:30:22 +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 416A240044; Tue, 18 Jun 2024 15:30:16 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 5EFF7218624; Tue, 18 Jun 2024 15:29:55 +0200 (CEST) Received: from localhost (10.48.87.62) 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.35; Tue, 18 Jun 2024 15:29:55 +0200 From: To: Mark Brown CC: , , , , , Subject: [PATCH 0/3] spi: OCTAL mode fixes Date: Tue, 18 Jun 2024 15:29:48 +0200 Message-ID: <20240618132951.2743935-1-patrice.chotard@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.48.87.62] X-ClientProxiedBy: SAFCAS1NODE2.st.com (10.75.90.13) 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.28.16 definitions=2024-06-18_02,2024-06-17_01,2024-05-17_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240618_063031_295055_424B46F7 X-CRM114-Status: UNSURE ( 7.48 ) 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 From: Patrice Chotard During tests performed using spidev_test in OCTAL mode with spi-stm32-qspi.c, several issues has been found : _ OCTAL mode wasn't supported in spi.c _ CCR register wasn't set correctly when OCTAL mode is set in spi-stm32-qspi.c. _ Fix dual flash mode sanity test in spi-stm32-qspi.c Patrice Chotard (3): spi: stm32: qspi: Fix dual flash mode sanity test in stm32_qspi_setup() spi: stm32: qspi: Clamp stm32_qspi_get_mode() output to CCR_BUSWIDTH_4 spi: add OCTAL mode support drivers/spi/spi-stm32-qspi.c | 12 +++++------- drivers/spi/spi.c | 6 ++++-- include/linux/spi/spi.h | 5 +++-- 3 files changed, 12 insertions(+), 11 deletions(-)