Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp20112ybh; Tue, 17 Mar 2020 17:17:45 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtP7h0Xj+BZ0dr/zg8/uzaLMKQEQ/CB5ft0izsigLpWkDDUWbS/7LGt2ZdvyQSo/kjiMFji X-Received: by 2002:a05:6830:1e38:: with SMTP id t24mr1682865otr.33.1584490665809; Tue, 17 Mar 2020 17:17:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584490665; cv=none; d=google.com; s=arc-20160816; b=NaxSlHhS49dAjshONrMcGGiQ9+lb8g/kSsB1o8QYPvcPRN+/cVjKLMpBhqSJMILg7i why9+/NTNPJSEtnFT3o0DDKR36UFNCnBpFaDw91Ba1IBv2Q2sXdPk2xClvZ/wb/DwTbZ FSyvumbqgLpvIdZNg2jLWWNLUmrgCIKzJmsAHFAJPhPJBV1eEuu0uuQgBZ7jo/60jCMQ bfvypDl3qiFfaHFoKkkja9olwZ4PTkleW3kM5GM8veU8eQ+qAsfWJK6srOrblUYzI2c+ HiJQEJL3D0J30K2PGuLAnTF3Gs2EyrzCRw3zBAi137WrzaICUsAD+sVbiUu/V3VLPkiy RM0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=fa9G6pIxx2NTIh5BkG3oXN/ghLxEgalYJbU5H578aWc=; b=tPg77V5DWPiSDyQvjk4uWtUHHlL0PME4TwRCFI9QMw+brWWAlmPisHkkthOy2EtLhr 0W+gpf/qpOJuh237WPSqmBXyzo4FZ8H5townKgrA5mF5HhSa/pOQg4SvPpXv/k/DG5YE V4Tga1oky9DYG7Mfh7WTjscWBRSI85H5NWqsxj6ir4JEusZADwOFYYa6UolnVFUK1867 39dmDbT4PKZ/N8TK+dmlVUlDgCvauV46MTk6t/XKp/3b81jmYykAObOaDM4q/ej7NnAR vSyDJg/pY0a90rc5/JWA3cJZFcsphP2+po0vuDiLgpWoU6mM0KHV+SVp0yC6g+lvdokk CzXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=G1OdElj0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15si2715168otl.282.2020.03.17.17.17.27; Tue, 17 Mar 2020 17:17:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=G1OdElj0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727190AbgCRARJ (ORCPT + 99 others); Tue, 17 Mar 2020 20:17:09 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:53902 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726965AbgCRARJ (ORCPT ); Tue, 17 Mar 2020 20:17:09 -0400 Received: by mail-wm1-f66.google.com with SMTP id 25so1323930wmk.3; Tue, 17 Mar 2020 17:17:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=fa9G6pIxx2NTIh5BkG3oXN/ghLxEgalYJbU5H578aWc=; b=G1OdElj0Y+mBwqjWm8GvIJWfTdaN5fR5GGWEY5bndc4HWWiAisXHKpwOqdgE76JfDQ 5Bc2E4N9rt+tX0hSL0yucaUMyoh1BkzAtDLMbYzF21ABqqx48k2FDUG3oG8W09nEbmE7 znOWCwjnVRQm3dMNKwuiq+oxOYIjZIeT7AspRgMYfk3OPPsCFDobP1XxwhHC0uCeWjDz g62jQs5a+8wOVwHuWinLR/yVHhssJMl4Ux+ic/L0m5ps/Y3Pllnuvf/fgLdyJXIYniIv eBSYJNb5TdXpCeQJ3z++GmALr24dPlv7zgx6KrBJ8Sj3OopfcHPn9MUokFzKIbWUw1Cl ogDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=fa9G6pIxx2NTIh5BkG3oXN/ghLxEgalYJbU5H578aWc=; b=QmUriMWzxB8wN60NgCVvLcVv2Lkl53YApWWmqlQPAhxBVvi4PSytWdw4SB4tEPnSi1 8kUAYSxVwGmjdOTpKhGO9focGmlNQGkWWGWKOPKtalgVnt8utc8bf8avWV/UiX4wy0po eXBl6dZr6rloauOQdWLf0nF8mbuz8X0B7YqZnAvBU30Ud5dQRblyZcgloF5uNL5YfWly BesglVAnQyn6xidz++2CVIEBbLzceZs3N2n+7EVmBenGZ1cswO5QCY0dv7ZhWsMFi/YC EIxM8GoRoP6minK9Nf8nPyP6EoIMenEsph3K+XERiV7gMcNb3AN3/SgdUw88G9NYAByI 8Abg== X-Gm-Message-State: ANhLgQ1cnH9mXDATYVZR4JVm1hXq21M3GWbA5g5iM92KXCq1P+MDWzjg cgEqyadxoXxfD+sSj6DBijAg4wWdid+oMQ== X-Received: by 2002:a1c:4c16:: with SMTP id z22mr1659615wmf.50.1584490626934; Tue, 17 Mar 2020 17:17:06 -0700 (PDT) Received: from localhost.localdomain ([79.115.60.40]) by smtp.gmail.com with ESMTPSA id i6sm6584600wru.40.2020.03.17.17.17.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Mar 2020 17:17:06 -0700 (PDT) From: Vladimir Oltean To: broonie@kernel.org Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, shawnguo@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, eha@deif.com, angelo@sysam.it, andrew.smirnov@gmail.com, gustavo@embeddedor.com, weic@nvidia.com, mhosny@nvidia.com, michael@walle.cc, peng.ma@nxp.com Subject: [PATCH v5 00/12] NXP DSPI bugfixes and support for LS1028A Date: Wed, 18 Mar 2020 02:15:51 +0200 Message-Id: <20200318001603.9650-1-olteanv@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vladimir Oltean This series addresses a few issues that were missed during the previous series "[PATCH 00/12] TCFQ to XSPI migration for NXP DSPI driver", on SoCs other than LS1021A and LS1043A. DMA mode has been completely broken by that series, and XSPI mode never worked on little-endian controllers. Then it introduces support for the LS1028A chip, whose compatible has recently been documented here: https://lore.kernel.org/linux-devicetree/20200218171418.18297-1-michael@walle.cc/ The device tree for the LS1028A SoC is extended with DMA channels definition, such that even though the default operating mode is XSPI, one can simply change DSPI_XSPI_MODE to DSPI_DMA_MODE in the devtype_data structure of the driver and use that instead. Compared to earlier v4, the only change is in patch 05/12 to fix a race condition signaled by Michael Walle here: https://lkml.org/lkml/2020/3/17/740 I don't expect the "fixes" patches to reach very far down the stable pipe, since there has been pretty heavy refactoring in this driver. For testing, benchmarking and debugging, the mikroBUS connector on the LS1028A-RDB is made available via spidev. Vladimir Oltean (12): spi: spi-fsl-dspi: Don't access reserved fields in SPI_MCR spi: spi-fsl-dspi: Fix little endian access to PUSHR CMD and TXDATA spi: spi-fsl-dspi: Fix bits-per-word acceleration in DMA mode spi: spi-fsl-dspi: Avoid reading more data than written in EOQ mode spi: spi-fsl-dspi: Protect against races on dspi->words_in_flight spi: spi-fsl-dspi: Replace interruptible wait queue with a simple completion spi: spi-fsl-dspi: Avoid NULL pointer in dspi_slave_abort for non-DMA mode spi: spi-fsl-dspi: Fix interrupt-less DMA mode taking an XSPI code path spi: spi-fsl-dspi: Move invariant configs out of dspi_transfer_one_message spi: spi-fsl-dspi: Add support for LS1028A arm64: dts: ls1028a: Specify the DMA channels for the DSPI controllers arm64: dts: ls1028a-rdb: Add a spidev node for the mikroBUS .../boot/dts/freescale/fsl-ls1028a-rdb.dts | 14 + .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 6 + drivers/spi/spi-fsl-dspi.c | 324 +++++++++--------- 3 files changed, 182 insertions(+), 162 deletions(-) -- 2.17.1