Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1801797ybn; Thu, 26 Sep 2019 02:24:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0fTGepULuLccRWu62dpjXkiOqnEcEw6o+3pzXkI0F7h4p9kKVloDWMWoJ9G37wULivwj+ X-Received: by 2002:a17:906:7e06:: with SMTP id e6mr2143768ejr.149.1569489876822; Thu, 26 Sep 2019 02:24:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569489876; cv=none; d=google.com; s=arc-20160816; b=Z9K/9h4ib4cHb2OO02knNf4dvKINYqmA57k2pzaMbZCz+76zQWT1UEgowsJJq2S0Pf olQUvFrfmWpKbnmDu9lUSZC/0ANGoi1TYONZBWKxRs8i1LWUoOuPBobvRHZUaL66VWuZ sC8E4y/9sjMzS1+dry64zKaNTo1KhvX7TWRqI5N81WrV+pZjPolOywN5dB2W547VuTyz 6AAFT8CN47NH9JRg/hTBENeANb3sX4SzWn1I3R3RyVRFLXQjWfNAuv4Rbrud6+K1oV3N B3+IFQYmQYPXbOZl8FP94ku1xTW5rEohGrd++dAkwZ4x2Aep1Hhi4LW6j2F+03agNs2B Q+/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=nJh/C14AVuNntAUMez0Pdto6XZEsW8v5v6QTPMnri6Q=; b=SZ7b9525j7SvVFg98/2rw8BoqSdzm77p0amNiQ2/CKOmPvTOXaQLMBL9twChE0cyUu tvS4X/Bisrn+b19DFvCsv17g+d4V4WCSTezp7DyNZT25mqHLVtqeKKXm2TakG8KJGp8l koA3n1id1fCJXhFvr1sGS6F6WpEkaLt7x0rR12JboCl7W8rbrWzkWTDeXoBnMNHBOdo+ Q2ocSRKetWf0xr6umT7/ZEvsAu5GmDw23jlykDmzaUtdSylqJ7DkRNHFQ5zsmn3cBBdm YiWs8d8IvMXJyGtubqqI3TbuFQkR01jKPEktSCsm5lLbArOe/EwJD91Aq99acuitYL55 uoNQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rh27si646715ejb.52.2019.09.26.02.24.13; Thu, 26 Sep 2019 02:24:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387856AbfIYJMF (ORCPT + 99 others); Wed, 25 Sep 2019 05:12:05 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:34649 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732047AbfIYJME (ORCPT ); Wed, 25 Sep 2019 05:12:04 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 46dXPZ459qz1s1VD; Wed, 25 Sep 2019 11:12:02 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 46dXPZ3b8lz1qqkT; Wed, 25 Sep 2019 11:12:02 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 8iThIo0qh6UY; Wed, 25 Sep 2019 11:12:01 +0200 (CEST) X-Auth-Info: 4YZxQVGDFmdTAqclATY3eofxLYXXnWAyMLjj80NHdd0= Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 25 Sep 2019 11:12:01 +0200 (CEST) From: Lukasz Majewski To: Mark Brown Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, krzk@kernel.org, Lukasz Majewski Subject: [PATCH v2 0/2] spi: Fix problem with interrupted slave transmission Date: Wed, 25 Sep 2019 11:11:41 +0200 Message-Id: <20190925091143.15468-1-lukma@denx.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190924110547.14770-1-lukma@denx.de> References: <20190924110547.14770-1-lukma@denx.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series fixes problem with recovering Vybrid's NXP DSPI controller state after master transmission distortion. It was tested with a setup where /dev/spidevX.Y devices were used in a loopback mode (provided by proper HW connections). During this test the distortion was introduced and the system was assessed if it is possible to continue correct SPI transmission. This series applies clearly on v5.2 (tag) and current mainline: SHA1: 351c8a09b00b5c51c8f58b016fffe51f87e2d820 Lukasz Majewski (2): spi: Add call to spi_slave_abort() function when spidev driver is released spi: Introduce dspi_slave_abort() function for NXP's dspi SPI driver drivers/spi/spi-fsl-dspi.c | 20 ++++++++++++++++++++ drivers/spi/spidev.c | 3 +++ 2 files changed, 23 insertions(+) -- 2.20.1