From patchwork Mon Nov 15 08:54:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 519144 Delivered-To: patch@linaro.org Received: by 2002:ac0:c605:0:0:0:0:0 with SMTP id p5csp5345646imj; Mon, 15 Nov 2021 00:55:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQzNFWyAY4hZo6YZ4CD9Sk1cn+lWkCf7b0s2BbE8Dd+RZji5U29J3huXXtULIuoPf28Cxd X-Received: by 2002:a17:90a:ac0b:: with SMTP id o11mr3984546pjq.143.1636966548207; Mon, 15 Nov 2021 00:55:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636966548; cv=none; d=google.com; s=arc-20160816; b=Dc4zEOsugqAlCr1LX/zQGexz0povymXfHl1jiE2paJLEUbUekviW/NeBheXi/c6338 w1IrMIp06Flb2Ealya2kqvHwMGO1wM4J3KN5vyvzKDDOFtDCXVocvTOm0vSSDX0wzaX/ Tl2Y5pdgUVbRxitEwEIvxaxCXcWdsZDKsvANfmnWB4N2mjBR1oP4UDbb21tIvM7Q7zGa 3wskY2hDTScvglFsvlT9kMo0keG2rDcuQcdDtdBW00L3a/FdQsYH7ANEzUtcPs6SxnnR JPs5Cb572PEdyiqStriWzrZKnUxN4bF/i3whlTLA1O9j5nLOTUYCFPsVUxkfg6RliBrw sc3g== 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=/oX+NR3nQdel12JUBJVsIdxOIjSVMda3bzuGVBCgbxk=; b=hNt/piC7Ef2MNZe06SUkD5weAlZg8Cwv+o7m+y+KVqAbxWcjGzsM+iuEByXqYZDhFJ bUGPzWBQ5P9TtLEJzZhflgsDkHCk5xGnk3vRZkoCrjFmLI6oj8G2L1NBwimFHXOga+pd A0ICTQlXlQ7Iq2KDEcQ/hVUSKdfhKuDoA30NEFCCO/41vEOfNr02cYy5e/wfzj23O2Pe HdYkzCoOYsPUwYdgkGs3IZTu4cV+xF8R20vfbUpsogqSf5rLNgci3TeyWMVBwEEMod6y YW3TmXCwPTj50CFR0lRmsnY2WzQK6RD/VHEZ74aC9rnVc3bokCOIzOllBOn9XWO03omm c3vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=VYuJvxO5; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id j27si25934770pgn.38.2021.11.15.00.55.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 00:55:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=VYuJvxO5; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 B1FAB6EB9A; Mon, 15 Nov 2021 08:55:46 +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 5CE7B6EB9A for ; Mon, 15 Nov 2021 08:55:45 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 2223663223; Mon, 15 Nov 2021 08:55:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636966545; bh=dcMQMZncG8IjNijKZNej/gmwTiTYDPeCFK23hEXOfto=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VYuJvxO5lVR/GiGcXXlpTenpQL8tS/RiB2q/z0CMEjbvV3OtExgDGliJ9mPslll9Z gJF9jW4NvrAMcYVtan/DOPn491D5evV0DjVoLO4PKbj3djKSiupC9gs/o/JDRousmF VfKHtJYY+yuBV0OABHqDiHSUkpE6qGp8SFfe7NSJEmA0l/mxODuVE3wHHx7vsA5sov Wa36nu6IAmzkpbTK/7+6RaXeDPwWYCIT8QDeBGczguXuJlI760X3i1oAk8E/g82B3L MDBneNRRk20n1rSG1Z9mUgJiWRhrqnptEhFZTTbLf+wXfy+4WmVGvjS1fVUD20TPas ktKoOqahs6Lsg== From: Arnd Bergmann To: Vinod Koul Subject: [PATCH 09/11] dmaengine: tegra20-apb: stop checking config->slave_id Date: Mon, 15 Nov 2021 09:54:01 +0100 Message-Id: <20211115085403.360194-10-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20211115085403.360194-1-arnd@kernel.org> References: <20211115085403.360194-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;