Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp427913pxf; Wed, 7 Apr 2021 03:05:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGC28/CAz2dARvT3A1tRTrvtOhWKaEGZSBKWj4Dx+Kw8UjvfjITkJbmhUNsXrBBT+strhN X-Received: by 2002:a17:906:6bd1:: with SMTP id t17mr2806632ejs.319.1617789916316; Wed, 07 Apr 2021 03:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617789916; cv=none; d=google.com; s=arc-20160816; b=KpXZBDYW0Ep2umRjJqCeGpj0/F441+aGaBmgFHzEqqBnbfQTDvRjOfN2oFoKXb6vfy WYkm9/YpvZLU9euAOlK1WJFq1dnngejPAEI8kq+pSY8JnWU2XYOid8NGUmOjJiEGlKAQ PVprdR1ey6dj+AcV8iRFKb9rnKhUClHZIorRGIotitoOsBrSwT+v6zEezn1fAYbC928x V71jZk75ESGHPGOyIQwCoTBTAStOJALtsZpiqExdaQ4hTEOGonz7gBRivoQpcyN7pvHN FvLywJp4hYb10hGshnyXbevVuprKc6QZXu/+B1Ot/j1WSs6s9dYXbwATZ4HFMpQbH9MZ Ub3A== 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=+9XjRgYfCOrNjdj1kkEqP/Q3v02FwLNYKDPldfbcuiI=; b=sRqP/CH+BBZNJJrfXz+oJd0hNrEBnDC6YE+fyBxQoffGOIf+rPgvI/mkuoUE2VBI+v jQPRMOlkSQcknYS2M2HLd1yoF2vkUcj9+oVTAXhYF/mbjctt5VO8AEPBdsdzJu63WiQ0 luEbWahkftYPTFDfmsFIYCjcEp1Bnw39pe6Gc+C+rZqxpzWg5c6nl647SXbtVf4ySWCI IZ0eja/AaROcPzMer5N2G1/PVTMR0rZXECS4CKFM7uWkg2jPxgFuSqomPR8T6H4rbeez evHcjOCjX41XfkAAeyn11nj0y0JzLKEqwaV6hmKTb/njxE/zQ4MhvGGkf5qZj5pLRlqT RL3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tjAN7lxA; 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 v27si4936899eja.407.2021.04.07.03.04.53; Wed, 07 Apr 2021 03:05:16 -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=tjAN7lxA; 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 S238559AbhDFQ4c (ORCPT + 99 others); Tue, 6 Apr 2021 12:56:32 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:46230 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232598AbhDFQ40 (ORCPT ); Tue, 6 Apr 2021 12:56:26 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 136Gtw5h047850; Tue, 6 Apr 2021 11:55:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1617728158; bh=+9XjRgYfCOrNjdj1kkEqP/Q3v02FwLNYKDPldfbcuiI=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=tjAN7lxASQ7GQgzBSfvPUAJVbed53QtBUL9oOxt1+Px6vCgCJYXJKr17FC9lKR7rS oJwnUGUbf3qZ1to0kpE4KZPESWsmElTk4g34/qqHqGNT6PTMWOW6qTbBOTu8lbineW KkEhEZ7bcZx3Sq/y1NYfjS6Iepw1ZCwLjlrx9lrU= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 136Gtwrb021543 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 6 Apr 2021 11:55:58 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE100.ent.ti.com (10.64.6.21) 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 11:55:58 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE109.ent.ti.com (10.64.6.30) 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 11:55:58 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 136Gtvuo052410; Tue, 6 Apr 2021 11:55:57 -0500 Date: Tue, 6 Apr 2021 22:25:56 +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: <20210406165554.5mhn4u5enbf2tvaz@ti.com> References: <20210330173348.30135-1-p.yadav@ti.com> <20210330173348.30135-12-p.yadav@ti.com> <78a5983c-04c8-4a4c-04fe-bb1f31e87375@gmail.com> <20210406150942.4kyjh2ehsvklupjr@ti.com> <54b0846e-d633-2a03-2c64-f1f0a85c2410@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <54b0846e-d633-2a03-2c64-f1f0a85c2410@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 06/04/21 06:33PM, P?ter Ujfalusi wrote: > > > On 4/6/21 6:09 PM, Pratyush Yadav wrote: > > 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? > > You can skip CCing DMAengine (and me ;) ). Less subsystems is the better > when sending patches... I'm a bit confused here. If you are no longer interested in maintaining the TI DMA drivers then that's fine, I can skip CCing you. But the patch is still relevant to the dmaengine list so why should I skip CCing it? And if I don't CC the dmaengine list then on which list would I get comments/reviews for the patch? > > > > >> 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 > > > > -- > P?ter -- Regards, Pratyush Yadav Texas Instruments Inc.