Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2057189pxk; Mon, 14 Sep 2020 03:45:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGV6eKf+nf/GY0AQm/f3fBnqO+Bz4Ol0/+VrqbJPOEJnboKbmE+3/Glay3h9tk36KRo2TC X-Received: by 2002:a17:907:2456:: with SMTP id yw22mr13635864ejb.337.1600080331545; Mon, 14 Sep 2020 03:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600080331; cv=none; d=google.com; s=arc-20160816; b=hzKh1KJhpXVGVQ55Xa1WzIj7Uc9Tk5+/n7wgSw5mdMdk67KTjao3P2+XkEM//s05yi igqIWK5u4mhKIuXMKOHXdWjZ9OKV7tu8TmCjIF2furcok7DjMxhltuWhmNJgdERUqntK l5gKYqNR7oaTzCEOOasnXQZIbj8DwjDdj5N1M5KsVUkzkjaKjeYBg+dlkbBjUIVRPSog 0rfnefIlx08rg+lEm++2CwvzCRg+s/2eSTGvWjRsgmMtqgj4Qzf//kk51B6X6r+JdAnz hspkCCTBbciV1Ji8MH9iS7JmZYa8HgZWiFqjweujVkTHy5EQswIc8+6lW3NQKefbuoy5 4PAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QqiALWQWqzk3v5Egngf7/oNah0zdhttVToTd3Q1YPvQ=; b=szcF1iLyUyhWhAdXCWlEqbO9SKV68vUELsrYr407+iBbkSUx2gCl4/LkzJWU6OUEKy zktltxx2Izvru3SkxwcA2ff2WrWzp4WcYNmAaLhzhHcIbQvdt8I3Qp+K0znyLfyv6PaA yG2IhD6XIG7Qns8W/EIi5Muk7mwYUiF40WD4K+0O+e1yP91Q2RfR4AVqQ9S44P88iyYe Z1rOUTuqw5pDqp7kM6M1znZrxvrvCKLMyzFOJ8zCDw147HpXH8pljT1R9HJ5KisR1I3q Pt9vCS6+e7apIdxm22H2R2BrfB6QWEqYO+EVmCDpsRWJ/1m85xEm+IcevOHA2CiWuc4T 8mtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dh-electronics.com header.s=dhelectronicscom header.b=tkjqpb1o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=dh-electronics.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mj21si6770047ejb.271.2020.09.14.03.45.09; Mon, 14 Sep 2020 03:45:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@dh-electronics.com header.s=dhelectronicscom header.b=tkjqpb1o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=dh-electronics.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726490AbgINKlY (ORCPT + 99 others); Mon, 14 Sep 2020 06:41:24 -0400 Received: from mx2.securetransport.de ([188.68.39.254]:47616 "EHLO mx2.securetransport.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726449AbgINKka (ORCPT ); Mon, 14 Sep 2020 06:40:30 -0400 X-Greylist: delayed 384 seconds by postgrey-1.27 at vger.kernel.org; Mon, 14 Sep 2020 06:40:26 EDT Received: from mail.dh-electronics.com (business-24-134-97-169.pool2.vodafone-ip.de [24.134.97.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.securetransport.de (Postfix) with ESMTPSA id 4025B5E879; Mon, 14 Sep 2020 12:33:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dh-electronics.com; s=dhelectronicscom; t=1600079597; bh=QqiALWQWqzk3v5Egngf7/oNah0zdhttVToTd3Q1YPvQ=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=tkjqpb1o8Of4A2fKxnLJoTJGfj3Sgr2FaVttqYfn6gwrqcAPlozgl5MpScJ/8J7vb +F7vh1Z/4Il6S6ICqH668xixkwxizgft4T0+gSpEITbuEROGQiU/OVmSrGh4CX1Msm 9Twyh5t3llDHa3qPPhy+Doy49mMQ+1TU82yDjNz+uFmAzB/ZUPXs2zaaLjUYn0kIID BLbQDu3+iXvqwd+7hBQINr5Agq35uSPcJWt1VqkeB0r66OMlUsDVUomW1UhmeXDU4u 7usFuA7bMc7yy7Imb/9Ne2T4JGI69wb1suEW9Un+ec3f5fbFkiwzDElqHKVJclP0R0 O3NI5qCowHLqA== Received: from DHPWEX01.DH-ELECTRONICS.ORG (2001:470:76a7:2::30) by DHPWEX01.DH-ELECTRONICS.ORG (2001:470:76a7:2::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.659.4; Mon, 14 Sep 2020 12:33:10 +0200 Received: from deb10-lzenz.dh-electronics.org (10.64.6.180) by DHPWEX01.DH-ELECTRONICS.ORG (10.64.2.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.659.4 via Frontend Transport; Mon, 14 Sep 2020 12:33:10 +0200 From: Ludwig Zenz To: CC: , , , , , , , , , Subject: [PATCH v2 2/5] spi: stm32: fix fifo threshold level in case of short transfer Date: Mon, 14 Sep 2020 12:33:00 +0200 Message-ID: <20200914103300.5832-1-lzenz@dh-electronics.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <1597043558-29668-3-git-send-email-alain.volmat@st.com> References: <1597043558-29668-3-git-send-email-alain.volmat@st.com> MIME-Version: 1.0 X-klartext: yes Content-Transfer-Encoding: 8bit Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > When transfer is shorter than half of the fifo, set the data packet size > up to transfer size instead of up to half of the fifo. > Check also that threshold is set at least to 1 data frame. Through a git-bisect we have identified this patch as problematic. We have an application that uses a SPI protocol with telegrams of length 2 to 16 bytes. Due to this patch we have errors in the data transfer of the MOSI direction. We use SPI in PIO mode. Please explain what this patch should improve or what exactly is changed in the behaviour. best regards, Ludwig Zenz