Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp320855pxf; Tue, 6 Apr 2021 23:45:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHBuktstRnzzPYKJQcYbt3Ng1WH8wYTbWUhWVYRKAYl5mOeRkJlxSotlotxbkhx7ZeLZOE X-Received: by 2002:aa7:c1cc:: with SMTP id d12mr2630640edp.136.1617777923141; Tue, 06 Apr 2021 23:45:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617777923; cv=none; d=google.com; s=arc-20160816; b=W2HuETgsMHk4fm57woB6uP5AmIfzgKAfjYVz/MceCwm0ZINpQ2YwxuhFHT+cJrGomq a6UXFRx3RlCKHAszd+FL7lo1QH8QyV+K4habsTrDSTMft0NqYouwQVAeQIADUFJzlPll UmaFAG49Gq0WJP1fU3fwy5xuWuzqva2zz+o9OawAEgRmd19uBEhntajOJbtPGyiqqwsm 0jYJKjnL4F1AFqeBQVZ95c44oV754O9exnw8vriMpgxn7+fkvmFB5TxoPUUKOkq0j1ut FeqCS2QfeJBBfrjOYr5/t32sF77lZTidQxh79T5le5Q47VYYb1mE3Bl6CzvNLip/yo7H HH3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zhcXVfELo5elywfqEq3FrE6jD2OsBz641NuCWtfMcZg=; b=R8JP10OrbyJa5/m5BnWBZhDchsO60qNnqsOESEutdeoRoSxbVbJuy16SDamP7EsCOB tyLfqy8gRpQlVKwxMJ9dsnticrRfHaaESbDt0/+Ji6i3BeIFZi+ao/MsjVCK1HFFV3pz M9BWO7+WY3pNyk94/AYIhGHQ6M3P7ullsS3VVUkJqbVqJRq5WGAvKtF8tcg7GotMltAv Scm6JzHn0+upKxnNjSWjbidSvmOQVsMv8sdTwwVCHsA0VMeNSqY+N28HDPR3QRZjKzLL qcCOWpDtZNivSzlNk9n/3JkxNZmUmUFasyJklG3Dt0quCodUT4ofFUsE/PE71ePTTAIB 6ZBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=woKrHduG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nc38si22671574ejc.362.2021.04.06.23.44.59; Tue, 06 Apr 2021 23:45:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=woKrHduG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345452AbhDFPKQ (ORCPT + 99 others); Tue, 6 Apr 2021 11:10:16 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:42482 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbhDFPKO (ORCPT ); Tue, 6 Apr 2021 11:10:14 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 136F9kdK051468; Tue, 6 Apr 2021 10:09:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1617721786; bh=zhcXVfELo5elywfqEq3FrE6jD2OsBz641NuCWtfMcZg=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=woKrHduGuYc8SVo0jICjQufJfoBZ4zd7Cem8OelhzyS5NoyKwT4zbEl2GRD43mfR+ i7vr9o+HjpKpYGW3ng5t/1h27+msDPCkHkE88st6SfQ6pat2Fn2QmP/81ZyKpAdCuW 9cuZbNJ8ZcAWrAr7Z/AE22x7ylHM2BeMo2ghJf6A= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 136F9kJP083293 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 6 Apr 2021 10:09:46 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 6 Apr 2021 10:09:45 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Tue, 6 Apr 2021 10:09:45 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 136F9jlK119537; Tue, 6 Apr 2021 10:09:45 -0500 Date: Tue, 6 Apr 2021 20:39:44 +0530 From: Pratyush Yadav To: =?iso-8859-1?Q?P=E9ter?= Ujfalusi CC: Mauro Carvalho Chehab , Rob Herring , Kishon Vijay Abraham I , Vinod Koul , Maxime Ripard , Benoit Parrot , Hans Verkuil , Alexandre Courbot , Laurent Pinchart , Stanimir Varbanov , Helen Koike , Michael Tretter , Peter Chen , Chunfeng Yun , , , , , , Vignesh Raghavendra , Tomi Valkeinen Subject: Re: [PATCH 11/16] dmaengine: ti: k3-psil-j721e: Add entry for CSI2RX Message-ID: <20210406150942.4kyjh2ehsvklupjr@ti.com> References: <20210330173348.30135-1-p.yadav@ti.com> <20210330173348.30135-12-p.yadav@ti.com> <78a5983c-04c8-4a4c-04fe-bb1f31e87375@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <78a5983c-04c8-4a4c-04fe-bb1f31e87375@gmail.com> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/04/21 04:24PM, P?ter Ujfalusi wrote: > Hi Pratyush, > > On 3/30/21 8:33 PM, Pratyush Yadav wrote: > > The CSI2RX subsystem uses PSI-L DMA to transfer frames to memory. It can > > have up to 32 threads but the current driver only supports using one. So > > add an entry for that one thread. > > If you are absolutely sure that the other threads are not going to be > used, then: The opposite in fact. I do expect other threads to be used in the future. But the current driver can only use one so I figured it is better to add just the thread that is currently needed and then I can always add the rest later. Why does this have to be a one-and-done deal? Is there anything wrong with adding the other threads when the driver can actually use them? > Acked-by: Peter Ujfalusi > > but I would consider adding the other threads if there is a chance that > the cs2rx will need to support it in the future. > > > Signed-off-by: Pratyush Yadav > > --- > > drivers/dma/ti/k3-psil-j721e.c | 10 ++++++++++ > > 1 file changed, 10 insertions(+) > > > > diff --git a/drivers/dma/ti/k3-psil-j721e.c b/drivers/dma/ti/k3-psil-j721e.c > > index 7580870ed746..19ffa31e6dc6 100644 > > --- a/drivers/dma/ti/k3-psil-j721e.c > > +++ b/drivers/dma/ti/k3-psil-j721e.c > > @@ -58,6 +58,14 @@ > > }, \ > > } > > > > +#define PSIL_CSI2RX(x) \ > > + { \ > > + .thread_id = x, \ > > + .ep_config = { \ > > + .ep_type = PSIL_EP_NATIVE, \ > > + }, \ > > + } > > + > > /* PSI-L source thread IDs, used for RX (DMA_DEV_TO_MEM) */ > > static struct psil_ep j721e_src_ep_map[] = { > > /* SA2UL */ > > @@ -138,6 +146,8 @@ static struct psil_ep j721e_src_ep_map[] = { > > PSIL_PDMA_XY_PKT(0x4707), > > PSIL_PDMA_XY_PKT(0x4708), > > PSIL_PDMA_XY_PKT(0x4709), > > + /* CSI2RX */ > > + PSIL_CSI2RX(0x4940), > > /* CPSW9 */ > > PSIL_ETHERNET(0x4a00), > > /* CPSW0 */ > > > > -- > P?ter -- Regards, Pratyush Yadav Texas Instruments Inc.