Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7CF35C4167B for ; Mon, 15 Nov 2021 13:43:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5F66261B27 for ; Mon, 15 Nov 2021 13:43:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236520AbhKONqT (ORCPT ); Mon, 15 Nov 2021 08:46:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:51804 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236303AbhKONnM (ORCPT ); Mon, 15 Nov 2021 08:43:12 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 41D6263225; Mon, 15 Nov 2021 13:40:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636983617; bh=wWcBwOu3cL9+U+zjsSAWtUQyMjCz3CDgA4mV4eUmQEI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Q4vpjH0uJaOnwWSUMmOGk4RBT6eS8WH2rt9ntVsxRfGOv9U1AcRtQ11fRaF90BIV8 sqeJ0HBpuF+KPmzxxWjlJGgSJ1OjqCnX5IF3kDB9UyaLteVQzEs63BelRJSGp/MN27 rl3mqKgow43UyjRBZHGLKQ4QfjwptO5RKrADCb33Z2mbHzpBKSuGr6uGe5kRDEdiBG HHrLzrj7SUybGgQXnJJsO7yrqVHV48pmOVUw23xSRWxB7Me79U0ZJtPK4hVpkgoTGX utmi82G0Uxv9J6Q2ftbl+jiVLtnlcx62LHYmA20iHfeUpWAVrLzRRvgSwCTpk4pzn6 ofL6tkRYcgMKA== Received: by mail-wr1-f46.google.com with SMTP id c4so30714585wrd.9; Mon, 15 Nov 2021 05:40:17 -0800 (PST) X-Gm-Message-State: AOAM531vvlRykWLO92Z09uDzfZtO+Fb+dA5ADjGDxATEsgevQtZfRLx7 qHnRukW4U5bU8Zx1GyLFIWD6DZ3FSiCQNz2Ea4A= X-Google-Smtp-Source: ABdhPJydx+lGNyCCL10Ss+u6AlrY7F7Dh3irA5L/rafXQwz2EG7YLwST7GsA7bIvQOTqpVGT64n5uQbouKk1WaS2cho= X-Received: by 2002:adf:f088:: with SMTP id n8mr7443019wro.411.1636983615679; Mon, 15 Nov 2021 05:40:15 -0800 (PST) MIME-Version: 1.0 References: <20211115085403.360194-1-arnd@kernel.org> <20211115085403.360194-9-arnd@kernel.org> In-Reply-To: From: Arnd Bergmann Date: Mon, 15 Nov 2021 14:39:59 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 08/11] dmaengine: xilinx_dpdma: stop using slave_id field To: Laurent Pinchart Cc: Vinod Koul , Arnd Bergmann , Andy Gross , Andy Shevchenko , Baolin Wang , Bjorn Andersson , Chunyan Zhang , Greg Kroah-Hartman , Hyun Kwon , Jaroslav Kysela , Jon Hunter , Lars-Peter Clausen , Laxman Dewangan , Manivannan Sadhasivam , Mark Brown , Michal Simek , Nicolas Saenz Julienne , Orson Zhai , Robert Jarzmik , Scott Branden , Takashi Iwai , Thierry Reding , ALSA Development Mailing List , bcm-kernel-feedback-list , dmaengine@vger.kernel.org, dri-devel , Linux ARM , linux-arm-msm , Linux Kernel Mailing List , linux-mmc , linux-mtd , "moderated list:BROADCOM BCM2835 ARM ARCHITECTURE" , "open list:SERIAL DRIVERS" , linux-spi , linux-staging@lists.linux.dev, "open list:TEGRA ARCHITECTURE SUPPORT" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 15, 2021 at 2:05 PM Laurent Pinchart wrote: > On Mon, Nov 15, 2021 at 01:38:07PM +0100, Arnd Bergmann wrote: > > On Mon, Nov 15, 2021 at 12:49 PM Laurent Pinchart wrote: > > > > Right. I wonder if there is even a point in using the dmaengine API > > in that case, I think for other single-purpose drivers we tend to just > > integrate the functionality in the client driver. No point changing this > > now of course, but it does feel odd. > > I agree, and that's what I would have done as well, if it wasn't for the > fact that the DMA engine also supports a second client for audio. This > isn't supported in upstream yet. We could still have created an ad-hoc > solution, possibly based on the components framework, but the DMA engine > subsystem wasn't a bad fit. Ah, makes sense. In this case, I guess the data could have been part of the DMA specifier after all, in a second cell after the channel number. Arnd