Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3771248pxt; Tue, 10 Aug 2021 10:57:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeTNLcIZifbwbEE8pXOW+NdO2YIY9CkCSCN/nYHXxkb5vTofPDUgth/fLbL6b4tg9G+Df5 X-Received: by 2002:a05:6402:289b:: with SMTP id eg27mr6479589edb.90.1628618237279; Tue, 10 Aug 2021 10:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628618237; cv=none; d=google.com; s=arc-20160816; b=UNaMfQcXh+w1vG8eRjDT940TJ8k2rOVjgy3npwqBYuSPE/3wMUsEcexy2pAwK6eK85 nmYxqu5RUf2bC6rJkatwR4q5u/tORb04D4d71AcdBstEsfQrR6EM6pA9mjVRwICzr7HM hfWChkYuEcZy31Tc6MEVFFRWPZa8Asj7nt7YhoddY00yqu9qZtgRn2ispYlAuATIiUUz Hi3u7vjPKNHBEjZ0LihPYwRrEAwqXQAtCJbZ5A+eIvmPc9voX6fDRPv7BR4LGXt9xl5T lRgAMnX1857k4aPFg4sdZxSjW//SEdZJ35Q2pfIHDSoGTgCOLophZmP0k28sRJFij4rs rWLQ== 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=Fvf4s4jgAFtwDB2S7yo37S+mMkh+3jgH8dk+SMnVKc4=; b=cNw4NGQQsqll+fkMghknd+Hc8VpVd7xrsVI5zvUxe6g2xzTRMzTQ9Z2z0qZ037Bl3Q PE1RZpl918ejtulCzd0MxaOmHc5s1x3ORJwC5Ssk8uAVbfNq2fvHablaZOiDSuiHEUsZ JNYKocCP1UMD7BYNGtGI5ne0lN88lkZe0yh1Yw+ZUGw/ECDYuK08L0NpjSVHWpBG9UxT b/+VDMSoiHWxAfVHT+F3TzJD/1uwQ1kHTjf+hVIO7EfEkQnoc4XB/PSf+mhCsFmgsOHQ RphTmVoutJlFhkFe3kgFtgnVl9sr7H0o9etjwkhC6reyGzKAfWBovWuTPrXaZ8IWZm/4 vusw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PPxjmzuF; 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 h6si6647779edv.408.2021.08.10.10.56.52; Tue, 10 Aug 2021 10:57:17 -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=PPxjmzuF; 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 S233336AbhHJRzL (ORCPT + 99 others); Tue, 10 Aug 2021 13:55:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:34572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232963AbhHJRvw (ORCPT ); Tue, 10 Aug 2021 13:51:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 56F9D6120C; Tue, 10 Aug 2021 17:43:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628617392; bh=7M8VuC7WONAoQQ17jqUnyh2WQ9VBOSNr13uZmcccecY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PPxjmzuFncs0L6+rh22RyeVnJwHfXHOqYd6qWIGMNR7sg4ybq1FtU53ZfKM8ZH8cv C/0Ys8AXmsXQVD/RdKfXrzw4PPhYLCXI1Ph4tyeWwmmsljd8wRgsPTBO3Y0bTeuS3b B1Oc3eLZTK3jYDfPClzafmrVtahIO/TEKAommSHI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Juergen Borleis , Vinod Koul , Sasha Levin Subject: [PATCH 5.13 039/175] dmaengine: imx-dma: configure the generic DMA type to make it work Date: Tue, 10 Aug 2021 19:29:07 +0200 Message-Id: <20210810173002.240234894@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810173000.928681411@linuxfoundation.org> References: <20210810173000.928681411@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: Juergen Borleis [ Upstream commit 7199ddede9f0f2f68d41e6928e1c6c4bca9c39c0 ] Commit dea7a9fbb009 ("dmaengine: imx-dma: remove dma_slave_config direction usage") changes the method from a "configuration when called" to an "configuration when used". Due to this, only the cyclic DMA type gets configured correctly, while the generic DMA type is left non-configured. Without this additional call, the struct imxdma_channel::word_size member is stuck at DMA_SLAVE_BUSWIDTH_UNDEFINED and imxdma_prep_slave_sg() always returns NULL. Signed-off-by: Juergen Borleis Fixes: dea7a9fbb009 ("dmaengine: imx-dma: remove dma_slave_config direction usage") Link: https://lore.kernel.org/r/20210729071821.9857-1-jbe@pengutronix.de Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/imx-dma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index 7f116bbcfad2..2ddc31e64db0 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c @@ -812,6 +812,8 @@ static struct dma_async_tx_descriptor *imxdma_prep_slave_sg( dma_length += sg_dma_len(sg); } + imxdma_config_write(chan, &imxdmac->config, direction); + switch (imxdmac->word_size) { case DMA_SLAVE_BUSWIDTH_4_BYTES: if (sg_dma_len(sgl) & 3 || sgl->dma_address & 3) -- 2.30.2