Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1537900ybt; Sat, 27 Jun 2020 11:23:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAUMP/QJSV2EUD1ZB8lJkloCzYH6hj7h2FbeA1Y56CWq1pWzCjcCjSadbHQIRXNnzDHbxk X-Received: by 2002:a17:906:7d9:: with SMTP id m25mr7373709ejc.25.1593282215675; Sat, 27 Jun 2020 11:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593282215; cv=none; d=google.com; s=arc-20160816; b=NzjOsTltfj4raHSppkBSXEzG329FqR5Yt9rv2pjnv0xWs1fAYvDEVtYlndebIWv4UC M9apMOIvWaTqN2aE0ZzfT5F6O2IyoWezTGXFpmXo6fgwhorbxXTE/1D2Y3tl0zu7wHkK +WPx/d09R+bNDfhz6syihqi9maRzB6/E4uZ3+KrxXcQzxlhOjJGaYjgUa41G0zvXEHwT PMjllv+4rfUNIVsVpGALo8G0UoBTGd7Z5HVgYcoU5CF+nVlnsetR36QiAhryYbM3d3GA wkutYVU6p5dHVGqMdJc4RFzK/5E1YXYiPWB4wEzsiqRpSG14yc9APyHl78W4IlO5XZqb h3wg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wknXL/NZZBsk//od0+ACYvlDvjjEXtFODMTp/oomwis=; b=YIW7hNEdWiMD3mab1eqZIvuVyFS6Sh50mp5BeNjIaJKV6WUG+d7gFpavKJHy8rvn5u LOiFJI03+flfjYioGG0PyU+GNIy9Be+zUbd9GiCz3J7RcgzALiNHCFm2u7jhgTt5nJmT PcGRETIpssinMENs3YXj5Ce96a8WawSjsVBnSC0533qTmcw0qdHu44utJGAmQo0kB7mR XjxDvX24OCYJbpva4OuXv50FfQ+K3PpCfeFfvMRaFO/gvJgzZCpmwL/D1SasYZHhFHpg fQQ639ObTJuMin766LoolwRAKW0nLNI9ozp98axRt1k32hBN8QnWb7GO0EEmO8SMGypZ 6qMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gy42z+6c; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw13si3098177edb.135.2020.06.27.11.23.13; Sat, 27 Jun 2020 11:23:35 -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=@linaro.org header.s=google header.b=gy42z+6c; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725932AbgF0SWd (ORCPT + 99 others); Sat, 27 Jun 2020 14:22:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbgF0SWa (ORCPT ); Sat, 27 Jun 2020 14:22:30 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99ADFC061794 for ; Sat, 27 Jun 2020 11:22:30 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id r22so11802201qke.13 for ; Sat, 27 Jun 2020 11:22:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wknXL/NZZBsk//od0+ACYvlDvjjEXtFODMTp/oomwis=; b=gy42z+6cy8ul5JraOk9jo44rONTJWYOz8zCY+b1cDGhklC9x1j9JQleDZ+cDg9XKIz kOLCc87SIQaieB795ZhReKG4MCPphuoFynjteK/os1Ff9I7E33uDizZD3UmQB4rk8vUB p3ucSkV7E4bPsKeajNlQ/T66NtHKQKCePNhLfDa4jkTinDcvVk41/7hnQ/gwwBftf8At MhFNLNGvzZHPnvwyUdzdhwDbJKblAAu5vuTFlx2ogyCElXnHjMiePc2f4fe6GwVYCcDv OCn1r4Gm1EIpUvW1CXvE3DEhKg7ed6aif/tw1n8Bh1mITbsMrH8uvDMQb8KDCPJk+H93 Scsg== 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:in-reply-to:user-agent; bh=wknXL/NZZBsk//od0+ACYvlDvjjEXtFODMTp/oomwis=; b=kV++5sV2yfnAQtZ6mDFIe6kSsnHV3euIRyuRbNtKmqiGs9mDHN2ROqqbb9V8RuehPy CPvUZXmbZwb4ZUBCg2steE8aJ1gaj+lKv43jFEAfpvvOK+nmY/bsG3Ct+SRF2jfsVUj9 V01GSvH1RCp+uO9TeQmdonEsWWZbQ7oHV44l3LJ/F50ZsvY3S1VJRPf8Vb4XkPAa2jJ5 qDJZp04t5PzPfihR2G6hOlq3uFiZUhZnw6atvSMsBCtQPlWNK2dS4gJbsGwSmZPO7ikD iuUY1podQmlN623lDojIDS2LSJlct0WCVeEtuOLqzFCCxnKn701+WY5+mmEH9ZbYgcQB ngGw== X-Gm-Message-State: AOAM533wrYesi4GbKmIMQyMTqsMcxnsD9+J1yECaF3D4p3QpiguyA+a+ uvXLk85+RGKOyDZ1zZ90ITgE7g== X-Received: by 2002:a05:620a:1275:: with SMTP id b21mr8233352qkl.4.1593282149751; Sat, 27 Jun 2020 11:22:29 -0700 (PDT) Received: from localhost (rfs.netwinder.org. [206.248.184.2]) by smtp.gmail.com with ESMTPSA id q5sm10310519qtf.12.2020.06.27.11.22.28 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 27 Jun 2020 11:22:29 -0700 (PDT) Date: Sat, 27 Jun 2020 14:22:28 -0400 From: Ralph Siemsen To: Sasha Levin Cc: Serge Semin , Pavel Machek , Serge Semin , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Georgy Vlasov , Ramil Zaripov , Alexey Malahov , Thomas Bogendoerfer , Arnd Bergmann , Andy Shevchenko , Feng Tang , Rob Herring , linux-mips@vger.kernel.org, devicetree@vger.kernel.org, Mark Brown Subject: Re: [PATCH 4.19 182/267] spi: dw: Return any value retrieved from the dma_transfer callback Message-ID: <20200627182228.GA23327@maple.netwinder.org> References: <20200619141648.840376470@linuxfoundation.org> <20200619141657.498868116@linuxfoundation.org> <20200619210719.GB12233@amd> <20200622205121.4xuki7guyj6u5yul@mobilestation> <20200626151800.GA22242@maple.netwinder.org> <20200626200710.GK1931@sasha-vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200626200710.GK1931@sasha-vm> 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 Hi Sasha, On Fri, Jun 26, 2020 at 04:07:10PM -0400, Sasha Levin wrote: >On Fri, Jun 26, 2020 at 11:18:00AM -0400, Ralph Siemsen wrote: >> >>So the following patch is needed as well, at least in 4.9 and 4.19, >>I did not check/test other versions. Mainline does not need this, >>since the code seems to have been refactored to avoid the >>duplication. > >Could you add your signed-off-by tag please? :) Whoops, for some reason I snipped it out... sorry about that! Here it is again, with the commit message tweaked for clarity. Subject: [PATCH] spi: dw: Fix return value of dma_transfer callback Earlier commit "spi: dw: Return any value retrieved from the dma_transfer callback" changed the return code of mid_spi_dma_transfer() from 0 to 1 in drivers/spi/spi-dw-mid.c. A similar change is needed spi-dw-mmio.c for mmio_spi_dma_transfer() function. Note this only applies to older branches, as mainline has refactored the code to avoid duplication. Signed-off-by: Ralph Siemsen --- drivers/spi/spi-dw-mmio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c index c563c2815093..99641c485288 100644 --- a/drivers/spi/spi-dw-mmio.c +++ b/drivers/spi/spi-dw-mmio.c @@ -358,7 +358,7 @@ static int mmio_spi_dma_transfer(struct dw_spi *dws, struct spi_transfer *xfer) dma_async_issue_pending(dws->txchan); } - return 0; + return 1; } static void mmio_spi_dma_stop(struct dw_spi *dws) -- 2.17.1