Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp926685pxa; Sat, 22 Aug 2020 05:02:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBpw4eaPk/mjtytnsAc2YAjCll5pQJLiAljCzz8D8PAepREyT7Nr9QiOsDlqQkUI3N65v8 X-Received: by 2002:a17:906:f905:: with SMTP id lc5mr6846184ejb.340.1598097777679; Sat, 22 Aug 2020 05:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598097777; cv=none; d=google.com; s=arc-20160816; b=IiZlqndqOKih54EpQLdi1dRJLhqquEjYij2topNNpx1UzmGOuGQ2NoTtXvxHR0cSJe HI6Ll16e39Q+g1XiwY4Kt7VIPpxXZzD+8Y0ICUnDog+6vU4mw2yZF+pYC2MoXPLybPeZ /P+jW78Ft7rb+PE7qgQ68Bwy0CgLblm5C8H/zp9i7Qgk257Hv+3oEUg5h7XcWzidUJGh YpP+Yhh4hre1mQzF1994Gz9yM5rc22NB+6tfJSJbuxibQt+rNzK5fyDrePVvdtnUYyV3 /aTXPFgAfWF6q0yEHM/DWOE6qaa9j/TRsyH77Bv6k7xBqWmxjyEM0gau8Ws2YhoO1ujS w6mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=7D5HCsxnuwVxKlDYuzZFtI4H+eau1QTo0ZS/u42OThE=; b=yE+1g8HjIb+Na4eTcN3hxYKJJMXMDjeMPFqvgVuDeFaHv5Ohsq/JFSWMNP3PZcqf3U dfATU+pRVxQcj1jLu1AOUbf2yekm5l5ObQ6Vdbfu9/CLZZ9kuOosMjjORLFRWc+TCLGL /kKz30VtJY/LZtfwefmyruIsrh40441UB7uV8CIp/VV18ZbB/OErMDIMjmfVQ3SamAyU yLKsxlYZt3aAyafKmHu4oe2lx4k+3rSoziOwiTji4QnbTQD0DcJo8OmJwIOtivx58svl DAW0HaRtG2xWnPInLBVNe6lc10V7DrpOxoPJ0zNAYsYQDv2ix6PIn6mWlXa3qsTuFbsy spxw== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e11si3154034ejc.49.2020.08.22.05.02.32; Sat, 22 Aug 2020 05:02:57 -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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727907AbgHVMB2 convert rfc822-to-8bit (ORCPT + 99 others); Sat, 22 Aug 2020 08:01:28 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:52642 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726704AbgHVMB0 (ORCPT ); Sat, 22 Aug 2020 08:01:26 -0400 Received: by mail-wm1-f65.google.com with SMTP id x5so4172362wmi.2; Sat, 22 Aug 2020 05:01:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=bPouFZMIl7dlHwQoDaxlb/Nq4wtVCEDrmFr3ebXaAIM=; b=l9gzW/BWHb8fmrsHN4ZkWsslyiB6i73egwzcGCrvzZEzBj0DZXnVnacONUbvDjpE74 fzFaT1DUgwcbk3ziLnLXHCpCXySNj0h74Og9QtUS8rocUDJnx9ssR8TwpsZT04QpMp93 8kyyIaVhGIgTga+WoKrzmDzcryGIaPuqJYZ6ufb0m4dlpsCRWjzSalN7uXWuwnEwhCJ3 ZFvXZ3ePtDj0SZ0I+y4lC0ELLEk7pe11L7YKO3q5/5braxHzllOLYUQ0WQVCdcVatKsg J5M8+Jlz8ZJ9vXGFIUlXRZHPYU8Y/VSMzCP+X49eUMNYZ2teqYwOOGS12tm4vh3cZAf7 3Gcw== X-Gm-Message-State: AOAM531OSkGIzv5Y4XIdwvbUPbS12X2nJUoNHCo/Pr5wtlFXy4AgG0lI R9keu5ouQhhZy4L/kT6lh6I= X-Received: by 2002:a05:600c:2d1:: with SMTP id 17mr7391901wmn.15.1598097683955; Sat, 22 Aug 2020 05:01:23 -0700 (PDT) Received: from kozik-lap ([194.230.155.216]) by smtp.googlemail.com with ESMTPSA id t14sm10442478wrv.14.2020.08.22.05.01.22 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 22 Aug 2020 05:01:23 -0700 (PDT) Date: Sat, 22 Aug 2020 14:01:21 +0200 From: Krzysztof Kozlowski To: =?utf-8?Q?=C5=81ukasz?= Stelmach Cc: Kukjin Kim , Andi Shyti , Mark Brown , linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, m.szyprowski@samsung.com, b.zolnierkie@samsung.com Subject: Re: [PATCH v2 1/9] spi: spi-s3c64xx: swap s3c64xx_spi_set_cs() and s3c64xx_enable_datapath() Message-ID: <20200822120121.GA20423@kozik-lap> References: <20200821161401.11307-1-l.stelmach@samsung.com> <20200821161401.11307-2-l.stelmach@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <20200821161401.11307-2-l.stelmach@samsung.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 21, 2020 at 06:13:53PM +0200, Łukasz Stelmach wrote: > This and the next patch fix issues with DMA transfers bigger than Just: "Fix issues with DMA transfers..." The order of patches could change when applying and backporting. Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof > 512 bytes on Exynos3250. Without the patches such transfers fail > to complete. This solution to the problem is found in the vendor kernel > for ARTIK5 boards based on Exynos3250. > > Signed-off-by: Łukasz Stelmach > --- > drivers/spi/spi-s3c64xx.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c > index 924b24441789..26c7cb79cd78 100644 > --- a/drivers/spi/spi-s3c64xx.c > +++ b/drivers/spi/spi-s3c64xx.c > @@ -685,11 +685,11 @@ static int s3c64xx_spi_transfer_one(struct spi_master *master, > sdd->state &= ~RXBUSY; > sdd->state &= ~TXBUSY; > > - s3c64xx_enable_datapath(sdd, xfer, use_dma); > - > /* Start the signals */ > s3c64xx_spi_set_cs(spi, true); > > + s3c64xx_enable_datapath(sdd, xfer, use_dma); > + > spin_unlock_irqrestore(&sdd->lock, flags); > > if (use_dma) > -- > 2.26.2 >