From nobody Fri Sep 25 00:40:04 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B8704ED19C; Fri, 18 Sep 2026 11:37:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789731463; cv=none; b=hoy44p6esFSxBK9UIfDMPJVlvSUvYMoRmJkdFpoLJJea5TjRHkneT6S760pnTxBbclyHaPAuANBSCPuifkeZFCKp7P0bh5bRRjL4WkZzNriV3rA3lFupu+jwOSGiH99X1ZYiXGzlqKjZpiueod60JxedbqsvDpAOCN0e/h7Yjck= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789731463; c=relaxed/simple; bh=XLzgAaMNDk785gOrzo3Jw9J0cT01zC/WwTUadr7d3+M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VQ5/3sBgsa09JD7roQeCXwCBWLcauR8R9FDh+o3wAxOH30yNmubqky09qA8NfW/GbNTd/pO0HGh6/s+/C69die3MnT284CMJfvr9UMdfJCbC50QSiETxYyG9/H2Mdq8x+7jBDEWbKO2jWtQ04hQ6QeDsZP1GlrvPQYEof6ZOGmc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=R0zZCmxS; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="R0zZCmxS" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789731462; x=1821267462; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=XLzgAaMNDk785gOrzo3Jw9J0cT01zC/WwTUadr7d3+M=; b=R0zZCmxSzDNv9IIquIGc9X/y1lbowQrsOx2ayGo4uMLnQCoDFTnRdjl4 xXqSp6hEln0PyrZNj6Fs8XR2bHSMAM2Obzea5M0S7fL6nToKpPx33mb7q o/TlUNOa9OdL+IewIjeJebWtRDJuKuK+hEbAJMRlxs10rVqUn2PAml0xu /ymdAOFM1vQXP1y1oFrKA/qR1JvKjWz3KHeI1RsVsu1OlRcGL46zYbILq i33NYOsq1ohNMP4Exgo9UKOKPU828Bp7IVdO9UUhUhXYXPjnO36W/DDSn TXOegoNqqriv3x8bAqxLSSg+O4P8QYEN60UKTqU5IoO+hN6h5wLc9sgJc A==; X-CSE-ConnectionGUID: kgFDnRYWSxiob3Gi+bIMiA== X-CSE-MsgGUID: Oah3orXYSw+/SVr3JaRNDA== X-IronPort-AV: E=McAfee;i="6800,10657,11908"; a="89367452" X-IronPort-AV: E=Sophos;i="6.27,108,1787036400"; d="scan'208";a="89367452" Received: from fmviesa013.fm.intel.com ([10.60.135.153]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2026 04:37:41 -0700 X-CSE-ConnectionGUID: StlknkQKRBWNDpL5Ln95KQ== X-CSE-MsgGUID: 9pOIgltNRyOJG64WTtDAzw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,108,1787036400"; d="scan'208";a="2783682" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa013.fm.intel.com with ESMTP; 18 Sep 2026 04:37:35 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 5D2009B; Fri, 18 Sep 2026 13:37:29 +0200 (CEST) From: Andy Shevchenko To: Frank Li , Vinod Koul , Mark Brown , Shengjiu Wang , bui duc phuc , Andy Shevchenko , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-sound@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Cc: Dave Penkler , Greg Kroah-Hartman , Frank Li , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Lars-Peter Clausen , Orson Zhai , Baolin Wang , Chunyan Zhang , Olivier Moysan , Arnaud Pouliquen , Maxime Coquelin , Alexandre Torgue Subject: [PATCH v2 1/7] ASoC: stm32: spdifrx: Drop mention of the deprecated and unused call Date: Fri, 18 Sep 2026 13:34:05 +0200 Message-ID: <20260918113727.1898998-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260918113727.1898998-1-andriy.shevchenko@linux.intel.com> References: <20260918113727.1898998-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The error message was not updated while driver moved from the deprecated dma_request_slave_channel() to the dma_request_chan(). Update the message by replacing it with the correct function. Signed-off-by: Andy Shevchenko --- sound/soc/stm/stm32_spdifrx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/stm/stm32_spdifrx.c b/sound/soc/stm/stm32_spdifrx.c index e0fef47a227e..0ece54740773 100644 --- a/sound/soc/stm/stm32_spdifrx.c +++ b/sound/soc/stm/stm32_spdifrx.c @@ -400,7 +400,7 @@ static int stm32_spdifrx_dma_ctrl_register(struct devic= e *dev, spdifrx->ctrl_chan =3D dma_request_chan(dev, "rx-ctrl"); if (IS_ERR(spdifrx->ctrl_chan)) return dev_err_probe(dev, PTR_ERR(spdifrx->ctrl_chan), - "dma_request_slave_channel error\n"); + "dma_request_chan error\n"); =20 spdifrx->dmab =3D devm_kzalloc(dev, sizeof(struct snd_dma_buffer), GFP_KERNEL); --=20 2.50.1 From nobody Fri Sep 25 00:40:04 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E5783914E9; Fri, 18 Sep 2026 11:37:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789731458; cv=none; b=d7ACoa7EJuiMVuiFqKEpHG6RDCfRAik1Tlka8q9OPPgzLuHY96sZgBnOJfztXRI+XOtRVVZTS9c9dLi4ZzpPKQGh34oFDfSJD2+Px834qdZmuCq5l7QncnApEmkHxOkSTU7Uy/gO3rnVuHyu+UqLx2NL8BlpopJVzm41eivnX5Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789731458; c=relaxed/simple; bh=3kWwrnL64mx1dLXwcHsMMT0BAa2zKW4PRgmp1oM+8L4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Nb+myDIlnEL+3wzqxVwAZeGBgamtvm+5xPYOvlVOIoajKhTeOAdwg6REzDx9A54vQj+/cuVFQtAErxMkazIxNjdpwqfl5aZZ/VuZr3ulW3g7RC2E9gwxNlUzAa+uaLz4oFqVjqFeOFG+aKbxlyZLa9TmFys+VfCXIbiHUfGhc8w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=TpbMFl7a; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="TpbMFl7a" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789731457; x=1821267457; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3kWwrnL64mx1dLXwcHsMMT0BAa2zKW4PRgmp1oM+8L4=; b=TpbMFl7athYqFbOgZq1vAX5zTqwGJM0d4z+gB7lI32rN1bFYuGRSw8BZ zZ5N4obdV8U/M2VecjGSq+NXNScPZblyAH9Du3NJ9XVmpgse4/vKVqrA8 48gGT2xLDkENRr/7EIPGaWau5H1LlwUIHz1eKoXT1IigT2wa79guaooUq ZrbrVUy0FIWwJhyuPe/PdNAvGnrcZLIp3Fh/BQPDOKClKUNyYrkOVjUTW CKC0mBPz/oEVDeFjVDM0lGJOCyI0m/h4ctSliwkJFPED98UMh5pb5AX+3 d0q0oTGiG5HLIEvotEnvHQxcGiMZ4ttCYntDrf1yxkdZEKL5vskb0BiLb A==; X-CSE-ConnectionGUID: ly+nxso2SOqk39i5QOf78g== X-CSE-MsgGUID: NDPwkaF/S3aHfqjcMQ4zjQ== X-IronPort-AV: E=McAfee;i="6800,10657,11908"; a="89367423" X-IronPort-AV: E=Sophos;i="6.27,108,1787036400"; d="scan'208";a="89367423" Received: from fmviesa013.fm.intel.com ([10.60.135.153]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2026 04:37:36 -0700 X-CSE-ConnectionGUID: 1R6KiivqQbSH2qbKz/O6QA== X-CSE-MsgGUID: CLf4k4XbTtOWa//DNCduFA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,108,1787036400"; d="scan'208";a="2783655" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa013.fm.intel.com with ESMTP; 18 Sep 2026 04:37:30 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 6253F9D; Fri, 18 Sep 2026 13:37:29 +0200 (CEST) From: Andy Shevchenko To: Frank Li , Vinod Koul , Mark Brown , Shengjiu Wang , bui duc phuc , Andy Shevchenko , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-sound@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Cc: Dave Penkler , Greg Kroah-Hartman , Frank Li , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Lars-Peter Clausen , Orson Zhai , Baolin Wang , Chunyan Zhang , Olivier Moysan , Arnaud Pouliquen , Maxime Coquelin , Alexandre Torgue Subject: [PATCH v2 2/7] ASoC: sprd: Replace dma_request_slave_channel() by dma_request_chan() Date: Fri, 18 Sep 2026 13:34:06 +0200 Message-ID: <20260918113727.1898998-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260918113727.1898998-1-andriy.shevchenko@linux.intel.com> References: <20260918113727.1898998-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Replace dma_request_slave_channel() by dma_request_chan() as suggested since the former is deprecated. With this, propagate all possible errors to the caller. Reviewed-by: Baolin Wang Signed-off-by: Andy Shevchenko --- sound/soc/sprd/sprd-pcm-compress.c | 9 +++++---- sound/soc/sprd/sprd-pcm-dma.c | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/sound/soc/sprd/sprd-pcm-compress.c b/sound/soc/sprd/sprd-pcm-c= ompress.c index e5249924b54d..f394121d417a 100644 --- a/sound/soc/sprd/sprd-pcm-compress.c +++ b/sound/soc/sprd/sprd-pcm-compress.c @@ -145,6 +145,7 @@ static int sprd_platform_compr_dma_config(struct snd_so= c_component *component, enum dma_slave_buswidth bus_width; int period, period_cnt, sg_num =3D 2; dma_addr_t src_addr, dst_addr; + struct dma_chan *chan; unsigned long flags; int ret, j; =20 @@ -153,12 +154,12 @@ static int sprd_platform_compr_dma_config(struct snd_= soc_component *component, return -EINVAL; } =20 - dma->chan =3D dma_request_slave_channel(dev, - dma_params->chan_name[channel]); - if (!dma->chan) { + chan =3D dma_request_chan(dev, dma_params->chan_name[channel]); + if (IS_ERR(chan)) { dev_err(dev, "failed to request dma channel\n"); - return -ENODEV; + return PTR_ERR(chan); } + dma->chan =3D chan; =20 sgt =3D sg =3D kzalloc_objs(*sg, sg_num); if (!sg) { diff --git a/sound/soc/sprd/sprd-pcm-dma.c b/sound/soc/sprd/sprd-pcm-dma.c index 2d5ffbe17e81..2a89dc7616bf 100644 --- a/sound/soc/sprd/sprd-pcm-dma.c +++ b/sound/soc/sprd/sprd-pcm-dma.c @@ -170,15 +170,16 @@ static int sprd_pcm_request_dma_channel(struct snd_so= c_component *component, =20 for (i =3D 0; i < channels; i++) { struct sprd_pcm_dma_data *data =3D &dma_private->data[i]; + struct dma_chan *chan; =20 - data->chan =3D dma_request_slave_channel(dev, - dma_params->chan_name[i]); - if (!data->chan) { + chan =3D dma_request_chan(dev, dma_params->chan_name[i]); + if (IS_ERR(chan)) { dev_err(dev, "failed to request dma channel:%s\n", dma_params->chan_name[i]); sprd_pcm_release_dma_channel(substream); - return -ENODEV; + return PTR_ERR(chan); } + data->chan =3D chan; } =20 return 0; --=20 2.50.1 From nobody Fri Sep 25 00:40:04 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C9014ED198; Fri, 18 Sep 2026 11:37:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789731463; cv=none; b=rCFh7GozzNj0DVFqvhQW0VSiCH969KnBJ+p8QNvgBGBIyorNx24nz8FRZhBxoze7Pizmv8bV1cDQF5AJmlaAvm15OCXpS3sBun7DrLoq295UDE7Po/yRSugDa89SenHLhn+Ny52NPBal/GWGpGNaYAtasWEO7J748ezh4qsAgf0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789731463; c=relaxed/simple; bh=HBMn/5uoBJRDMKsyJnTaBaHBHzv4hmzBn/RwfpsTeuY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XbAvNsG9bfOx5e3z+hR41KW5VsJ2LnOPD+vENExLmA7Y6SB1xF2ppSveTZ9gQRFu3yKp5sEBWCDD7PWRe0/yovbbbE5vWTWmO8XKgL3jksQo/lT/sDRp956jMMYjQw2zUZ//vuomhEp56OiWD0Qw8b91bMm4S1IbUhOU0NM/YOw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=hixdT9J0; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="hixdT9J0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789731461; x=1821267461; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HBMn/5uoBJRDMKsyJnTaBaHBHzv4hmzBn/RwfpsTeuY=; b=hixdT9J0ebvY3QHvsaxGhMCm3XvWSJxpRVECgaDg8mDrvv3x4uY0aZzt LcFAlv0aDcNZ/P/9T9y//KVOg7GAieuxL9KIxLZQY0OBqCsD1xZdl4Iu0 KvJ0V9+ac/uSGyDTMhthMNE0SFMMkHNjaL6b5zlVJEz4T/YPH93hT1p7K RZAigk7BbJ1g4JtZI3yukdyi5TnSfkkvHMs8pxvGwyC75dHfqB6w7O4iI r+/bJeugAvHFb3PDj+16VlwTwG2M87oP0cz+kdeHR1T5g0hw0dxvMslQ9 TsDmYfNKWTUqZPwqurOFxJCAWmkawdyUscjxxnZRMLEF4oDSf4AkPZ/Li Q==; X-CSE-ConnectionGUID: f6+i7kDJSoaa07t0z0QGcg== X-CSE-MsgGUID: hEWa3OUISGSB6eZqmxCs8A== X-IronPort-AV: E=McAfee;i="6800,10657,11908"; a="92739721" X-IronPort-AV: E=Sophos;i="6.27,108,1787036400"; d="scan'208";a="92739721" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2026 04:37:40 -0700 X-CSE-ConnectionGUID: ojMW1seUSfORwlkiKf3M8Q== X-CSE-MsgGUID: knn7zAWeRM+3HtKgvEjlkw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,108,1787036400"; d="scan'208";a="271029239" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa007.fm.intel.com with ESMTP; 18 Sep 2026 04:37:34 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 67EEC9E; Fri, 18 Sep 2026 13:37:29 +0200 (CEST) From: Andy Shevchenko To: Frank Li , Vinod Koul , Mark Brown , Shengjiu Wang , bui duc phuc , Andy Shevchenko , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-sound@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Cc: Dave Penkler , Greg Kroah-Hartman , Frank Li , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Lars-Peter Clausen , Orson Zhai , Baolin Wang , Chunyan Zhang , Olivier Moysan , Arnaud Pouliquen , Maxime Coquelin , Alexandre Torgue , Cezary Rojewski Subject: [PATCH v2 3/7] ASoC: soc-generic-dmaengine-pcm: Replace dma_request_slave_channel() by dma_request_chan() Date: Fri, 18 Sep 2026 13:34:07 +0200 Message-ID: <20260918113727.1898998-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260918113727.1898998-1-andriy.shevchenko@linux.intel.com> References: <20260918113727.1898998-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Replace dma_request_slave_channel() by dma_request_chan() as suggested since the former is deprecated. Reviewed-by: Cezary Rojewski Signed-off-by: Andy Shevchenko --- sound/soc/soc-generic-dmaengine-pcm.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sound/soc/soc-generic-dmaengine-pcm.c b/sound/soc/soc-generic-= dmaengine-pcm.c index 65b7ec52a054..6d1dbee8f6c1 100644 --- a/sound/soc/soc-generic-dmaengine-pcm.c +++ b/sound/soc/soc-generic-dmaengine-pcm.c @@ -242,9 +242,11 @@ static int dmaengine_pcm_new(struct snd_soc_component = *component, if (!substream) continue; =20 - if (!pcm->chan[i] && config->chan_names[i]) - pcm->chan[i] =3D dma_request_slave_channel(dev, - config->chan_names[i]); + if (!pcm->chan[i] && config->chan_names[i]) { + pcm->chan[i] =3D dma_request_chan(dev, config->chan_names[i]); + if (IS_ERR(pcm->chan[i])) + pcm->chan[i] =3D NULL; + } =20 if (!pcm->chan[i] && (pcm->flags & SND_DMAENGINE_PCM_FLAG_COMPAT)) { pcm->chan[i] =3D dmaengine_pcm_compat_request_channel( --=20 2.50.1 From nobody Fri Sep 25 00:40:04 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0CE6F4E532A; Fri, 18 Sep 2026 11:37:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789731464; cv=none; b=tnwVJxiZB0ich1jCPGXWAQS1IkpSuY1QVYSg6K0Crdty9dso7QuNTdV6B6beg4vvk9Vbygp2N0vFGR1WEaz5Wlkur+9biGxaofA0s5EKFSRcBcdO1NU8p9XEbJ117wGLl6sllmILDPiAlwRfBWdkhKCYETcAVn/THWg9qMdf/BQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789731464; c=relaxed/simple; bh=iHSC1nNEnhUx/XbEolv5AtLHIEcgA20Dn5X1VVvaZ8M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=D80Pk7NOFKmXFTWb0vceHr2rff+2XiEwnhfDiJYdd5K+6myzo24KdjNwww6uBGE7ZnB9jdO08HVwLtKxPNoXdlq/U4z04oIPJA4tH7+1GgUMu0uTknG8aMWdDQ8LtEJX0gW/Iehni29/zqK4aYLlQwOaEHANsLtnwGU/oR25PsA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=P6Uy1wb5; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="P6Uy1wb5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789731462; x=1821267462; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=iHSC1nNEnhUx/XbEolv5AtLHIEcgA20Dn5X1VVvaZ8M=; b=P6Uy1wb5zyKa0yeadElmd5JVpEm+zTDeK7b6G9nTOVSkxx8nmITa5AQ1 aav8IXn2uMBbRfGIXGZrKZn16yYvPD1fXXIEP571Zai/dddjDWrYqUI7+ l+ZlRcM0IymCgSk+9McfSu9wePbuQORjooHvAR/z1xRD5/hUwQHnGmQ71 9Rb35jdqJNoolt1wvF8sGidoW9J3ARubppZDCxKdpsEa2hen/3FY+jqMk EyT0z5o+4xGLbX7JYH+Y19HYR4SdQ/v3zhXNRwe4rgU7uq2SI0RVArK7s Kt+NTnRCTRqKyN9Pn9K4Hw9dfsqqcUJFKpBjiyIng5XgutMavg30Bj2/F w==; X-CSE-ConnectionGUID: isc1UwJvQKqFQoMfLHhxmQ== X-CSE-MsgGUID: +5rVTmyqSN+XACgcjVq2aw== X-IronPort-AV: E=McAfee;i="6800,10657,11908"; a="89367475" X-IronPort-AV: E=Sophos;i="6.27,108,1787036400"; d="scan'208";a="89367475" Received: from fmviesa013.fm.intel.com ([10.60.135.153]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2026 04:37:41 -0700 X-CSE-ConnectionGUID: vwoX+4jyTkKozcevs1734A== X-CSE-MsgGUID: P5cUJ9SJT2GCeaMH1c7Yjw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,108,1787036400"; d="scan'208";a="2783683" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa013.fm.intel.com with ESMTP; 18 Sep 2026 04:37:35 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 6CEB5A1; Fri, 18 Sep 2026 13:37:29 +0200 (CEST) From: Andy Shevchenko To: Frank Li , Vinod Koul , Mark Brown , Shengjiu Wang , bui duc phuc , Andy Shevchenko , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-sound@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Cc: Dave Penkler , Greg Kroah-Hartman , Frank Li , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Lars-Peter Clausen , Orson Zhai , Baolin Wang , Chunyan Zhang , Olivier Moysan , Arnaud Pouliquen , Maxime Coquelin , Alexandre Torgue Subject: [PATCH v2 4/7] ASoC: pxa: Replace dma_request_slave_channel() by dma_request_chan() Date: Fri, 18 Sep 2026 13:34:08 +0200 Message-ID: <20260918113727.1898998-5-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260918113727.1898998-1-andriy.shevchenko@linux.intel.com> References: <20260918113727.1898998-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Replace dma_request_slave_channel() by dma_request_chan() as suggested since the former is deprecated. Signed-off-by: Andy Shevchenko --- sound/soc/pxa/pxa2xx-pcm-lib.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sound/soc/pxa/pxa2xx-pcm-lib.c b/sound/soc/pxa/pxa2xx-pcm-lib.c index 88a9d3226302..4b5b07f0c444 100644 --- a/sound/soc/pxa/pxa2xx-pcm-lib.c +++ b/sound/soc/pxa/pxa2xx-pcm-lib.c @@ -79,6 +79,7 @@ static int pxa2xx_pcm_open(struct snd_pcm_substream *subs= tream) struct snd_soc_pcm_runtime *rtd =3D snd_soc_substream_to_rtd(substream); struct snd_pcm_runtime *runtime =3D substream->runtime; struct snd_dmaengine_dai_dma_data *dma_params; + struct dma_chan *chan; int ret; =20 runtime->hw =3D pxa2xx_pcm_hardware; @@ -107,9 +108,11 @@ static int pxa2xx_pcm_open(struct snd_pcm_substream *s= ubstream) if (ret < 0) return ret; =20 - return snd_dmaengine_pcm_open( - substream, dma_request_slave_channel(snd_soc_rtd_to_cpu(rtd, 0)->dev, - dma_params->chan_name)); + chan =3D dma_request_chan(snd_soc_rtd_to_cpu(rtd, 0)->dev, dma_params->ch= an_name); + if (IS_ERR(chan)) + return -ENXIO; + + return snd_dmaengine_pcm_open(substream, chan); } =20 static int pxa2xx_pcm_close(struct snd_pcm_substream *substream) --=20 2.50.1 From nobody Fri Sep 25 00:40:04 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09C8E4EF13D; Fri, 18 Sep 2026 11:37:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789731468; cv=none; b=gkfKcRMLyCeWMPZUeQO+Pk5hvYErIxZh8DMTzt33l2oNsDe5bkUJbdvWceaqGF1d4MBSOXIHr5ZJ3crxqrwHC8qwiKW/8TrqYCR9qCbQlDHiuJGgRw1m8im67Ed4355UaH5u6MmeePMZC/mlfyFxK1m64oOpRdSEF8L683dcXI4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789731468; c=relaxed/simple; bh=5gUb+hVvLoFAVftWGRnnASwFC0wEvWCakupR8SXd3dg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=l9BccqMzk4zCFb2ALNsLP22BdtZAYtscR09GckN1zzTsHCtLF8DqgcRzrbFqQASiDC9Tvs5M3krN/SVCJz5kIZ7ipLmykyyH2oYmBAJ8Im8qEEl5CdQ53M1a4uYJ4egQFPMWGWCnDIxIJlDmOtZzRrVf09IQ3kmGzXTUGwypzFE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lbb+eCgq; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lbb+eCgq" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789731466; x=1821267466; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5gUb+hVvLoFAVftWGRnnASwFC0wEvWCakupR8SXd3dg=; b=lbb+eCgqymXZlvGmJ7uD2jGtUp1KpEz8aGLAc9tJC5Ee6CqKbWECTdEn vB96Sf+01RuFimVl+e06+EeNSmyM0uLplXMET4rzrUH1M0O7Epvfdt2ho LZAbylohwLqpttQnAxHaTV3nVrwAT1kD7IhxRXZzxI9pA5lLO29ZVjJlT OFAY9ulOtpntOxmX9ymFvTrfjgk8XbefUnfI2ADMfNQyArlPcY5CnSc0q 25oSz/PNOCoEGvmBldX7QmNYRuTxmNBkY16P64I9guxoj6sxsAS02IdKC g4G/16H6zPtbz5HUHKk8LibzADRyInZnwJpfdyX1rceYT+2qK3j+MDPs7 Q==; X-CSE-ConnectionGUID: ACWp+33KRoiisM2lGy+kcQ== X-CSE-MsgGUID: dlhtrFjsQ3CdcxGLZkv77g== X-IronPort-AV: E=McAfee;i="6800,10657,11908"; a="92739784" X-IronPort-AV: E=Sophos;i="6.27,108,1787036400"; d="scan'208";a="92739784" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2026 04:37:43 -0700 X-CSE-ConnectionGUID: MKVMvLwrQiuKI46WECtxaA== X-CSE-MsgGUID: LBXUdJr7QP6V58c7vq4Yhg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,108,1787036400"; d="scan'208";a="271029226" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa007.fm.intel.com with ESMTP; 18 Sep 2026 04:37:37 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 72129A2; Fri, 18 Sep 2026 13:37:29 +0200 (CEST) From: Andy Shevchenko To: Frank Li , Vinod Koul , Mark Brown , Shengjiu Wang , bui duc phuc , Andy Shevchenko , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-sound@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Cc: Dave Penkler , Greg Kroah-Hartman , Frank Li , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Lars-Peter Clausen , Orson Zhai , Baolin Wang , Chunyan Zhang , Olivier Moysan , Arnaud Pouliquen , Maxime Coquelin , Alexandre Torgue Subject: [PATCH v2 5/7] ASoC: fsl_asrc: Replace dma_request_slave_channel() by dma_request_chan() Date: Fri, 18 Sep 2026 13:34:09 +0200 Message-ID: <20260918113727.1898998-6-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260918113727.1898998-1-andriy.shevchenko@linux.intel.com> References: <20260918113727.1898998-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Replace dma_request_slave_channel() by dma_request_chan() as suggested since the former is deprecated. With this, propagate all possible errors to the caller. Signed-off-by: Andy Shevchenko Reviewed-by: Frank Li --- sound/soc/fsl/fsl_asrc.c | 2 +- sound/soc/fsl/fsl_asrc_dma.c | 19 +++++++++++-------- sound/soc/fsl/fsl_asrc_m2m.c | 15 +++++++++------ sound/soc/fsl/fsl_easrc.c | 2 +- 4 files changed, 22 insertions(+), 16 deletions(-) diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c index b24737add001..ae682bf450f6 100644 --- a/sound/soc/fsl/fsl_asrc.c +++ b/sound/soc/fsl/fsl_asrc.c @@ -638,7 +638,7 @@ static struct dma_chan *fsl_asrc_get_dma_channel(struct= fsl_asrc_pair *pair, =20 sprintf(name, "%cx%c", dir =3D=3D IN ? 'r' : 't', index + 'a'); =20 - return dma_request_slave_channel(&asrc->pdev->dev, name); + return dma_request_chan(&asrc->pdev->dev, name); } =20 static int fsl_asrc_dai_startup(struct snd_pcm_substream *substream, diff --git a/sound/soc/fsl/fsl_asrc_dma.c b/sound/soc/fsl/fsl_asrc_dma.c index 2f662bdf14d0..86489f70e262 100644 --- a/sound/soc/fsl/fsl_asrc_dma.c +++ b/sound/soc/fsl/fsl_asrc_dma.c @@ -136,8 +136,8 @@ static int fsl_asrc_dma_hw_params(struct snd_soc_compon= ent *component, struct snd_dmaengine_dai_dma_data *dma_params_be =3D NULL; struct snd_pcm_runtime *runtime =3D substream->runtime; struct fsl_asrc_pair *pair =3D runtime->private_data; - struct dma_chan *tmp_chan =3D NULL, *be_chan =3D NULL; struct snd_soc_component *component_be =3D NULL; + struct dma_chan *tmp_chan, *be_chan =3D NULL; struct fsl_asrc *asrc =3D pair->asrc; struct dma_slave_config config_fe =3D {}, config_be =3D {}; struct sdma_peripheral_config audio_config; @@ -190,11 +190,12 @@ static int fsl_asrc_dma_hw_params(struct snd_soc_comp= onent *component, dma_params_fe->addr =3D asrc->paddr + asrc->get_fifo_addr(!dir, index); dma_params_fe->maxburst =3D dma_params_be->maxburst; =20 - pair->dma_chan[!dir] =3D asrc->get_dma_channel(pair, !dir); - if (!pair->dma_chan[!dir]) { + tmp_chan =3D asrc->get_dma_channel(pair, !dir); + if (IS_ERR(tmp_chan)) { dev_err(dev, "failed to request DMA channel\n"); - return -EINVAL; + return PTR_ERR(tmp_chan); } + pair->dma_chan[!dir] =3D tmp_chan; =20 ret =3D snd_dmaengine_pcm_prepare_slave_config(substream, params, &config= _fe); if (ret) { @@ -223,6 +224,8 @@ static int fsl_asrc_dma_hw_params(struct snd_soc_compon= ent *component, =20 be_chan =3D pcm->chan[substream->stream]; tmp_chan =3D be_chan; + } else { + tmp_chan =3D NULL; } if (!tmp_chan) { tmp_chan =3D dma_request_chan(dev_be, tx ? "tx" : "rx"); @@ -404,9 +407,9 @@ static int fsl_asrc_dma_startup(struct snd_soc_componen= t *component, =20 /* Request a dummy dma channel, which will be released later. */ tmp_chan =3D asrc->get_dma_channel(pair, dir); - if (!tmp_chan) { + ret =3D PTR_ERR_OR_ZERO(tmp_chan); + if (ret) { dev_err(dev, "failed to get dma channel\n"); - ret =3D -EINVAL; goto dma_chan_err; } =20 @@ -497,9 +500,9 @@ static int fsl_asrc_dma_pcm_new(struct snd_soc_componen= t *component, =20 /* Request a dma channel, which will be released later. */ chan =3D asrc->get_dma_channel(pair, IN); - if (!chan) { + ret =3D PTR_ERR_OR_ZERO(chan); + if (ret) { dev_err(dev, "failed to get dma channel\n"); - ret =3D -EINVAL; goto dma_chan_err; } =20 diff --git a/sound/soc/fsl/fsl_asrc_m2m.c b/sound/soc/fsl/fsl_asrc_m2m.c index 4bc40f328f58..e7b91196d35b 100644 --- a/sound/soc/fsl/fsl_asrc_m2m.c +++ b/sound/soc/fsl/fsl_asrc_m2m.c @@ -466,6 +466,7 @@ static int fsl_asrc_m2m_comp_task_create(struct snd_com= pr_stream *stream, struct snd_compr_runtime *runtime =3D stream->runtime; struct fsl_asrc_pair *pair =3D runtime->private_data; struct device *dev =3D &asrc->pdev->dev; + struct dma_chan *tmp_chan; int ret; =20 exp_info_in.ops =3D &fsl_asrc_m2m_dma_buf_ops; @@ -502,19 +503,21 @@ static int fsl_asrc_m2m_comp_task_create(struct snd_c= ompr_stream *stream, } =20 /* Request dma channels */ - pair->dma_chan[IN] =3D asrc->get_dma_channel(pair, IN); - if (!pair->dma_chan[IN]) { + tmp_chan =3D asrc->get_dma_channel(pair, IN); + ret =3D PTR_ERR_OR_ZERO(tmp_chan); + if (ret) { dev_err(dev, "[ctx%d] failed to get input DMA channel\n", pair->index); - ret =3D -EBUSY; goto err_dma_channel_in; } + pair->dma_chan[IN] =3D tmp_chan; =20 - pair->dma_chan[OUT] =3D asrc->get_dma_channel(pair, OUT); - if (!pair->dma_chan[OUT]) { + tmp_chan =3D asrc->get_dma_channel(pair, OUT); + ret =3D PTR_ERR_OR_ZERO(tmp_chan); + if (ret) { dev_err(dev, "[ctx%d] failed to get output DMA channel\n", pair->index); - ret =3D -EBUSY; goto err_dma_channel_out; } + pair->dma_chan[OUT] =3D tmp_chan; =20 return 0; =20 diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c index aced16d1228a..d30cc3e90215 100644 --- a/sound/soc/fsl/fsl_easrc.c +++ b/sound/soc/fsl/fsl_easrc.c @@ -1433,7 +1433,7 @@ static struct dma_chan *fsl_easrc_get_dma_channel(str= uct fsl_asrc_pair *ctx, /* Example of dma name: ctx0_rx */ sprintf(name, "ctx%c_%cx", index + '0', dir =3D=3D IN ? 'r' : 't'); =20 - return dma_request_slave_channel(&easrc->pdev->dev, name); + return dma_request_chan(&easrc->pdev->dev, name); }; =20 static const unsigned int easrc_rates[] =3D { --=20 2.50.1 From nobody Fri Sep 25 00:40:04 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 976444EE87F; Fri, 18 Sep 2026 11:37:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789731467; cv=none; b=c03yNtkksWFqQyY0HT0tVUV2nPuJn2dyTs7m8eqd7YoVdUBiK1Srs6LhSrMHJ9fCxqHuHJFjX6sBN258vP2UelR0nYn7qo+ymz+2HnpC1BUfm/mpw39twLnlf1RjVePxN6WPSkRzMLx+2G28jwKK7VXNiGQOQZ+dDQeQa0Jqtrg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789731467; c=relaxed/simple; bh=dsocwb7K2ZpRqzpDad5Pm4Zdlbi0/SbBbWa0Q7zC82k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BeLsyY5vpOkOZvW2QDs0PpozVqOfxMys2q+xGsEXXg+hEDV966j1FxjtnZBHetf2nvZlKje/rYx6nbz2fJMP4ywuKK4laBPcmOEKuoRGZfD9Fl5Uo9VXQip/PFw208FV5mE9P66CZHarNLsgGCTvwnxHNh9mXxpb7yH8yS/1saE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=hs/utz7h; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="hs/utz7h" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789731466; x=1821267466; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dsocwb7K2ZpRqzpDad5Pm4Zdlbi0/SbBbWa0Q7zC82k=; b=hs/utz7hPFkt3A0tN/U29ekwNfJD+3Ou6pXreL5kl0Dwx+BHS46JLB/W ASP/K5Cc5EWADJj3a7PrVpdgHj1R5PNyIgNRB48gjsPt+IFtjoJvAPhz4 P9X/b662XNGhrl2KhI95vHUof3Edqm7lYVIBek9lZLxzzlap08zAVMU5h zFT9tn2CEpFamKGIqFCcTaZK0kLxvnIBJom3OZ3G9Plm7GijgvhQ2ynYA +K7cHs/Gi9VSPSq3BHkcQkm2LZgsYgucrWq9XRtWs6+DL0NF0Fi8rWs9B Dg7687Y9TjDS7zO7WM9JtdafW8geGj/O3Beyvj96O6n7LrdKVKktiw6m0 Q==; X-CSE-ConnectionGUID: kT2iOyJqSgq1LHcN58lr/w== X-CSE-MsgGUID: 8k+pu6d6S1ikBsO8pEXErg== X-IronPort-AV: E=McAfee;i="6800,10657,11908"; a="92739760" X-IronPort-AV: E=Sophos;i="6.27,108,1787036400"; d="scan'208";a="92739760" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2026 04:37:43 -0700 X-CSE-ConnectionGUID: iLqdN8XLQ3SjN2203lubpg== X-CSE-MsgGUID: VSAVOy0OQ9qg8FU7OlJ13w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,108,1787036400"; d="scan'208";a="271029227" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa007.fm.intel.com with ESMTP; 18 Sep 2026 04:37:37 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 76EA8A4; Fri, 18 Sep 2026 13:37:29 +0200 (CEST) From: Andy Shevchenko To: Frank Li , Vinod Koul , Mark Brown , Shengjiu Wang , bui duc phuc , Andy Shevchenko , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-sound@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Cc: Dave Penkler , Greg Kroah-Hartman , Frank Li , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Lars-Peter Clausen , Orson Zhai , Baolin Wang , Chunyan Zhang , Olivier Moysan , Arnaud Pouliquen , Maxime Coquelin , Alexandre Torgue Subject: [PATCH v2 6/7] gpib: fmh_gpib: Replace dma_request_slave_channel() by dma_request_chan() Date: Fri, 18 Sep 2026 13:34:10 +0200 Message-ID: <20260918113727.1898998-7-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260918113727.1898998-1-andriy.shevchenko@linux.intel.com> References: <20260918113727.1898998-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Replace dma_request_slave_channel() by dma_request_chan() as suggested since the former is deprecated. With this, propagate all possible errors to the caller. Reviewed-by: Dave Penkler Signed-off-by: Andy Shevchenko --- drivers/gpib/fmh_gpib/fmh_gpib.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/gpib/fmh_gpib/fmh_gpib.c b/drivers/gpib/fmh_gpib/fmh_g= pib.c index 5e10e9353fed..4ab9b0a317fd 100644 --- a/drivers/gpib/fmh_gpib/fmh_gpib.c +++ b/drivers/gpib/fmh_gpib/fmh_gpib.c @@ -1458,11 +1458,15 @@ static int fmh_gpib_attach_impl(struct gpib_board *= board, const struct gpib_boar e_priv->irq =3D irq; =20 if (acquire_dma) { - e_priv->dma_channel =3D dma_request_slave_channel(board->dev, "rxtx"); - if (!e_priv->dma_channel) { + struct dma_chan *tmp_chan; + + tmp_chan =3D dma_request_chan(board->dev, "rxtx"); + retval =3D PTR_ERR_OR_ZERO(tmp_chan); + if (retval) { dev_err(board->dev, "failed to acquire dma channel \"rxtx\".\n"); - return -EIO; + return retval; } + e_priv->dma_channel =3D tmp_chan; } /* * in the future we might want to know the half-fifo size --=20 2.50.1 From nobody Fri Sep 25 00:40:04 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A5E24F0552; Fri, 18 Sep 2026 11:37:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789731471; cv=none; b=SSJ3NMHYgNI2mBx4FFtbcEoHh39iOIUZNgoAAcIkHhWl742ummEY1A3bRbi+5Ese6LuSTBsHL8OaiQiaei3PDt0bDVozfy2Rog1rpqQAvoyq/IKL41uedWGtyEgnj3Ybmrw1pcBOt1lxU5IS9etUVyy0KVkcjHdbquincho7tck= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789731471; c=relaxed/simple; bh=YSI2Kqp03uJdGsxs/TigJRkMGLCix8Ae7tfRm9DSN0Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=B/WtHfyxrhc1Pe8YTOy+Rzm8CVcVKfHHUT4ueIhj4oAr3mwwXSbXGRhq5yxLK1I8VWK8pE8YFmWk2vb+2RWcDFsQFZnYq9Fjb4ZndOMw0nyxVUsr8sYy7PQnZs7LQS0IolfnYQvCjGxK59gEVPWKxN9nDXcVVRkilRoRsCf+d6U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=LyPt0Rsz; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="LyPt0Rsz" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789731469; x=1821267469; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YSI2Kqp03uJdGsxs/TigJRkMGLCix8Ae7tfRm9DSN0Q=; b=LyPt0Rsz4dobQnAjwJhSt4QmxfeyodgDTe0xgtdP0CVvQVTiLhpy5yF3 m7gSKNrPW6Ofev+5vIrJBsDgpkwM05D9T4nYAAxzIh8a3vzmlW8ZqUJlg woaFnM1WWV6VDEUHzqMIEsxfY4yURC1VeZW8vWAOgAmJ9KV3DayQV2rDR YkRptn/8q5mRZH7AJIunCf0qwpFaBvvMtZq8WMwtl4Qvp1C+4qDyK7B03 jwshoNi6OpNHI2WUOjg6T8XemXL1z9a9K/vvKCu7XeYa2BY60hHwtkFO0 rrn83n53RSy/qg8pfpdJkxe8zYbUJd2BC5W1AwuRGe1BLHKApdUfgIP5E w==; X-CSE-ConnectionGUID: OyyztqV1SmSauExFqrJdnQ== X-CSE-MsgGUID: KNH/gJ0/RjWHdU9daO+u1A== X-IronPort-AV: E=McAfee;i="6800,10657,11908"; a="89367488" X-IronPort-AV: E=Sophos;i="6.27,108,1787036400"; d="scan'208";a="89367488" Received: from fmviesa013.fm.intel.com ([10.60.135.153]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2026 04:37:47 -0700 X-CSE-ConnectionGUID: c6DS/Y6KQE6nNfenLUwhZQ== X-CSE-MsgGUID: dSLxz0Y6Sn2i5TM1ASrqFg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,108,1787036400"; d="scan'208";a="2783722" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa013.fm.intel.com with ESMTP; 18 Sep 2026 04:37:41 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 7BEA3A5; Fri, 18 Sep 2026 13:37:29 +0200 (CEST) From: Andy Shevchenko To: Frank Li , Vinod Koul , Mark Brown , Shengjiu Wang , bui duc phuc , Andy Shevchenko , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-sound@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Cc: Dave Penkler , Greg Kroah-Hartman , Frank Li , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Lars-Peter Clausen , Orson Zhai , Baolin Wang , Chunyan Zhang , Olivier Moysan , Arnaud Pouliquen , Maxime Coquelin , Alexandre Torgue Subject: [PATCH v2 7/7] dmaengine: Remove deprecated dma_request_slave_channel() Date: Fri, 18 Sep 2026 13:34:11 +0200 Message-ID: <20260918113727.1898998-8-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260918113727.1898998-1-andriy.shevchenko@linux.intel.com> References: <20260918113727.1898998-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" No more users. Reviewed-by: Frank Li Signed-off-by: Andy Shevchenko Acked-by: Vinod Koul --- include/linux/dmaengine.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index c3a49a33307c..1b57bc4a7e72 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h @@ -1768,15 +1768,6 @@ void dma_run_dependencies(struct dma_async_tx_descri= ptor *tx); #define dma_request_channel(mask, x, y) \ __dma_request_channel(&(mask), x, y, NULL) =20 -/* Deprecated, please use dma_request_chan() directly */ -static inline struct dma_chan * __deprecated -dma_request_slave_channel(struct device *dev, const char *name) -{ - struct dma_chan *ch =3D dma_request_chan(dev, name); - - return IS_ERR(ch) ? NULL : ch; -} - static inline struct dma_chan *dma_request_slave_channel_compat(const dma_cap_mask_t mask, dma_filter_fn fn, void *fn_param, --=20 2.50.1