Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1689176pxb; Thu, 16 Sep 2021 13:03:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9yQmxQ9ZFtWHAexAi+NcGcCsQJyeKxM3xHlWy6LV2QT4cQPlQEx6bIeKGvNgGpql7iN4I X-Received: by 2002:a6b:6a13:: with SMTP id x19mr5832125iog.111.1631822586258; Thu, 16 Sep 2021 13:03:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631822586; cv=none; d=google.com; s=arc-20160816; b=zMUiCULpQkYJPHxw8uQ5tQIGtAdK4dQI5lZVz25Zo68snuqWCciKLKwc8cVZFBTrTY 3EbgyyMDBt4NjofekDhRDnfCzoupQvxEPOMtAbc0OtXhDAnJA2kZQyLsJsqZjyrkXVjM H37+wkdwAHSHvOilWiBDAswRjpOoIrhDYRLvObEHSZZ+RbqgCsExJYVDfVlRy6Wnk68v qbydgTMkx74a4gXEu3S2mFOLyAz+e+gA50zt1EG/plQbsCxOeJLXIv2/lBOp88qsQdMJ hLKF0BVfoFwlxZ/di8XmnzIxDQKBh3dFjIYZ6j3oVT/e2fH4T0WTlx2BGt8bZ5TRWmym qHsg== 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=lpBKeu5S0Eh9tncWswUd7R2UgcoxqqVX+r4dln+V7xc=; b=ansV1Y0sYjRuP12iG1TciWx4mYfTtGLQhLsFkYNR1TuIqa2xWaJ76PlSVPm1NJVrLB CJePr8U1HlfwUpqTlroxJ/jJY0tlNV4qwAy6GgqOtqZk4m45Ni1MLZZFqtuDayHxTyfV 7FGcsJAccII+MJOoJT9xqMw4oIaciXlLUsExTGq6TSq8xbljPeNUfuQrMUmToQ6ozIfd bKdH4C3iFbf8/1g5O0Yggtvwuoeu1UyH6Rwx2R2oQSc97Ge15eJbblqSl3EgkeaNdS6+ hq877Lm49rRScadbhp279cp6zW90kNFkFm5qm2eEdo7eLhCDJwAvRmzMUFHd/8bqhNfm 7vHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="R26fV/aG"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si4041768jat.67.2021.09.16.13.02.51; Thu, 16 Sep 2021 13:03:06 -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=@linuxfoundation.org header.s=korg header.b="R26fV/aG"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232965AbhIPQJT (ORCPT + 99 others); Thu, 16 Sep 2021 12:09:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:45330 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237228AbhIPQGc (ORCPT ); Thu, 16 Sep 2021 12:06:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 31D8861251; Thu, 16 Sep 2021 16:05:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808311; bh=ZcE/hCQAgfUgOAuFEZQBPgaiJw08zySPIZ7+L9pvtcU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R26fV/aGKEVO5IaS/3ZcNBc1BOT4FJSp5rfa0bPeebQyOOc8PegQubc0PSaaCqaTD hoL6LD9CLE1M5vw+5hS2/SZldf63r1pm1GflRaJKz2C67zEcQX5ndIk9AedFsXZ0Pr gCwAF9cn6J14uzSQSkNPnRlMabz7VSkIL1v1w0PY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Robin Gong , Vinod Koul , Richard Leitner , Shawn Guo Subject: [PATCH 5.10 042/306] dmaengine: imx-sdma: remove duplicated sdma_load_context Date: Thu, 16 Sep 2021 17:56:27 +0200 Message-Id: <20210916155755.379783081@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@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: Robin Gong commit e555a03b112838883fdd8185d613c35d043732f2 upstream. Since sdma_transfer_init() will do sdma_load_context before any sdma transfer, no need once more in sdma_config_channel(). Fixes: ad0d92d7ba6a ("dmaengine: imx-sdma: refine to load context only once") Cc: Signed-off-by: Robin Gong Acked-by: Vinod Koul Tested-by: Richard Leitner Signed-off-by: Shawn Guo Signed-off-by: Greg Kroah-Hartman --- drivers/dma/imx-sdma.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -1138,7 +1138,6 @@ static void sdma_set_watermarklevel_for_ static int sdma_config_channel(struct dma_chan *chan) { struct sdma_channel *sdmac = to_sdma_chan(chan); - int ret; sdma_disable_channel(chan); @@ -1178,9 +1177,7 @@ static int sdma_config_channel(struct dm sdmac->watermark_level = 0; /* FIXME: M3_BASE_ADDRESS */ } - ret = sdma_load_context(sdmac); - - return ret; + return 0; } static int sdma_set_channel_priority(struct sdma_channel *sdmac,