From patchwork Mon Oct 7 15:06:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13824924 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 193EDCFB448 for ; Mon, 7 Oct 2024 15:27:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=sn/z0YOGf/9G7TwGdRVDv07ZyYkmVGmAE/qj5CLMDFI=; b=GBgQkFJlJ7yxeAa0E5JSAa0ppG ldbAO3koCDmE8svxXmmeUXSqN+Qlqj1eYzo9gQWEVALzqk3N+t0eyDaXIUuycnX4aXZHHgGUdbknb n+jXEPWsFQ9JkrbNFMdvoZnAcnM2XGms1MA0fOXCKvpDMzUwiR0KXZwyVB5LaELnVdeYf0roj3XjD scn89fYhTkEdj57ve8py8lFAq45au1yChR9KQgr6rmjEflm2i/mgeUx35jip58/zqnfGoxnUL0KnS w13XfI6czpVo29mVJL8mEM3BLcgB6byAgC1d/NaAYHg/HZkxKcmFMVyqi7WdB1z8nqdTb3vaZk42Q EOcS/ubA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sxpdc-00000002vrw-26aZ; Mon, 07 Oct 2024 15:27:08 +0000 Received: from mgamail.intel.com ([192.198.163.7]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sxpM5-00000002sYo-0743 for linux-arm-kernel@lists.infradead.org; Mon, 07 Oct 2024 15:09:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728313741; x=1759849741; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8p/BU2lvNpakkUwkPeXAni5nQsRzqwM702NTHzKfScY=; b=HaLrOFZ7wiQw9OFRF+3UjHm7UxSmuG9wnX5CJgFKwNIRyCikIX8D5dOZ z8Fo4RloYVwBTT87rTPXo1h7iuswxU414ca300LWyMWu+0XCo1L/xK0+X 68Oet6RJY5BWv+BPuKFJlgLxBBSJnYxxoq4w0bbOeTgJocTWthfaYshBI jxt0HQJVVPfGr/UfwcixN8EqwecjADI18ORwT8CyyQ+CXd921Ow6on+n+ UfsxpexMc59SYeDl0mChdDayJYuljInyoimQ9xvL98BcsV0nQUgECXT32 3pKZHI4K2QyNo8ESIJqgRkmdA0Wci/GJEVoQ9bff4UUAObhDBkyCR4Lrg g==; X-CSE-ConnectionGUID: Jxh05plgRmiW33kfwo0iig== X-CSE-MsgGUID: etLVhpVKTeqj7RjEnltFfQ== X-IronPort-AV: E=McAfee;i="6700,10204,11218"; a="52870231" X-IronPort-AV: E=Sophos;i="6.11,184,1725346800"; d="scan'208";a="52870231" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2024 08:08:58 -0700 X-CSE-ConnectionGUID: LbOfZus1QZ+kpNo7fIlOmA== X-CSE-MsgGUID: KGgzbCjfRUaK36Jw6mJWLQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,184,1725346800"; d="scan'208";a="80477330" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa004.jf.intel.com with ESMTP; 07 Oct 2024 08:08:55 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id AF9CA301; Mon, 07 Oct 2024 18:08:53 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Vinod Koul , Paul Cercueil , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Subject: [PATCH v1 0/4] dmaengine: dma_request_chan*() amendments Date: Mon, 7 Oct 2024 18:06:44 +0300 Message-ID: <20241007150852.2183722-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241007_080901_126398_5E92553A X-CRM114-Status: UNSURE ( 8.03 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Reduce the scope of the use of some rarely used DMA request channel APIs in order to make the step of their removal or making static in the future. No functional changes intended. Andy Shevchenko (4): dmaengine: Replace dma_request_slave_channel() by dma_request_chan() dmaengine: Use dma_request_channel() instead of __dma_request_channel() dmaengine: Add a comment on why it's okay when kasprintf() fails dmaengine: Unify checks in dma_request_chan() drivers/dma/dmaengine.c | 16 ++++++++-------- drivers/dma/imx-sdma.c | 5 ++--- include/linux/dmaengine.h | 6 +++--- 3 files changed, 13 insertions(+), 14 deletions(-)