Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp855291ybt; Fri, 26 Jun 2020 13:14:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxetalC8P2wTv+A4BdvaCNZ0khwewBHP0ldEaMfIzmi02gLOYrXP67a3ZcJ3xbbbJ7FbWhK X-Received: by 2002:a17:906:6441:: with SMTP id l1mr3948311ejn.169.1593202456314; Fri, 26 Jun 2020 13:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593202456; cv=none; d=google.com; s=arc-20160816; b=CigdrIomH+JgN8mO+rJW+N/1X3ttnD3pBgVUIabuXEg9Es/p1MkUcbsXi/OtP4jDcc nsJKNLWD/Y1T1HTLI1xUD8+90BK+gA/GZucI/KL9yHEVpu37BuvXp7pI7KOv2vWwApfS R+nP1htSC0tMnRR3v6mZ6/27pxChgK1DuRKch8mC2LtoT2RBNJhvbfPLEG4weOwexbYf dIQZB3rG5CZbnQEZYKemujY/rfEh0WbgeRG8d8x6XnmTL2j79aWNjyutgVGxDkCd7IK8 yXzig/glcNNLdh9zscRXdXL2yABuplLmMf4E/Il5Ieyfrc5OvbyUwm3A9VBHap098Bbs fupw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=05P7wOxSxUF3LN2bf3GERiHXvhBvlaiOZ2nNna2/p0U=; b=CALidihVzLhdcx36JAYIbRoVJEMKXO3NoiJAU9tfz1I0a2VNox2OTVJLijAPuE8rYP WIpdnM9ProvH6MP+K5nn0plNs/xlHKpYNb0KVJFgT3JjJjegKTpKS6v5glUv3Tfo7kLq M0QNxiNMFOIOsfqq0dAjClmitmcEgSNmFuWUW6QWkJejK/BgGytyZ3Vk/VShRwzpmP/A /w2vJIuNeORirxb00qitAUjjYUG0KSGKfElaZh7ygrQs//mO1Lv1nPOhuXQE9smu4HO9 Yi2AGQKHUYMDcFU4lF2rvYAxN4uRkLg/cK/9GNFX1y/FtVZiKZMZlgQzxsES6+zjymfP ORCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=obzLXtBT; 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 h1si17099750edq.86.2020.06.26.13.13.53; Fri, 26 Jun 2020 13:14:16 -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=@kernel.org header.s=default header.b=obzLXtBT; 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 S1725934AbgFZUHN (ORCPT + 99 others); Fri, 26 Jun 2020 16:07:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:46088 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725806AbgFZUHM (ORCPT ); Fri, 26 Jun 2020 16:07:12 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 058C8206C3; Fri, 26 Jun 2020 20:07:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593202032; bh=4oOD88XtGZC/uNbNT6wOOaDIgm3VB5umJpU7EFUTnZU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=obzLXtBTVJJGSeD0cbiCHxDtXmWB/hH2sZPMR14C2iGv+nabdMnUhC/p+gsX3vzpb DRB7pEDj2buzXO6nXa8YiLcW4x6TMxuNaz7hDeb1bYxuyZ6m4QyyrLWFTEgVH8/cAk 1O3qQ4wXoWWBgv7oVCTJoTnL+YCkuF4EttpdzthU= Date: Fri, 26 Jun 2020 16:07:10 -0400 From: Sasha Levin To: Ralph Siemsen 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: <20200626200710.GK1931@sasha-vm> References: <20200619141648.840376470@linuxfoundation.org> <20200619141657.498868116@linuxfoundation.org> <20200619210719.GB12233@amd> <20200622205121.4xuki7guyj6u5yul@mobilestation> <20200626151800.GA22242@maple.netwinder.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200626151800.GA22242@maple.netwinder.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 26, 2020 at 11:18:00AM -0400, Ralph Siemsen wrote: >Hi Serge, Pavel, Greg, > >On Mon, Jun 22, 2020 at 11:51:21PM +0300, Serge Semin wrote: >>Hello Pavel >> >>On Fri, Jun 19, 2020 at 11:07:19PM +0200, Pavel Machek wrote: >> >>>Mainline patch simply changes return value, but code is different in >>>v4.19, and poll_transfer will now be avoided when dws->dma_mapped. Is >>>that a problem? >> >>Actually no.) In that old 4.19 context it's even better to return straight away >>no matter what value is returned by the dma_transfer() callback. > >This patch changes the return dma_transfer return value from 0 to 1, >however it was only done in spi-dw-mid.c func mid_spi_dma_transfer(). > >There is an identical function in spi-dw-mmio.c that needs the same >treatment, otherwise access to the SPI device becomes erratic and even >causes kernel to hang. Guess how I found this ;-) > >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? :) -- Thanks, Sasha