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: 13824893 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (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 9B05D1D88B8 for ; Mon, 7 Oct 2024 15:09:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728313741; cv=none; b=UC+i/NYLxEwBnJORh82dIz+0iaX9i7+g/G3dkJj6xV08x8/5NvhLPJ7TIQRb8BLoe8VRuBjnX6hd7RdPqCFslsOU28l7vtlxriPu80u0j6c+3ZyPjxsDTV8ZQVtst57Jyx0LEkkS0ilI7msTconhdj0b6AUd8LU/MJeorapAesg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728313741; c=relaxed/simple; bh=8p/BU2lvNpakkUwkPeXAni5nQsRzqwM702NTHzKfScY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MYvaswh5OzzIg2PQeOxmtY5WQLSkiQY2BbAI5sqTKExc3EXPHD7S544Mt8QD3JWz7RxaUZDmDpGqBm2n/zLMGvY2SfoQfqQnjIcfWjnT1lmIvjWXt4eM9wuizSWq4opmYAjmCkji/UCKvjSFeChJjMWNf0M9otFn6Vf10x9IB/I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=HaLrOFZ7; arc=none smtp.client-ip=192.198.163.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none 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="HaLrOFZ7" 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: HGC+nlf9RTqooYWrO5JSeg== X-CSE-MsgGUID: kJh24NwISnSS5QPSuSukmQ== X-IronPort-AV: E=McAfee;i="6700,10204,11218"; a="52870232" X-IronPort-AV: E=Sophos;i="6.11,184,1725346800"; d="scan'208";a="52870232" 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 Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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(-)