Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3296374pxk; Mon, 21 Sep 2020 09:58:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpAaTUND2h5kmYL0/NyrsaCOAAsFD9FqMOaXfKuXL+gXnDweOy4WQeNXYfrhYbCulBBpfL X-Received: by 2002:a17:906:580a:: with SMTP id m10mr405086ejq.200.1600707487923; Mon, 21 Sep 2020 09:58:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600707487; cv=none; d=google.com; s=arc-20160816; b=sFhDk0K0DN3oNHIaTkv4Rkl7VwS1Q30i7Du6Akgz99LGfw9h1sQvjELwrVdhUmzeDH eQOawbYkr2VtrNEkEgoRbNGos6Jaol9eY/I9QNJkFaO/u+Sr8fJ4KHafvC+OQZi1gu1J qR9GGCAxCyhzy6i4lgL0yAuB0Xgrk0XHdF0S8SkpjlsWbrb9sDRwb9u6cuDnrJ75ZCcc /q4ElPauWDL393j0vwFkbgOck25igzeGVJJ39FAFGKbDrkDWg+Oi3MSqcqHkzgOQxksa PX7D0h66YWOYGR0AO8adTD2kwHiTtFZ6lOr+RAPh/YbgtFaVr3sK6L/eI9G0PJ1BBJZd j5SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Aaf/gKLt4P8g5iOu7JzCmUMdz56bOyh1aU8bbD+LQ4w=; b=LBBwXg1O3X9+xf8RwfaQVhstQxUl80GlGaeu1hh5PmXjZPO+tecq8ZqGkm/JYHS0rK vtB01RDJUawaqn76bgdTg34Z3+AChYdbr+JXmaEuz69pd8Fr1ummuevgnHl9g6ANIaCg zsvMkeUv5rN4WE9k+G8t5XTmupsSIfTzn2lBBkadGEHdFmK8QejHbtec3ow9PJG4H1QI 5ESxZUBPTlIg0wTtZ5xemYl3K+AnYIQmSdyX5NzX5t9zxHvlH5S6HZgPZCHVgA4dd/Px /vIzXqXfj7UccEPFoyMgoqV0FTphPFWKzuEMF/M22qfYP/XarIHedmn88OquorjOcIt1 ZplQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="wJ/9O5MT"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r14si9110914eja.660.2020.09.21.09.57.44; Mon, 21 Sep 2020 09:58:07 -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="wJ/9O5MT"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729852AbgIUQzf (ORCPT + 99 others); Mon, 21 Sep 2020 12:55:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:51840 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728499AbgIUQpq (ORCPT ); Mon, 21 Sep 2020 12:45:46 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 0E9F12076B; Mon, 21 Sep 2020 16:45:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600706745; bh=01FOSVUIKtoPwtawvW+LsvkhTRWitElIkyvsuL3mOto=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wJ/9O5MT2TJToGSHMEf+2GIQjPMH2JztgdXIOBf9tBaZO42efFo51LkbbqU7V4XHu dHWpMiP4lItWT72XzFpE1ZxDi0xfH9YCbSMlp1cW+fd+gtmBh9zdP2TCgewG+At5MC QXotQIggzdXvO35NNV9iWPMmw5LtCVymU2buWJJU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthias Schiffer , Fabio Estevam , Wolfram Sang , Sasha Levin Subject: [PATCH 5.8 077/118] i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK Date: Mon, 21 Sep 2020 18:28:09 +0200 Message-Id: <20200921162039.912352609@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921162036.324813383@linuxfoundation.org> References: <20200921162036.324813383@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthias Schiffer [ Upstream commit 6eb158ec0a45dbfd98bc6971c461b7d4d5bf61b3 ] The driver-specific usage of the DMA_CTRL_ACK flag was replaced with a custom flag in commit ceeeb99cd821 ("dmaengine: mxs: rename custom flag"), but i2c-mxs was not updated to use the new flag, completely breaking I2C transactions using DMA. Fixes: ceeeb99cd821 ("dmaengine: mxs: rename custom flag") Signed-off-by: Matthias Schiffer Reviewed-by: Fabio Estevam Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- drivers/i2c/busses/i2c-mxs.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c index 9587347447f0f..c4b08a9244614 100644 --- a/drivers/i2c/busses/i2c-mxs.c +++ b/drivers/i2c/busses/i2c-mxs.c @@ -25,6 +25,7 @@ #include #include #include +#include #define DRIVER_NAME "mxs-i2c" @@ -200,7 +201,8 @@ static int mxs_i2c_dma_setup_xfer(struct i2c_adapter *adap, dma_map_sg(i2c->dev, &i2c->sg_io[0], 1, DMA_TO_DEVICE); desc = dmaengine_prep_slave_sg(i2c->dmach, &i2c->sg_io[0], 1, DMA_MEM_TO_DEV, - DMA_PREP_INTERRUPT | DMA_CTRL_ACK); + DMA_PREP_INTERRUPT | + MXS_DMA_CTRL_WAIT4END); if (!desc) { dev_err(i2c->dev, "Failed to get DMA data write descriptor.\n"); @@ -228,7 +230,8 @@ static int mxs_i2c_dma_setup_xfer(struct i2c_adapter *adap, dma_map_sg(i2c->dev, &i2c->sg_io[1], 1, DMA_FROM_DEVICE); desc = dmaengine_prep_slave_sg(i2c->dmach, &i2c->sg_io[1], 1, DMA_DEV_TO_MEM, - DMA_PREP_INTERRUPT | DMA_CTRL_ACK); + DMA_PREP_INTERRUPT | + MXS_DMA_CTRL_WAIT4END); if (!desc) { dev_err(i2c->dev, "Failed to get DMA data write descriptor.\n"); @@ -260,7 +263,8 @@ static int mxs_i2c_dma_setup_xfer(struct i2c_adapter *adap, dma_map_sg(i2c->dev, i2c->sg_io, 2, DMA_TO_DEVICE); desc = dmaengine_prep_slave_sg(i2c->dmach, i2c->sg_io, 2, DMA_MEM_TO_DEV, - DMA_PREP_INTERRUPT | DMA_CTRL_ACK); + DMA_PREP_INTERRUPT | + MXS_DMA_CTRL_WAIT4END); if (!desc) { dev_err(i2c->dev, "Failed to get DMA data write descriptor.\n"); -- 2.25.1