From patchwork Mon Nov 15 08:53:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 519135 Delivered-To: patch@linaro.org Received: by 2002:ac0:c605:0:0:0:0:0 with SMTP id p5csp5344872imj; Mon, 15 Nov 2021 00:54:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4TrV/odCt92glyMQV23hV67JSueY4Q1Ok85+86wCdstFZ36Y5BcZ/IpIgzB2LHIT2phvh X-Received: by 2002:a17:90b:4b0d:: with SMTP id lx13mr45339982pjb.146.1636966490947; Mon, 15 Nov 2021 00:54:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636966490; cv=none; d=google.com; s=arc-20160816; b=xMJUWIpLQZgNM/OhWdMo1xgf/POOBpppq2hOUzzttYvnQEzR9d7nBHm1i8c9ES7BYe sdG9ardUubSTpJsl14kFARIe07BQbhlXkG8g+4dXEU1KFIawVVgf8rMCX+xjcaq1g9fL cuVyjJJi+9z+973GLicz14c/A3SGdsAzrfo4Qvqti6b/k7ByrFfKiIpEhqJ/+68X8hTV Z2B2tgh8Nzb8WRbdznmxEsV9pfW4Hgdq2u8AEP3IuHt7+jfaJtJa/gLqmTP8MmJSeudU f3nGSmJ+phbtajvmptZyAni2l1ozQkTqfkCnRzfrRLUiO4hjMyOAzkBjVbbGTn8sCxNc tLVg== 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:message-id:date:subject:to:from:dkim-signature :delivered-to; bh=IDTYB4aLdjtKmmAoRoOaI+UTU+iFKnQNTjKRlxl11JI=; b=qfOqBsd4XE/pReyVPFtaBS6+CoU4qVdfmVShz/dAMdpQgwNuR3FfW09bRl2clUOr3t dolUwj/ytAINEmac2aCw4AcahfPeYzlJJqVsav1+v/rYYm6m324+zBIIoOFZm82Ykvm1 qYgTzD3OKVQMtflW4DBbQCdL06vUvCUrU6cevTDYDAZ5TMiI15STtIyTeCRuk6Hx4jfJ MkHZJPnlJJaA7yCuooNLCG8sxGtOn167bDNZzz2MnEl+a1vPv27Ibx5rxPN8VR0LzR7r s3B+aI33+wLHFFStlik5J9dKe/PBa67xwOi21McfjTTKEglDIzbg5Ok/xZ5CnZuOUaFl RSnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=kv+C8zB0; 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 u69si22218052pgd.156.2021.11.15.00.54.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 00:54:50 -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=kv+C8zB0; 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 700D96E923; Mon, 15 Nov 2021 08:54:48 +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 DD7E56E923 for ; Mon, 15 Nov 2021 08:54:46 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 9880061BE2; Mon, 15 Nov 2021 08:54:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636966486; bh=1h0g2AYqXFphX4dDyELLl2t7YQIUXZ6UIHT7JYg2iMs=; h=From:To:Cc:Subject:Date:From; b=kv+C8zB0tbPMdXf3ORNkXrRH4MrGq92/hxOUWQ7rrNLjPwyN92rkebIKY8icgiOfU pMdG65xZlUKOnr8NUOP6pmXxc3gZzuCmcsiwcDOb6St8hs6LkWB6n1ZZo98RlrnVvp FkqOBIn33Yi9JZOuQ6miAmszWpYRosGKoEiu9hmpXWXS0VgUXakje0NXKySH0Rz+mZ 5B6hNND+tRm0kn91fmSGmzeWYTduFgTH0JLa1xNb8xKQOI2gwIYz/OsIEp39PngVMt ez7HK1j37N1+6Gl5sR4/i/hvvdNCZ5Sdb+Rvh2P8BC4uYTPFd5lIc2Ou5i9m3hH8E0 48X4U7Q98MS4A== From: Arnd Bergmann To: Vinod Koul Subject: [PATCH 00/11] dmaengine: kill off dma_slave_config->slave_id Date: Mon, 15 Nov 2021 09:53:52 +0100 Message-Id: <20211115085403.360194-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 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 I recently came across some new uses of the 'slave_id' field that I had (almost) removed a few years ago. There are no legitimate uses of this field in the kernel, only a few stale references and two drivers that abuse the field as a side-channel between the dmaengine driver and its client. Let's change the xilinx and qualcomm drivers to use the documented side-channel (peripheral_data) instead, and remove the remnants of it to prevent new users from coming in. As the last patch in the series depends on all the others, it would be nice have everything merged into the dmaengine tree for v5.17. Arnd Arnd Bergmann (11): ASoC: dai_dma: remove slave_id field spi: pic32: stop setting dma_config->slave_id mmc: bcm2835: stop setting chan_config->slave_id dmaengine: shdma: remove legacy slave_id parsing dmaengine: pxa/mmp: stop referencing config->slave_id dmaengine: sprd: stop referencing config->slave_id dmaengine: qcom-adm: stop abusing slave_id config dmaengine: xilinx_dpdma: stop using slave_id field dmaengine: tegra20-apb: stop checking config->slave_id staging: ralink-gdma: stop using slave_id config dmaengine: remove slave_id config field drivers/dma/mmp_pdma.c | 6 --- drivers/dma/pxa_dma.c | 7 --- drivers/dma/qcom/qcom_adm.c | 56 ++++++++++++++++++++--- drivers/dma/sh/shdma-base.c | 8 ---- drivers/dma/sprd-dma.c | 3 -- drivers/dma/tegra20-apb-dma.c | 6 --- drivers/dma/xilinx/xilinx_dpdma.c | 12 +++-- drivers/gpu/drm/xlnx/zynqmp_disp.c | 9 +++- drivers/mmc/host/bcm2835.c | 2 - drivers/mtd/nand/raw/qcom_nandc.c | 14 +++++- drivers/spi/spi-pic32.c | 2 - drivers/staging/ralink-gdma/ralink-gdma.c | 12 ++--- drivers/tty/serial/msm_serial.c | 15 +++++- include/linux/dma/qcom_adm.h | 12 +++++ include/linux/dma/xilinx_dpdma.h | 11 +++++ include/linux/dmaengine.h | 4 -- include/sound/dmaengine_pcm.h | 2 - sound/core/pcm_dmaengine.c | 5 +- sound/soc/tegra/tegra20_spdif.c | 1 - 19 files changed, 119 insertions(+), 68 deletions(-) create mode 100644 include/linux/dma/qcom_adm.h create mode 100644 include/linux/dma/xilinx_dpdma.h