From patchwork Mon Nov 22 22:22:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 519305 Delivered-To: patch@linaro.org Received: by 2002:ac0:c605:0:0:0:0:0 with SMTP id p5csp7681443imj; Mon, 22 Nov 2021 14:23:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWxVnD80KElCb9G8h60dUaLYLRKCNA4xO9248gkWG39BGYHI6LvSEWSgm5neC5FWJOwoLu X-Received: by 2002:a17:90a:fd96:: with SMTP id cx22mr264136pjb.151.1637619818987; Mon, 22 Nov 2021 14:23:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637619818; cv=none; d=google.com; s=arc-20160816; b=D66tde2lIbrxmqCFY9ySlGB0qC8rQ/+LUf/Wf+OuOIBeLN3gjdcGrYvW85IMsfebyR 84gy64JFv/Ba4KDnyg0LVLHawLQ7yHNy1qczEEzNa7kxJFgN8nOroxczwB7HeWuLKxYf 818/0zCNALUJtHUIOMPj688awVI/dox+LSIpt3IH3VkZyLrAxXvF5ixmTJ89Ak7TE3zP dskXohUAlV1GIvuMFAzstTCiLKuv5FfsR2CByFwkfrmdsaQJCBR6k73hfnTQg6ty2NZ1 BTLr85VrjtJdLLTwEfokm4lltCJCERUqf09m2XzN/RQViyaqgzoRJbdQcoV01CdxGpWJ 2dOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=ijE4mOdd9ONb+KUEZz7fhTfIxozdnbhNnhuQ330VVH0=; b=zCQfwc+FeijVH/VUxd3nEqGTNVGQCcvkrLvUFccm9g+6CE6z50SDDVHqWnxD9KZU9M E4MgpsLH2A9OezTnR7SNxtMcVu71obk0xpSU0KY31g2Hjej8x6IxlP9WM9AJcIm+EV3z L0qQhrr/HSbQMww018CSDGPtt/1tJQMzmjRl58j6H+pov4SSjt8ZrgsUb7bbiTCFELKv ichvcUL8QzNDMobtZkxvjoSPfq4AxyTYDmapwVlS5oiBBOeqHwGUJ0FAoae2oBFopIme 02AtJJnIvkaz9i4IEWFD3HThvIj8FBWlci24JfaRmtL6A16KkmCkCunCNjvmId7n5ym2 HuUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=U8NP1Zc1; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id hk16si27735311pjb.114.2021.11.22.14.23.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Nov 2021 14:23:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=U8NP1Zc1; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 15A5889EAE; Mon, 22 Nov 2021 22:23:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by gabe.freedesktop.org (Postfix) with ESMTPS id C25DF89EAE for ; Mon, 22 Nov 2021 22:23:37 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 8354861078; Mon, 22 Nov 2021 22:23:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1637619817; bh=efjqB8lclC/CTZtvxidalnRW6k3GNlgXbza8zFiCoZM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U8NP1Zc1gLJF725LnCrWHgavWOnwK2Ly1UnDTKcbTcdYbgu+miYfDh7Q5MZ9ByoyK GvjVX6mKNAxeCgehUkVbusSV4QnRfJUYbwPUXViEyL36MN8wB2u6OmqubcsatL9+Mq yeV+rIZkvLJeCdnf9o9aNwg+uxPfN+v8kmtNfC7MLTzE2itRKsloRWob2HCygsanXX VTKTLI7mi+52T1tblQaF6Ba0ZDdU3kkLWFXoKX2E3e7ejJJSpfWQ0xjrJeJKfQB24g xd90ghdcOKTXQirzhVKhiK98fux08E5EopBbXH5f2PC+N20hBxkQSuiFisX18MW7Gu qmf6Z6dWyCwbA== From: Arnd Bergmann To: Vinod Koul Subject: [PATCH v2 10/11] dmaengine: tegra20-apb: stop checking config->slave_id Date: Mon, 22 Nov 2021 23:22:02 +0100 Message-Id: <20211122222203.4103644-11-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20211122222203.4103644-1-arnd@kernel.org> References: <20211122222203.4103644-1-arnd@kernel.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alsa-devel@alsa-project.org, dri-devel@lists.freedesktop.org, Bjorn Andersson , linux-tegra@vger.kernel.org, Thierry Reding , linux-mtd@lists.infradead.org, Laurent Pinchart , linux-spi@vger.kernel.org, Robert Jarzmik , Chunyan Zhang , linux-staging@lists.linux.dev, Michal Simek , Jon Hunter , Andy Gross , bcm-kernel-feedback-list@broadcom.com, linux-serial@vger.kernel.org, Orson Zhai , Nicolas Saenz Julienne , Arnd Bergmann , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, Mark Brown , linux-rpi-kernel@lists.infradead.org, Jaroslav Kysela , Andy Shevchenko , linux-arm-kernel@lists.infradead.org, Scott Branden , Hyun Kwon , Greg Kroah-Hartman , linux-mmc@vger.kernel.org, Takashi Iwai , linux-kernel@vger.kernel.org, Laxman Dewangan , Baolin Wang Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Arnd Bergmann Nothing sets the slave_id field any more, so stop accessing it to allow the removal of this field. Signed-off-by: Arnd Bergmann --- drivers/dma/tegra20-apb-dma.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c index b7260749e8ee..eaafcbe4ca94 100644 --- a/drivers/dma/tegra20-apb-dma.c +++ b/drivers/dma/tegra20-apb-dma.c @@ -343,12 +343,6 @@ static int tegra_dma_slave_config(struct dma_chan *dc, } memcpy(&tdc->dma_sconfig, sconfig, sizeof(*sconfig)); - if (tdc->slave_id == TEGRA_APBDMA_SLAVE_ID_INVALID && - sconfig->device_fc) { - if (sconfig->slave_id > TEGRA_APBDMA_CSR_REQ_SEL_MASK) - return -EINVAL; - tdc->slave_id = sconfig->slave_id; - } tdc->config_init = true; return 0;