Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.17 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793824204; b=gLkC/FMw1fplXhOeVpWXzSG3/R6LBJ35uJbSV3lF73Bkj5LpZURHEpVnXQ8M0zDVBEOr Z6LQPLQVbIjWG/QDZUJ9Xzm7fDPUMuyJJq6QTBFT653qZY1sKwCY9HKxJcqvmu1dMPtgP S5Lc6m7EmLHgREmmxDI6U+lh9bn1J3CKWYsXyt/FXAXJMvQdc0wBR6Lv/+B9l+fRIRlkW L3wfa4ezAPTvUrT4r8tkHxyT8ASKgY6hiMGJjNt3j9b9FKfyLABMHIeTJqx0ejWQenuf0 PAmJVxm7ga8ebUdcO+iI3m5nuL+adp5SiwZryoceJkhNgeYVQIND9sf10Iv4AI9ZLxQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793824204; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:Organization; bh=Eecn0Ygaf7mft5z9aYz9Ro3xQK3/iLvYEIUNIgo48NA=; b=ikFeW0p1ri61g3J9Pjw965AUi9BlHzxRSIY1Nei1NzgxNcewvemHng3zg7xm1NGDzDqZ aXBQhQBJv76zgK3QpSSPbR967L009DYJgq8bDl0sH43YKNV7ANX7vbIM4FhzUS+r1+lQN ehF/wMmvfmuH6sKObR5GnUJ4T1NyB5zYp8m7LDms8/x9BM2AVNi7cnNnTLybwra9IqQPf trLwyCYiiz1eggh1bhMrJ7eXArYF3sbwKjkJ4M0ZWTuV3B0sIjN9fSRHF5EqXEYVSgDZv neWiI3YO5csX2vmJRyqjdCbUxqCgkAlQ5Y3cAytI0Eh5t56xlOw814M1/FccM1xt51Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=cWBP4lvT; arc=none smtp.remote-ip=192.198.163.17 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6244A606A84B for ; Wed, 4 Nov 2026 20:30:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6244A606A84B 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, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=cWBP4lvT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1793824203; x=1825360203; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=h9DF1vrSe2ymxSVWOc4qaehYKUBrcFML5wxNEDR44VM=; b=cWBP4lvTN84SmdXqm2DrQ5Q/7d8gdKpSavoTyaICmce2MDSEMvV9S7xm 7q0o0AnLL1ANS8Vvc2fnSX+ucg0WMfonZtJx13Adi8Hkm4BPr4TG4r/j3 Fau1kFSlxMWrYT76/BzVViELhpcWO7zuztp+oQtEswbKzoWLnjtvrZ9gf aoUrGgjisgcp+ZUBb1VVfWeaIYj1jrVql67b8mxYB2B9vvZ1gTFT6aSIH OUNhWhds9Kw3X7t4n21eFtYGujtAcReciszgfCjCfNV6vX6tHt6rKwRXf w47TJXSxUQnLnRIzE1RPUH0yeFZNBZuRaFXwemBm54EDQALrBiKGgdq/G A==; X-CSE-ConnectionGUID: fQDrpMhdSCO735vD50IbXA== X-CSE-MsgGUID: vtUbTmdsQxO7x08h+SLyIw== X-IronPort-AV: E=McAfee;i="6800,10657,11956"; a="2602494" X-IronPort-AV: E=Sophos;i="6.27,195,1787036400"; d="scan'208";a="2602494" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2026 12:30:02 -0800 X-CSE-ConnectionGUID: 4s+PIBaTRcCfJB/9Fu/CBQ== X-CSE-MsgGUID: W8xphM45RZOPK4ny68SHrw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,195,1787036400"; d="scan'208";a="6825384" Received: from ijarvine-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.244.24]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2026 12:29:49 -0800 Date: Wed, 4 Nov 2026 22:29:46 +0200 From: Andy Shevchenko To: Krzysztof Kozlowski Cc: Frank.Li@oss.nxp.com, Greg Kroah-Hartman , Jiri Slaby , Matthias Brugger , AngeloGioacchino Del Regno , Russell King , Richard Genoud , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Peter Griffin , Alim Akhtar , Laxman Dewangan , Thierry Reding , Jonathan Hunter , Orson Zhai , Baolin Wang , Chunyan Zhang , Maxime Coquelin , Alexandre Torgue , Cunhao Lu <1579567540@qq.com>, Raul E Rangel , Yenchia Chen , Zhiyong Tao , Carlo Caione , Moteen Shah , Kendall Willis , Kartik Rajput , Fan Wu , Nicolai Buchwitz , Karl Mehltretter , Stefan =?iso-8859-1?Q?D=F6singer?= , Shitalkumar Gandhi , Peng Fan , Sherry Sun , John Ogness , Pan Chuang , Petr Mladek , Robin Gong , Konrad Dybcio , Stephan Gerhold , Zhaoyang Yu <2426767509@qq.com>, "Nikola Z. Ivanov" , Haoxiang Li , "Mike Rapoport (Microsoft)" , Biju Das , Geert Uytterhoeven , Myeonghun Pak , Wenhua Lin , Cixi Geng , "open list:TTY LAYER AND SERIAL DRIVERS" , "open list:TTY LAYER AND SERIAL DRIVERS" , "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" , "open list:ARM/FREESCALE IMX / MXC / LAYERSCAPE ARM ARCHIT..." , "open list:ARM/QUALCOMM MAILING LIST" , "open list:ARM/SAMSUNG S3C, S5P AND EXYNOS ARM ARCHITECTURES" , "open list:TEGRA ARCHITECTURE SUPPORT" , "moderated list:ARM/STM32 ARCHITECTURE" , vkoul@kernel.org Subject: Re: [PATCH 1/1] tty: serial: use dmaengine_desc_set_callback() Message-ID: References: <20261102175527.3957740-1-Frank.Li@oss.nxp.com> X-Mailing-List: imx@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Wed, Nov 04, 2026 at 06:41:08PM +0100, Krzysztof Kozlowski wrote: > On 02/11/2026 18:54, Frank.Li@oss.nxp.com wrote: > > > > Replace open-coded assignments to callback and callback_param fields > > of struct dma_async_tx_descriptor with calls to the > > dmaengine_desc_set_callback() helper across serial drivers. > > > > No functional change intended. Prepare to make struct > > dma_async_tx_descriptor private to the DMA engine. ... > I did not look at this code at all... > > > index 640f85e2d636b..3f82a83998e1c 100644 > > --- a/drivers/tty/serial/samsung_tty.c > > +++ b/drivers/tty/serial/samsung_tty.c > > @@ -447,8 +447,7 @@ static int s3c24xx_serial_start_tx_dma(struct s3c24xx_uart_port *ourport, > > return -EIO; > > } > > > > - dma->tx_desc->callback = s3c24xx_serial_tx_dma_complete; > > - dma->tx_desc->callback_param = ourport; > > + dmaengine_desc_set_callback(dma->tx_desc, s3c24xx_serial_tx_dma_complete, NULL, ourport); > > dma->tx_bytes_requested = dma->tx_size; > > > > ourport->tx_in_progress = S3C24XX_TX_DMA; > > @@ -642,8 +641,7 @@ static void s3c64xx_start_rx_dma(struct s3c24xx_uart_port *ourport) > > return; > > } > > > > - dma->rx_desc->callback = s3c24xx_serial_rx_dma_complete; > > - dma->rx_desc->callback_param = ourport; > > + dmaengine_desc_set_callback(dma->rx_desc, s3c24xx_serial_rx_dma_complete, NULL, ourport); > > dma->rx_bytes_requested = dma->rx_size; > ... but apparently reviewing only a few lines out of 400 is still reviewing: > > https://lore.kernel.org/all/9e39502a-dd17-4fa2-98a3-9019523cb5e8@kernel.org/ > > Therefore: > > Reviewed-by: Krzysztof Kozlowski That's why I have added a trail to it to show what exactly I has reviewed, this is a common practice, no? Does this ring a bell 34d1e754155b ("dt-bindings: iio: drop unneeded quotes")? -- With Best Regards, Andy Shevchenko