Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp875632rdb; Tue, 30 Jan 2024 00:48:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNLOgu2RgCL2/uduE+kNqJEcqkcufxH+WVBAVoJuo0PeIXdHh+oeRjk1zTQr93cmI427F/ X-Received: by 2002:a05:6402:348a:b0:55e:fd6f:fddc with SMTP id v10-20020a056402348a00b0055efd6ffddcmr4270281edc.34.1706604510983; Tue, 30 Jan 2024 00:48:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706604510; cv=pass; d=google.com; s=arc-20160816; b=Fv7Zrj2q9ECKeKV/9lxj/YDo0cNTss0PwWEf5Jl5TJ5WKWcE6LSUz86rvw0cMmuIFh TPQycErfoLbWcjPlUlVCXmMAniUQAG63bF601p0IyweuUO7gebc8awLAqJtm6pbfzQQN GTU4qsy5mOfUdMmUfIftVRkJgW9rPWx8CIAwPLoPXg7VNEAtr17dO2RIK5PqF2LDTTBL CHD9kxGjUsF0GCP44x98EmgeMhDAWRZ4XJBKXCzxDwkGT8MvabOc3vImFQmxO40dyPqy pttxf8PfPuJHdkui7KQA5saNKXbeeg801EKh3kPvDTy9wkDW/d1IQPO9UtLTZsXBuAmK QSWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZYqm9+PdfliMcUPhu/XhOrYgIKmn3e//lFHUo82Q1J0=; fh=YELuRGjFwpc17IVaNMwy5Gq45udhM09Gxpu8B4HByOQ=; b=cVfWrs8twaDasJfHOxkyzE0OHBjzh7YgI1q/yPC+fe4NttqrNZv4BHBSI9Gh6+zE6D koMatq4nuaAm/g3nVQoMsazD0CIyWWw/yoezKGJ9wbYHI3FIXRVozXJPrV9RTt1lDSkf ophYCtQUweV1ojvlDd7nkTD667FO3NGdZFfCn20ttfcHU3lFbShEzOkz8ESqZqdI6MKD p0aEG3fdg+xcTOdBs+epdfqqHoOQgA0eDeVwsfuwYrY1APiVgozSBIslWLJM4ZA4Qx2m uU2aqLRwgTcDIQEptqLgEQT8jPRwyFoar43lmYsYdpDLRCpMzxVWQbf4CAw1J+T/r0mY WFcA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yFBVUY5M; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-44175-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44175-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u10-20020a50eaca000000b0055f3fc426b6si437075edp.390.2024.01.30.00.48.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 00:48:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44175-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yFBVUY5M; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-44175-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44175-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A41C31F213B7 for ; Tue, 30 Jan 2024 08:48:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F23C757861; Tue, 30 Jan 2024 08:48:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yFBVUY5M" Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7AE9559161 for ; Tue, 30 Jan 2024 08:48:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706604498; cv=none; b=CdwYdcn4gdhBZ8Y1hEgjcZ+5WgesOIeMv7pANGI6fLh9YAbFAo3OBjT8vziR9DZJPOdmuau4ESi/lP8uVc04PIaLfwMmz2LGnCONBwZRStyVsEcOVLX6VRMHDW5AKXY6ZgtMs+D7rt2NkvSjxpRMRXAk7GnWCke0WJ63vBw6p8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706604498; c=relaxed/simple; bh=OTwo8h1r/HNa/CiLlIhtm61CfaQXTQtYUzvR2httRas=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PqdTx7jVDYy5OjlqELqKtOLWOi44yUOe4opuaMwOR1A6UImIgvaSJCc4zwQe1kaCMUHwY0nYNWsynsRiJCJoxkhpIO81DRcZMBi9ITEA9UJ8FLlsfepLGRyYLFeHte2CxjyQdgP0+h8w/1YNYfdKNZhDLgIxzChgohVlR1vm+r4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=yFBVUY5M; arc=none smtp.client-ip=209.85.167.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oi1-f169.google.com with SMTP id 5614622812f47-3be78c26850so817388b6e.0 for ; Tue, 30 Jan 2024 00:48:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706604495; x=1707209295; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=ZYqm9+PdfliMcUPhu/XhOrYgIKmn3e//lFHUo82Q1J0=; b=yFBVUY5M5PJznZXXUoI9QF0l1pvmA01vHxgzQE9fmP34C7v4Yt//W2LXStTS2O23sM W6Lrtw6l/Czds4I/4hJv7k2ScEUNXQMKXbNzGWR5tB/uYOLoeqesWQWSk8girbrmy3LV LXtDVa1UCM3GOw5KCpyKXilzVO/B3chZA9okugeMrbWXYKBDiiG5oCtYBB+2ZjxqNVQJ uqYr7aprpZ+MCJVY2Ua++WiOTroR3B5G7IRbbag19uE0NoVFqEMKWes6oQ+YTL4jqn/u 3+nUh+DBaw5KxoCvNNIZpDkD8EmhIbyUUqmzhk1fycfwHW2YThQadxVKnZRTqsQfLDwz JK4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706604495; x=1707209295; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZYqm9+PdfliMcUPhu/XhOrYgIKmn3e//lFHUo82Q1J0=; b=Jqtr9+wYDLEt98ie1iSWMpqc1JSDsGnkI7VxteAoiutglvUvRG18iSph/gcoawaNFp 0Z3nOOqj+lluThpZquD1RxL6HcRy/7+qW68DbACq+H5Pl2NeJXzhqGF+pehLXhbBx/O7 N2TtyvNRWBVo82Q7swDqBXkk47fzc6CsF3pGr7SHM5j7MbpMhnRWcNE5uay59NKnr9MD mbYHh2c69R09j3ZncXu0f7SPqXzIwB6wYi9ZiJ3TLnkSepYinxDyrseVLI8WhetBzqFr PBcJYOZ3bQEOwuTs7BVZMChEIa2FKrbvbOHRABm+rcxhCHv1rFKjcxH1r3xcebv5cpxi tLmw== X-Gm-Message-State: AOJu0YydS7tiBcBmXab6IkYqoHfPrHxy0x2fODMdKiMBh9wxX3AqG/Q3 DnIA1tBFDnDHDHsm/5vVgfT4I3u0vMaTFibdI0MJ4K0xDJKyEoWCaZcC6syXtQ== X-Received: by 2002:a05:6808:1144:b0:3bd:c710:760 with SMTP id u4-20020a056808114400b003bdc7100760mr6316837oiu.51.1706604495567; Tue, 30 Jan 2024 00:48:15 -0800 (PST) Received: from thinkpad ([117.202.188.6]) by smtp.gmail.com with ESMTPSA id e7-20020aa79807000000b006da96503d9fsm7207700pfl.109.2024.01.30.00.48.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 00:48:15 -0800 (PST) Date: Tue, 30 Jan 2024 14:18:03 +0530 From: Manivannan Sadhasivam To: Dmitry Baryshkov Cc: Mrinmay Sarkar , vkoul@kernel.org, jingoohan1@gmail.com, conor+dt@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, quic_shazhuss@quicinc.com, quic_nitegupt@quicinc.com, quic_ramkri@quicinc.com, quic_nayiluri@quicinc.com, quic_krichai@quicinc.com, quic_vbadigan@quicinc.com, quic_parass@quicinc.com, quic_schintav@quicinc.com, quic_shijjose@quicinc.com, Gustavo Pimentel , Serge Semin , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Kishon Vijay Abraham I , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, mhi@lists.linux.dev Subject: Re: [PATCH v1 2/6] dmaengine: dw-edma: Introduce helpers for getting the eDMA/HDMA max channel count Message-ID: <20240130084803.GA83288@thinkpad> References: <1705669223-5655-1-git-send-email-quic_msarkar@quicinc.com> <1705669223-5655-3-git-send-email-quic_msarkar@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, Jan 19, 2024 at 03:26:56PM +0200, Dmitry Baryshkov wrote: > On Fri, 19 Jan 2024 at 15:00, Mrinmay Sarkar wrote: > > > > From: Manivannan Sadhasivam > > > > Add common helpers for getting the eDMA/HDMA max channel count. > > > > Signed-off-by: Manivannan Sadhasivam > > Signed-off-by: Mrinmay Sarkar > > --- > > drivers/dma/dw-edma/dw-edma-core.c | 18 ++++++++++++++++++ > > drivers/pci/controller/dwc/pcie-designware.c | 6 +++--- > > include/linux/dma/edma.h | 14 ++++++++++++++ > > 3 files changed, 35 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/dma/dw-edma/dw-edma-core.c b/drivers/dma/dw-edma/dw-edma-core.c > > index 7fe1c19..2bd6e43 100644 > > --- a/drivers/dma/dw-edma/dw-edma-core.c > > +++ b/drivers/dma/dw-edma/dw-edma-core.c > > @@ -902,6 +902,24 @@ static int dw_edma_irq_request(struct dw_edma *dw, > > return err; > > } > > > > +static u32 dw_edma_get_max_ch(enum dw_edma_map_format mf, enum dw_edma_dir dir) > > +{ > > + if (mf == EDMA_MF_HDMA_NATIVE) > > + return HDMA_MAX_NR_CH; > > This will break unless patch 5 is applied. I believe you are referring to patch 4. > Please move the > corresponding definition to this path. > Right. But it can be fixed by reordering the patches. Mrinmay, please move patch 4/6 ahead of this one. - Mani -- மணிவண்ணன் சதாசிவம்