Message ID | 035654558b82bc26ee78a815cc9287e478baac92.1555330115.git.baolin.wang@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp2850117jan; Mon, 15 Apr 2019 05:15:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTECk2P/hejv6JIbRHaHr/mCbkMSvcqrqjh9yqpkxQE+jbMK17739yeJ+k+prVrxq7zqBO X-Received: by 2002:a17:902:b58e:: with SMTP id a14mr45824393pls.44.1555330527399; Mon, 15 Apr 2019 05:15:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555330527; cv=none; d=google.com; s=arc-20160816; b=FVTCWZZObX0vcTvvt23o5pbNOTYu6v0+OxUXbBRveRZDKbCfVw+ZxGqigGocXcy3Jf mjHJbrBim7/N3VQyMpUn7dTRx3AW2P4CftSK2UV79oZrWJ/D8wTMDs+9pzvhm6hkWSc1 LD37WASfv6CY4sYOiHKj5pfsJuMYR7sQLwgyGDP0BUC+0nA5+lZb709eJstvWELkOgJO HOManeqnadt4Flz3E0E3gffoDT7ldn+TZH5o3hB01ODkyFgOWkCwGUzlPdDjzFw322Kz M+uuqG3Hp32DvnueXk1zsaiyLTHZ6dLuup85xJCRLujP1VHZgGFF0gBq3IeJz/XSENfk ZJ2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=l9ir60nNJwBbII3Z7YfygeQjey9MNonvD8+mCs5l+c4=; b=0nET4TGoUmghKw3hArKqAn26C6hVfDcqVamj8s3K+/YZLovHUQBq16gkXIfRTyEFpq i0JI0YaIPPQM85Lp7ven7lwN549RJcjTDvB8kF0O4/n8OMlMotRi9RFWwQAeAijF0n17 aMkxorbc9t6piqxxxwWhsjgzEHIFY6m+IUj7TXyNgsPOZY6gMq7bf6TsfjdSMK+M4NlZ T83TerRr2N+/yK0cNqlY8hWxrSCc1BSNS+ex0rK4zOFY6KDCYDYhTlmITLN+VLaqtR3G DdzmpBCMOSW4OhRsjnHJhJdnnKP1Y2aAak+d9RaPkTiU8nh62Tq3pKlAQbrTv5w4+jEB 0Brw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XZ3GWmt1; spf=pass (google.com: best guess record for domain of dmaengine-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=dmaengine-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <dmaengine-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 11si36430758pla.316.2019.04.15.05.15.27; Mon, 15 Apr 2019 05:15:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dmaengine-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XZ3GWmt1; spf=pass (google.com: best guess record for domain of dmaengine-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=dmaengine-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 S1727335AbfDOMP0 (ORCPT <rfc822;patch@linaro.org> + 3 others); Mon, 15 Apr 2019 08:15:26 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:44552 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727482AbfDOMP0 (ORCPT <rfc822; dmaengine@vger.kernel.org>); Mon, 15 Apr 2019 08:15:26 -0400 Received: by mail-pg1-f195.google.com with SMTP id i2so8481425pgj.11 for <dmaengine@vger.kernel.org>; Mon, 15 Apr 2019 05:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=l9ir60nNJwBbII3Z7YfygeQjey9MNonvD8+mCs5l+c4=; b=XZ3GWmt1mWC7qqDk0CPUMjbeP75BO7JsbiGnDALS1fBKvH9BaB8hWahTFAEy+c4eNd bwLKGTd3LrMkmeBsQ4r81KbvlCg4JPSsx3nPRGh29o4erxiT+uTL4DJ0Yl+J1JG0pmWV UROk08EZ3klQ2fO6BBKeLCN+dladovWVISj58XT/H0kjpcXZPMJZ0Nv/4DEpUU5b6jd4 ACocZm20dVGjbONsv8C7eLZZve99otr8o6wQDye6PjU8/eucZhH/oNQqVmCkr0Fc9YWA +mMpDMi4f6QzajlBm23N/sz1qZ39Lf2doqpQN5upgUdgSWlrEvbjM2VDL2I8dNC0aEd9 QuPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=l9ir60nNJwBbII3Z7YfygeQjey9MNonvD8+mCs5l+c4=; b=KOT5ZNdlD3jAU9Q25OztRzfGs+Yaub4pXNYSWtkyQSR8jBdBBUaI213mjxnsc8zVt9 Lh/3Xki3aDQkZobjXKs4VH386oACOBuz0ICRixeMIlkzUCs+n7+2jh0T/6fDJdwcJm+T Mpod6ne/2gcnGZf2GuzFDLPWdrVzKJcXj8sXLKq2MH+5q3NGrw8IE+pC3cOm+LS6IKEo /EJyMVqr0xhppHEHLWAuBMdE8hnW907e/8pmDJxRlX/fVz7X127p/Z22fdg98yA4HQAh em+BN3/34qvUJzzqtbMpMq1DTiNPRAPzZHxCFgPtj64WVibbALvoDw8Pu0TjiZQxkFx9 CnWA== X-Gm-Message-State: APjAAAVwhERm8Rwnh3XAvLNyDcQXGWwXDS+vpCXhMWNJvkSNLyDUK6Af fls1iOK1LpjkilnAUK6ay1XpLg== X-Received: by 2002:a62:62c3:: with SMTP id w186mr42971295pfb.73.1555330525672; Mon, 15 Apr 2019 05:15:25 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id 6sm64157155pfj.95.2019.04.15.05.15.22 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Apr 2019 05:15:24 -0700 (PDT) From: Baolin Wang <baolin.wang@linaro.org> To: dan.j.williams@intel.com, vkoul@kernel.org Cc: eric.long@unisoc.com, orsonzhai@gmail.com, zhang.lyra@gmail.com, broonie@kernel.org, baolin.wang@linaro.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/7] dmaengine: sprd: Fix the incorrect start for 2-stage destination channels Date: Mon, 15 Apr 2019 20:14:57 +0800 Message-Id: <035654558b82bc26ee78a815cc9287e478baac92.1555330115.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <cover.1555330115.git.baolin.wang@linaro.org> References: <cover.1555330115.git.baolin.wang@linaro.org> In-Reply-To: <cover.1555330115.git.baolin.wang@linaro.org> References: <cover.1555330115.git.baolin.wang@linaro.org> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: <dmaengine.vger.kernel.org> X-Mailing-List: dmaengine@vger.kernel.org |
Series |
Fix some bugs and add new feature for Spreadtrum DMA engine
|
expand
|
diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 431e289..0f92e60 100644 --- a/drivers/dma/sprd-dma.c +++ b/drivers/dma/sprd-dma.c @@ -510,7 +510,9 @@ static void sprd_dma_start(struct sprd_dma_chn *schan) sprd_dma_set_uid(schan); sprd_dma_enable_chn(schan); - if (schan->dev_id == SPRD_DMA_SOFTWARE_UID) + if (schan->dev_id == SPRD_DMA_SOFTWARE_UID && + schan->chn_mode != SPRD_DMA_DST_CHN0 && + schan->chn_mode != SPRD_DMA_DST_CHN1) sprd_dma_soft_request(schan); }